/* ===== Reset & base ===== */
* { box-sizing: border-box; }

:root {
  --ink: #211A56;
  --ink-muted: #6E6B89;
  --muted: #8A87A8;
  --muted-2: #9A98B0;
  --muted-3: #A6A3BE;
  --bg: #F4F4FB;
  --white: #ffffff;
  --border: #ECECF4;

  --pink: #F2588A;
  --pink-light: #F47AA0;
  --pink-bg: #FDEEF4;
  --pink-border: #FAD9E6;
  --pink-text: #E0427A;
  --pink-shadow: rgba(242, 88, 138, 0.3);

  --purple-dark: #2C1A78;
  --purple: #43269E;
  --purple-light: #5B33C7;
  --purple-accent: #5B3FD6;
  --purple-bg: #F6F4FE;
  --purple-border: #E7E1FB;

  --blue: #2BA9E0;
  --blue-bg: #EDF7FC;

  --green: #1FA97E;
  --green-bg: #F4FBF8;
  --green-border: #D6F0E6;

  --amber: #D98415;
  --amber-bg: #FFF4E6;

  --red: #E5484D;

  --locked-text: #B0AEC6;
  --locked-border: #E2E0EC;
  --badge-locked-bg: #F1F0F6;
  --badge-locked-text: #9A98B0;

  --input-border: #E4E3EE;
  --divider: #F0EFF6;
}

html, body {
  margin: 0;
  background: var(--bg);
  font-family: 'Poppins', sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

input, select, button, textarea { font-family: inherit; }

a { color: inherit; }

button { font-family: inherit; }

.mt-main {
    margin-top: 18px;
}

.page-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Top nav ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--pink), var(--pink-light));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(242, 88, 138, 0.32);
  flex-shrink: 0;
}

.brand-name {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--ink);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 9px;
  color: var(--ink-muted);
  text-decoration: none;
  display: inline-block;
}

.nav-link.active {
  color: var(--pink);
  background: var(--pink-bg);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--purple-bg);
  color: var(--purple-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}

.user-meta { line-height: 1.15; }
.user-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.user-role { font-size: 11px; color: var(--muted); }

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ===== Layout shell ===== */
.page-main {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 28px 56px;
}

.page-narrow {
  max-width: 820px;
  margin: 0 auto;
}

.page-narrow--profile {
  max-width: 780px;
}

.page-title {
  margin: 4px 0 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.page-subtitle {
  margin: 8px 0 26px;
  font-size: 14.5px;
  color: var(--ink-muted);
}

/* ===== Welcome banner ===== */
.banner {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(120deg, var(--purple-dark) 0%, var(--purple) 60%, var(--purple-light) 100%);
  padding: 34px 38px;
  color: #fff;
  box-shadow: 0 18px 40px rgba(44, 26, 120, 0.28);
}

.banner-glow-pink {
  position: absolute;
  right: -40px;
  top: -50px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 88, 138, 0.55), rgba(242, 88, 138, 0) 70%);
}

.banner-glow-blue {
  position: absolute;
  right: 120px;
  bottom: -70px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 169, 224, 0.4), rgba(43, 169, 224, 0) 70%);
}

.banner-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

.banner-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 14px;
}

.banner-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #52E0B0;
}

/* Deactivated account: red pill + dot, readable on the dark banner gradient. */
.banner-pill--inactive { color: #FF8A8A; }
.banner-pill--inactive .banner-pill-dot { background: #FF6B6B; }

.banner-heading {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.6px;
}

.banner-copy {
  margin: 8px 0 0;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  line-height: 1.55;
}

.banner-progress { text-align: right; }
.banner-progress-label { font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.banner-progress-value { font-size: 40px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.banner-progress-sub { font-size: 12.5px; color: rgba(255, 255, 255, 0.72); margin-top: 2px; }

/* ===== Stepper ===== */
.stepper-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 40px 26px;
  margin-top: 20px;
  box-shadow: 0 6px 20px rgba(33, 26, 86, 0.05);
}

.stepper-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
}

.stepper-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 120px;
  z-index: 2;
}

.stepper-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.stepper-circle--done { background: var(--green); color: #fff; box-shadow: 0 6px 14px rgba(31, 169, 126, 0.32); }
.stepper-circle--current { background: var(--pink); color: #fff; box-shadow: 0 6px 14px rgba(242, 88, 138, 0.32); }
.stepper-circle--locked { background: #fff; color: var(--locked-text); border: 2px solid var(--locked-border); }

.stepper-label { font-size: 13px; font-weight: 600; margin-top: 12px; color: var(--ink); }
.stepper-sublabel { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.stepper-connector {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  margin: 21px 4px 0;
  background: var(--border);
}

.stepper-connector--done { background: var(--green); }

/* ===== Next-step callout ===== */
.callout {
  margin-top: 20px;
  border-radius: 16px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--pink-bg);
  border: 1px solid var(--pink-border);
}

.callout-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.callout-eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #9A4A6E;
}

.callout-text { font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 1px; }

/* ===== Two-column layout ===== */
.dash-columns {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  margin-top: 24px;
  align-items: start;
}

.steps-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== Step cards ===== */
.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 14px rgba(33, 26, 86, 0.04);
}

.step-card--locked {
  background: #FAFAFD;
  border: 1.5px dashed var(--locked-border);
}

.step-card--ready {
  background: var(--white);
  border: 1px solid var(--pink-border);
}

.step-body { display: flex; gap: 18px; }

.step-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-icon--blue { background: var(--blue-bg); }
.step-icon--pink { background: var(--pink-bg); }
.step-icon--locked { background: var(--badge-locked-bg); }
.step-icon--gradient { background: linear-gradient(135deg, var(--pink), var(--pink-light)); }

.step-content { flex: 1; }

.step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.step-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--muted-3);
  text-transform: uppercase;
}

.step-title { margin: 4px 0 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.step-title--muted { color: var(--muted-2); }
.step-desc { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-muted); line-height: 1.55; }
.step-desc--muted { color: var(--muted-2); }

.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  letter-spacing: 0.2px;
}

.badge--pending { background: var(--amber-bg); color: var(--amber); }
.badge--positive { background: #E9F8F2; color: var(--green); }
.badge--locked { background: var(--badge-locked-bg); color: var(--badge-locked-text); }
.badge--ready { background: var(--pink-bg); color: var(--pink-text); }

/* ===== Buttons ===== */
.btn {
  border: none;
  border-radius: 10px;
  padding: 11px 20px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 6px 14px var(--pink-shadow);
}

.btn-outline {
  background: #fff;
  color: var(--pink);
  border: 1.6px solid var(--pink);
  padding: 10px 18px;
}

.btn-ghost {
  background: #fff;
  color: var(--ink-muted);
  border: 1px solid #DDE0EC;
  border-radius: 9px;
  padding: 8px 14px;
  font-size: 12.5px;
  cursor: pointer;
}

.btn-link {
  background: transparent;
  color: var(--ink-muted);
  border: none;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}

.btn-large {
  margin-top: 16px;
  background: linear-gradient(135deg, var(--pink), var(--pink-light));
  color: #fff;
  border-radius: 12px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(242, 88, 138, 0.36);
}

.hint-text { font-size: 12.5px; color: var(--muted-2); }
.hint-text--small { font-size: 12px; color: var(--muted-2); margin-top: 10px; }

/* ===== Confirmed panel (call scheduled) ===== */
.confirm-panel {
  margin-top: 16px;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.confirm-left { display: flex; align-items: center; gap: 12px; }

.confirm-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--green-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-title { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.confirm-sub { font-size: 12px; color: var(--green); }

.done-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: 9px;
  padding: 8px 14px;
}

.row-gap {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== Sidebar cards ===== */
.side-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 4px 14px rgba(33, 26, 86, 0.04);
}

.side-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted-3);
}

.im-row { display: flex; align-items: center; gap: 13px; margin-top: 14px; }

.im-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-light), var(--blue));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}

.im-name { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.im-role { font-size: 12px; color: var(--muted); }

.im-email {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  background: var(--purple-bg);
  color: var(--purple-accent);
  border-radius: 10px;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
}

.sub-list { margin-top: 14px; display: flex; flex-direction: column; gap: 11px; }
.sub-row { display: flex; justify-content: space-between; align-items: center; }
.sub-label { font-size: 12.5px; color: var(--muted); }
.sub-value { font-size: 13px; font-weight: 600; color: var(--ink); }
.sub-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--green); }
.sub-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.sub-status--inactive { color: var(--red); }
.sub-status--inactive .sub-status-dot { background: var(--red); }

.help-card {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  border-radius: 16px;
  padding: 22px;
  color: #fff;
  box-shadow: 0 8px 22px rgba(44, 26, 120, 0.22);
}

.help-title { font-size: 14.5px; font-weight: 700; }
.help-text { margin: 6px 0 14px; font-size: 12.5px; color: rgba(255, 255, 255, 0.8); line-height: 1.55; }

.help-btn {
  width: 100%;
  display: block;
  text-align: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 10px;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* ===== FAQ ===== */
.faq-group { margin-bottom: 26px; }

.faq-group-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--purple-accent);
  margin-bottom: 12px;
}

.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(33, 26, 86, 0.04);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 20px;
  background: var(--white);
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 400;
  flex-shrink: 0;
  line-height: 1;
  background: var(--bg);
  color: var(--muted-3);
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.faq-item.open .faq-icon {
  background: var(--pink);
  color: #fff;
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 20px 18px;
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.65;
  display: none;
}

.faq-item.open .faq-answer { display: block; }

.faq-contact {
  margin-top: 8px;
  background: var(--purple-bg);
  border: 1px solid var(--purple-border);
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.faq-contact-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.faq-contact-sub { font-size: 13px; color: var(--ink-muted); margin-top: 3px; }

.btn-contact {
  text-decoration: none;
  background: var(--pink);
  color: #fff;
  border-radius: 10px;
  padding: 11px 20px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 6px 14px var(--pink-shadow);
  display: inline-block;
}

/* ===== Profile form ===== */
.profile-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(33, 26, 86, 0.05);
}

.profile-section-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--purple-accent);
  margin-bottom: 18px;
}

.profile-divider { height: 1px; background: var(--divider); margin: 26px 0; }

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field-grid--address {
  grid-template-columns: 2fr 1fr 1fr;
}

.field-grid--single {
  grid-template-columns: 1fr;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-label { font-size: 12.5px; font-weight: 600; color: var(--ink); }

.field-input {
  border: 1.5px solid var(--input-border);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
  background: #fff;
  width: 100%;
}

.field-input:focus {
  border-color: var(--purple-accent);
}

.field-required { color: var(--pink-text); }

.field-input--error,
.field-input--error:focus { border-color: var(--pink-text); }

.profile-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.saved-chip {
  display: none;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}

.saved-chip.show { display: inline-flex; }

/* ===== Toast ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 90;
  background: var(--ink);
  color: #fff;
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 12px 30px rgba(33, 26, 86, 0.35);
  display: none;
  align-items: center;
  gap: 10px;
  animation: pdToastIn 0.25s ease;
}

.toast.show { display: flex; }

.toast-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@keyframes pdToastIn {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ===== Schedule call modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(33, 26, 86, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-card {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  max-height: 88vh;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(33, 26, 86, 0.32);
}

.modal-card--compact { max-width: 460px; }

.modal-card-scroll {
  max-height: 88vh;
  overflow-y: auto;
  padding: 28px 30px;
}

.modal-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 16px;
}

.modal-loading-overlay--visible { display: flex; }

.spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--pink);
  animation: pdSpin 0.8s linear infinite;
}

@keyframes pdSpin {
  to { transform: rotate(360deg); }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal-title { margin: 4px 0 0; font-size: 19px; font-weight: 700; color: var(--ink); }
.modal-sub { margin: 8px 0 0; font-size: 13px; color: var(--ink-muted); line-height: 1.5; }

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.modal-section { margin-top: 22px; }

.modal-section-label { font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.modal-section-hint { font-weight: 500; color: var(--muted); }

/* ---- onboarding documents popup ---- */
.doc-list-empty {
  font-size: 13px;
  color: var(--ink-muted);
  padding: 18px 4px;
  text-align: center;
}

.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

li.doc-item + li.doc-item {
  margin-top: 5px;
}

.doc-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.doc-link:hover {
  border-color: var(--pink-border);
  background: var(--pink-bg);
}

.doc-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-name {
  flex: 1 1 auto;
  font-size: 13.5px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-download {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.date-chip-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.date-chip {
  flex: 0 0 auto;
  width: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.date-chip-dow { font-size: 11px; font-weight: 600; color: var(--muted); }
.date-chip-num { font-size: 17px; font-weight: 700; }
.date-chip-mon { font-size: 11px; font-weight: 600; color: var(--muted); }

.date-chip--selected {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}

.date-chip--selected .date-chip-dow,
.date-chip--selected .date-chip-mon {
  color: rgba(255, 255, 255, 0.8);
}

.slot-empty {
  border: 1.5px dashed var(--locked-border);
  border-radius: 12px;
  padding: 28px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  background: #FAFAFD;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.slot-btn {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 9px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}

.slot-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.slot-tag { font-size: 10.5px; color: var(--muted); }

.slot-btn--selected {
  background: var(--pink-bg);
  border-color: var(--pink);
}

.slot-btn--selected .slot-label,
.slot-btn--selected .slot-tag { color: var(--pink-text); }

.slot-btn--busy {
  background: #F6F5FA;
  border-color: var(--border);
  cursor: not-allowed;
}

.slot-btn--busy .slot-label,
.slot-btn--busy .slot-tag { color: #B7B4C8; }

.modal-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.modal-summary { font-size: 13px; font-weight: 600; color: var(--ink-muted); }

.modal-footer-actions { display: flex; align-items: center; gap: 10px; }

.btn-primary:disabled {
  background: var(--locked-border);
  color: var(--locked-text);
  box-shadow: none;
  cursor: not-allowed;
}

/* ===== Auth (login) ===== */
.auth-body {
  min-height: 100vh;
  display: flex;
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 6px 20px rgba(33, 26, 86, 0.05);
}

.auth-card--wide { max-width: 780px; padding: 30px; }

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.auth-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0 0 22px;
}

.auth-error {
  background: var(--pink-bg);
  border: 1px solid var(--pink-border);
  color: var(--pink-text);
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 10px;
  padding: 10px 13px;
  margin-bottom: 18px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form--sections { gap: 0; }

.auth-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

/* ===== Admin (purple theme, mirrors help-card) ===== */
.brand-mark--purple {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  box-shadow: 0 4px 10px rgba(44, 26, 120, 0.32);
}

.btn-purple {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 6px 14px rgba(67, 38, 158, 0.3);
}

.field-input--purple:focus { border-color: var(--purple-accent); }

.auth-error--purple {
  background: var(--purple-bg);
  border-color: var(--purple-border);
  color: var(--purple-accent);
}

.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.admin-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--purple-accent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 8px;
}
.admin-back:hover { text-decoration: underline; }

.admin-table-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(33, 26, 86, 0.05);
  overflow: hidden;
}

.admin-table-scroll { overflow-x: auto; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--purple-accent);
  background: var(--purple-bg);
  padding: 14px 18px;
  border-bottom: 1px solid var(--purple-border);
  white-space: nowrap;
}

.admin-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--divider);
  color: var(--ink);
  vertical-align: middle;
  white-space: nowrap;
}

.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: var(--purple-bg); }

.admin-table-strong { font-weight: 600; }
.admin-table-actions { text-align: right; }
.admin-table-empty { text-align: center; color: var(--muted); padding: 26px 18px; }

.admin-link { color: var(--purple-accent); font-weight: 600; text-decoration: none; }
.admin-link:hover { text-decoration: underline; }

.pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  letter-spacing: 0.2px;
}
.pill--yes { background: #E9F8F2; color: var(--green); }
.pill--no { background: var(--badge-locked-bg); color: var(--badge-locked-text); }

.admin-flash {
  background: var(--purple-bg);
  border: 1px solid var(--purple-border);
  color: var(--purple-accent);
  font-size: 13px;
  font-weight: 600;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.admin-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 6px 20px rgba(33, 26, 86, 0.05);
}

.admin-card-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--purple-accent);
  margin: 0 0 20px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 28px;
}

.info-item { display: flex; flex-direction: column; gap: 5px; }
.info-label { font-size: 11px; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; color: var(--muted); }
.info-value { font-size: 14px; color: var(--ink); font-weight: 500; }

.doc-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

.doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
}

.doc-name { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--ink); word-break: break-all; }
.doc-icon { color: var(--purple-accent); flex-shrink: 0; }
.doc-actions { display: inline-flex; align-items: center; gap: 16px; flex-shrink: 0; }
.doc-empty { font-size: 13px; color: var(--muted); margin: 0 0 20px; }

.upload-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid var(--divider);
  padding-top: 20px;
}

.upload-input { font-size: 13px; color: var(--ink-muted); }
.upload-input::file-selector-button {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--purple-accent);
  background: var(--purple-bg);
  border: 1px solid var(--purple-border);
  border-radius: 9px;
  padding: 8px 14px;
  margin-right: 12px;
  cursor: pointer;
}

.btn-danger {
  background: #fff;
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: 9px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.btn-danger:hover { background: var(--red); color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .dash-columns { grid-template-columns: 1fr; }
  .topbar-inner { flex-wrap: wrap; height: auto; padding: 12px 20px; }
  .main-nav { order: 3; width: 100%; justify-content: flex-start; }
  .field-grid, .field-grid--address { grid-template-columns: 1fr; }
  .admin-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .banner-row { align-items: flex-start; }
  .banner-progress { text-align: left; }
  .stepper-row { flex-wrap: wrap; row-gap: 16px; }
  .stepper-connector { display: none; }
  .modal-card-scroll { padding: 22px 18px; }
  .slot-grid { grid-template-columns: repeat(2, 1fr); }
}
