/* IVF Member Portal — matches marketing / dashboard mocks */
:root {
  --portal-bg: #f8f9fa;
  --portal-white: #ffffff;
  --portal-sidebar: #1a051d;
  --portal-pink: #d16ba5;
  --portal-pink-dark: #c14d92;
  --portal-pink-light: #fdf2f8;
  --portal-green: #22a06b;
  --portal-green-soft: #e8f8f0;
  --portal-text: #22222a;
  --portal-muted: #6c757d;
  --portal-border: #e9ecef;
  --portal-radius: 12px;
  --portal-font: "Inter", system-ui, -apple-system, sans-serif;
  --portal-shadow: 0 8px 24px rgba(26, 5, 29, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.portal-body {
  margin: 0;
  font-family: var(--portal-font);
  color: var(--portal-text);
  background: var(--portal-white);
  line-height: 1.5;
  min-height: 100vh;
}

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

/* Logo mark */
.ivf-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #f8e8f0, #fff);
  border: 2px solid rgba(209, 107, 165, 0.35);
  flex-shrink: 0;
}
.ivf-logo-ring {
  font-weight: 800;
  font-size: calc(var(--lm, 48px) * 0.36);
  color: var(--portal-pink);
  letter-spacing: -0.04em;
  line-height: 1;
}

/* ---------- Public chrome (login top nav) ---------- */
.portal-top-nav {
  padding: 12px clamp(16px, 4vw, 48px) 14px;
  border-bottom: 1px solid var(--portal-border);
}
/* Login page: logo left | nav centered | Login + CTA right */
.portal-top-nav--login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(16px, 2.5vw, 32px);
}
.portal-top-nav--login > .brand {
  grid-column: 1;
  justify-self: start;
}
.portal-top-nav--login > .portal-nav-links-wrap {
  grid-column: 2;
  justify-self: center;
}
.portal-top-nav--login > .portal-top-nav__end {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}
.portal-top-nav--login .portal-nav-links {
  justify-content: center;
  flex-wrap: nowrap;
}
@media (max-width: 1100px) {
  .portal-top-nav--login .portal-nav-links {
    flex-wrap: wrap;
    justify-content: center;
    max-width: min(520px, 85vw);
  }
}
.portal-top-nav .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 15px;
  color: var(--portal-text);
}
.portal-top-nav .brand .site-logo {
  display: flex;
  align-items: center;
  line-height: 0;
}
.portal-top-nav .brand .site-logo img {
  display: block;
  height: clamp(48px, 5.5vw, 68px);
  width: auto;
}
.portal-top-nav .brand span.small {
  display: block;
  font-weight: 500;
  font-size: 11px;
  color: var(--portal-muted);
  margin-top: 2px;
}
.portal-nav-links {
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: var(--portal-muted);
}
.portal-nav-links a:hover {
  color: var(--portal-pink);
}
.portal-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}
.portal-nav-actions .login-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--portal-text);
  font-weight: 500;
}
.portal-nav-actions .login-mini:hover {
  color: var(--portal-pink);
}
.btn-portal-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, var(--portal-pink), #e891bc);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  text-decoration: none;
}
.btn-portal-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(209, 107, 165, 0.35);
}
.btn-portal-ghost {
  background: var(--portal-white);
  color: var(--portal-pink);
  border: 2px solid var(--portal-pink);
}
.btn-portal-ghost:hover {
  background: var(--portal-pink-light);
}

.mobile-nav-toggle {
  display: none;
  border: 1px solid var(--portal-border);
  background: var(--portal-white);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}

/* ---------- Split login layout (Member Login screenshot typography) ---------- */
.portal-login-wrap {
  --login-brand-pink: #d670a8;
  --login-hero-gradient-a: rgba(155, 89, 182, 0.78);
  --login-hero-gradient-b: rgba(209, 116, 172, 0.76);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: calc(100vh - 130px);
}
.portal-login-form-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: 48px 64px 56px 72px;
  width: 100%;
  background: #ffffff;
}
.portal-login-form-panel {
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
}
.portal-login-form-col .secure-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--login-brand-pink);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 14px;
}
.portal-login-form-col h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--portal-text);
}
.portal-login-form-col .sub {
  color: var(--portal-muted);
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
}
.portal-login-form-panel .portal-field label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.portal-login-form-panel .portal-input {
  padding: 14px 44px 14px 14px;
  border-radius: 6px;
  border: 1px solid #dee2e6;
  background: #ffffff;
  font-size: 15px;
  line-height: 1.45;
}
.portal-login-form-panel .portal-input::placeholder {
  color: #adb5bd;
  font-weight: 400;
}
.portal-login-form-panel .btn-portal-login-submit {
  border-radius: 8px;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  background: linear-gradient(135deg, var(--login-brand-pink) 0%, #e891bc 100%);
}
.portal-login-form-panel .portal-trust-row {
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}
.portal-field {
  margin-bottom: 20px;
}
.portal-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--portal-text);
}
.portal-input-wrap {
  position: relative;
}
.portal-input {
  width: 100%;
  padding: 12px 44px 12px 14px;
  border: 1px solid var(--portal-border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: #fafbfc;
  transition: border-color 0.15s;
}
.portal-input:focus {
  outline: none;
  border-color: var(--portal-pink);
  background: var(--portal-white);
}
.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--portal-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}
.password-toggle:hover {
  color: var(--portal-pink);
}
.portal-row-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  font-size: 14px;
  line-height: 1.4;
}
.portal-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--portal-muted);
  cursor: pointer;
  font-weight: 400;
}
.portal-login-form-col .forgot {
  color: var(--login-brand-pink);
  font-weight: 500;
}
.portal-login-form-col .forgot:hover {
  text-decoration: underline;
}
.btn-portal-block {
  width: 100%;
  padding: 14px;
}
.portal-login-form-col .register-hint {
  text-align: center;
  margin-top: 22px;
  color: var(--portal-muted);
  font-size: 14px;
  line-height: 1.55;
}
.portal-login-form-col .register-hint a {
  color: var(--login-brand-pink);
  font-weight: 700;
}
.portal-trust-row {
  display: flex;
  gap: 24px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--portal-border);
  font-size: 12px;
  line-height: 1.45;
  color: var(--portal-muted);
  font-weight: 400;
}
.portal-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.portal-login-hero-col {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 130px);
  background-color: #a35b91;
}
.portal-login-hero-col::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("https://images.unsplash.com/photo-1579154204601-01588f351e67?auto=format&fit=crop&w=1600&q=80")
    center / cover no-repeat;
}
.portal-login-hero-col::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    146deg,
    var(--login-hero-gradient-a) 0%,
    var(--login-hero-gradient-b) 55%,
    rgba(139, 70, 120, 0.72) 100%
  );
  pointer-events: none;
}
.portal-login-hero-inner {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100vh - 130px);
  height: 100%;
  padding: 82px 64px 64px 88px;
}
.hero-block-top {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.hero-accent-line {
  display: block;
  width: 44px;
  height: 2px;
  background: rgba(255, 255, 255, 0.95);
  margin-bottom: 18px;
  flex-shrink: 0;
}
.hero-copy-block {
  max-width: 440px;
}
.hero-copy-block h2 {
  margin: 0 0 26px;
  font-size: 38px;
  line-height: 1.21;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
}
.hero-copy-block p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  max-width: 420px;
}
.hero-stats {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 0;
  padding-top: 8px;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-right: 48px;
}
.hero-stat + .hero-stat {
  padding-left: 48px;
  padding-right: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.45);
}
.hero-stat strong {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
}
.hero-stat span {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  color: #ffffff;
}

.portal-public-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--portal-border);
  font-size: 12px;
  color: var(--portal-muted);
}
.portal-public-footer .links {
  display: flex;
  gap: 16px;
}
.portal-public-footer a:hover {
  color: var(--portal-pink);
}

/* ---------- Alerts ---------- */
.portal-alert-error {
  background: #fff5f7;
  border: 1px solid #f5c6d3;
  color: #9b1c3f;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 14px;
}

.portal-alert-success {
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 22px;
  font-size: 14px;
  line-height: 1.45;
}

.dashboard-flash {
  max-width: 1200px;
}

/* ---------- Membership entry (Figma: Membership Entry) ---------- */
.membership-body {
  --mem-accent: #d46ead;
  --mem-accent-deep: #c25695;
  --mem-icon-bg: #fce7f3;
  --mem-title: #191c1e;
  --mem-text: #434655;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  background: #f8f9fb;
  min-height: 100vh;
  display: flex;
  padding: 0;
  margin: 0;
  flex-direction: column;
  color: var(--mem-text);
}
.membership-main {
  flex: 1;
  width: calc(100% - clamp(32px, 6vw, 96px));
  max-width: 1440px;
  margin: 24px auto 48px;
  padding: 48px clamp(20px, 3vw, 40px) 64px;
  box-sizing: border-box;
  /* background: #ffffff;
  border-radius: 16px;
  border: 1px solid #eef0f3;
  box-shadow: 0 4px 24px rgba(17, 24, 39, 0.06); */
}
.membership-head {
  text-align: left;
  margin: 0 0 48px;
  max-width: none;
}
.membership-head .tag {
  display: block;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--mem-accent);
}
.membership-head h1 {
  font-family: "Manrope", "Inter", system-ui, sans-serif;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -1.2px;
  color: var(--mem-title);
  margin: 14px 0 14px;
}
.membership-head p {
  max-width: 768px;
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 18px;
  line-height: 29.25px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--mem-text);
}
.official-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--portal-green-soft);
  color: #166534;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(34, 160, 107, 0.25);
}
.official-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22a06b;
  flex-shrink: 0;
}
.membership-header-shell {
  background: #ffffff;
  border-bottom: 1px solid #eef0f3;
}
.membership-simple-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.membership-simple-header .membership-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.membership-simple-header .membership-brand .site-logo {
  line-height: 0;
}
.membership-simple-header .membership-brand .site-logo img {
  display: block;
  height: clamp(44px, 5vw, 56px);
  width: auto;
}
.membership-simple-header .official-badge {
  background: #25a7771a;
  color: #15803d;
  border: 1px solid rgba(34, 160, 107, 0.38);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
}
.membership-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.membership-body .cat-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #e8ecf1;
  box-shadow: 0 4px 24px rgba(17, 24, 39, 0.06);
  display: flex;
  flex-direction: column;
  position: relative;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.membership-body .cat-card:hover {
  transform: none;
}
.membership-body .cat-card.recommended {
  border-color: #f3d4e8;
  box-shadow:
    0 4px 24px rgba(17, 24, 39, 0.06),
    0 0 0 1px rgba(212, 110, 173, 0.22);
}
.membership-body .cat-card.recommended h3 {
  padding-right: 100px;
}
.membership-body .cat-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: "Inter", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--mem-icon-bg);
  color: var(--mem-accent);
  border: none;
}
.membership-body .cat-card .icon-square {
  background: var(--mem-icon-bg);
  color: var(--mem-accent);
  margin-bottom: 20px;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.membership-body .cat-card h3 {
  font-family: "Manrope", "Inter", system-ui, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: 0;
  color: var(--mem-title);
  margin: 0 0 10px;
}
.membership-body .cat-card .desc {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  line-height: 22.75px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--mem-text);
  margin-bottom: 18px;
}
.membership-body .cat-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  line-height: 22.75px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--mem-text);
}
.membership-body .cat-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.membership-body .cat-card .benefit-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--mem-accent);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  line-height: 1;
}
.membership-body .cat-card .btn-portal-primary {
  width: 100%;
  margin-top: auto;
  padding: 14px 20px;
  border-radius: 999px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0;
  background: var(--mem-accent);
  border: none;
  box-shadow: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}
.membership-body .cat-card .btn-portal-primary:hover {
  background: var(--mem-accent-deep);
  box-shadow: 0 8px 20px rgba(212, 110, 173, 0.35);
  transform: none;
  color: #ffffff;
}
.portal-public-footer--membership {
  background: #f3f4f6;
  border-top: 1px solid #e5e7eb;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  color: #6b7280;
  padding: 18px clamp(16px, 4vw, 48px);
}
.portal-public-footer--membership .links a {
  color: inherit;
}
.portal-public-footer--membership a:hover {
  color: var(--mem-accent);
}
@media (max-width: 1024px) {
  .membership-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .membership-grid {
    grid-template-columns: 1fr;
  }
  .membership-main {
    width: calc(100% - 24px);
    margin: 16px auto 32px;
    padding: 32px 16px 48px;
    border-radius: 12px;
  }
  .membership-head {
    margin-bottom: 28px;
  }
  .membership-head .tag {
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 1.2px;
  }
  .membership-head h1 {
    font-size: 28px;
    line-height: 35px;
    letter-spacing: -0.8px;
  }
  .membership-head p {
    font-size: 16px;
    line-height: 26px;
  }
  .membership-body .cat-card.recommended h3 {
    padding-right: 0;
  }
  .portal-login-wrap {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .portal-login-form-col {
    padding: 32px 20px 40px;
  }
  .portal-login-form-col h1 {
    font-size: 28px;
  }
  .portal-login-form-col .sub {
    font-size: 14px;
  }
  .portal-login-hero-col {
    min-height: min(460px, 65vh);
  }
  .portal-login-hero-inner {
    min-height: unset;
    padding: 40px 24px 44px;
    justify-content: flex-start;
  }
  .hero-copy-block h2 {
    font-size: 28px;
    line-height: 1.2;
  }
  .hero-copy-block p {
    font-size: 15px;
  }
  .hero-stat strong {
    font-size: 26px;
  }
  .hero-stat span {
    font-size: 13px;
  }
  .hero-stat {
    padding-right: 28px;
  }
  .hero-stat + .hero-stat {
    padding-left: 28px;
  }
  .portal-top-nav--login {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    row-gap: 12px;
  }
  .portal-top-nav--login > .brand {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
  }
  .portal-top-nav--login > .portal-top-nav__end {
    order: 2;
    flex: 0 0 auto;
    margin-left: auto;
  }
  .portal-top-nav--login > .portal-nav-links-wrap {
    order: 3;
    flex: 1 1 100%;
    display: none;
  }
  .portal-top-nav--login > .portal-nav-links-wrap.open {
    display: block;
    width: 100%;
    flex-basis: 100%;
  }
  .portal-top-nav--login .portal-nav-links {
    justify-content: flex-start;
  }
  .mobile-nav-toggle {
    display: inline-flex;
  }
}
.cat-card {
  background: var(--portal-white);
  border-radius: var(--portal-radius);
  padding: 24px;
  border: 1px solid var(--portal-border);
  box-shadow: var(--portal-shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.cat-card:hover {
  transform: translateY(-2px);
}
.cat-card.recommended {
  border-color: var(--portal-pink);
}
.cat-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--portal-pink), #e891bc);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
}
.cat-card .icon-square {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--portal-pink-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--portal-pink);
  font-size: 22px;
  margin-bottom: 16px;
}
.cat-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.cat-card .desc {
  color: var(--portal-muted);
  font-size: 14px;
  margin-bottom: 16px;
  flex-grow: 0;
}
.cat-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--portal-muted);
}
.cat-card li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}
.cat-card li i {
  color: var(--portal-pink);
  margin-top: 3px;
}
.cat-card .btn-portal-primary {
  width: 100%;
  margin-top: auto;
}

/* ---------- Register ---------- */
.register-body .register-shell {
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}
.register-card {
  background: var(--portal-white);
  border-radius: var(--portal-radius);
  padding: 32px clamp(20px, 4vw, 36px);
  border: 1px solid var(--portal-border);
  box-shadow: var(--portal-shadow);
}
.register-head {
  margin-bottom: 24px;
}
.register-head .tagline {
  color: var(--portal-pink);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.register-head h1 {
  margin: 8px 0 6px;
  font-size: 26px;
}
.register-head p {
  margin: 0;
  color: var(--portal-muted);
  font-size: 14px;
}
.portal-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) {
  .portal-field-row {
    grid-template-columns: 1fr;
  }
}
select.portal-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath fill='%236c757d' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.register-meta {
  font-size: 12px;
  color: var(--portal-muted);
  margin-top: 16px;
  text-align: center;
}
.register-meta a {
  color: var(--portal-pink);
  font-weight: 600;
}

/* ---------- Dashboard layout ---------- */
.dashboard-body {
  margin: 0;
  font-family: var(--portal-font);
  color: var(--portal-text);
  --portal-bg: #f8f9fa;
  --portal-pink: #d65a8e;
  --portal-pink-light: #fce8f0;
  --portal-pink-dark: #b84478;
  --portal-sidebar: #1a001a;
  background: var(--portal-bg);
  min-height: 100vh;
  display: flex;
}
.dashboard-sidebar {
  width: 276px;
  flex-shrink: 0;
  background: #1a001a;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  position: sticky;
  top: 0;
  align-self: flex-start;
  min-height: 100vh;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 0 4px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}
.sidebar-brand-link {
  display: block;
  line-height: 0;
  text-decoration: none;
}
.sidebar-brand-link:focus-visible {
  outline: 2px solid var(--portal-pink);
  outline-offset: 4px;
  border-radius: 8px;
}
.sidebar-brand-logo {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 56px;
  object-fit: contain;
  object-position: left center;
}
.sidebar-brand-tagline {
  margin: 0;
  padding-left: 2px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.6);
}
.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}
.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: inherit;
  margin-bottom: 4px;
  opacity: 0.85;
}
.sidebar-nav li a:hover {
  background: rgba(255, 255, 255, 0.06);
  opacity: 1;
}
.sidebar-nav li a.active {
  background: var(--portal-pink);
  color: #fff;
  opacity: 1;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(214, 90, 142, 0.35);
}
.sidebar-logout {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-logout a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: inherit;
  opacity: 0.85;
}
.sidebar-logout a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.dash-sidebar-pin {
  position: fixed;
  top: 50%;
  left: max(0px, calc(276px - 14px));
  transform: translateY(-50%);
  z-index: 50;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--portal-pink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  box-shadow: 0 2px 12px rgba(214, 90, 142, 0.45);
  border: 2px solid #fff;
  pointer-events: none;
}
@media (max-width: 520px) {
  .dash-sidebar-pin {
    display: none;
  }
}

.dashboard-main-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--portal-bg);
}
.dashboard-topbar {
  background: var(--portal-white);
  border-bottom: 1px solid #eef0f3;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.04);
}
.dashboard-search {
  flex: 1;
  min-width: 200px;
  max-width: 520px;
  position: relative;
}
.dashboard-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--portal-muted);
  font-size: 14px;
}
.dashboard-search input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border-radius: 10px;
  border: 1px solid var(--portal-border);
  background: #f3f4f6;
  font-family: inherit;
  font-size: 14px;
}
.dashboard-search input:focus {
  outline: none;
  border-color: var(--portal-pink);
  background: var(--portal-white);
}
.dashboard-top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}
.notif-btn {
  position: relative;
  border: none;
  background: transparent;
  font-size: 18px;
  color: var(--portal-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.notif-btn:hover {
  background: var(--portal-bg);
  color: var(--portal-text);
}
.notif-btn .badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #e53935;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.user-mini {
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-mini .meta {
  text-align: right;
}
.user-mini strong {
  display: block;
  font-size: 14px;
}
.user-mini span.id {
  font-size: 12px;
  color: var(--portal-muted);
}
.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e889b5, var(--portal-pink));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.dashboard-content {
  padding: 28px clamp(16px, 3vw, 36px) 48px;
  flex: 1;
  background: var(--portal-bg);
}
.page-head {
  margin-bottom: 28px;
}
.page-head h1 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827;
}
.page-head p {
  margin: 0;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.45;
}
.welcome-banner {
  border-radius: 12px;
  padding: clamp(22px, 4vw, 32px) clamp(22px, 3vw, 36px);
  background: linear-gradient(118deg, #e597bc 0%, #d65a8e 42%, #c23e78 100%);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  box-shadow: 0 10px 32px rgba(214, 90, 142, 0.32);
}
.welcome-banner h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.welcome-banner .subline {
  font-size: 14px;
  opacity: 0.95;
  margin: 0 0 12px;
}
.pill-soft {
  display: inline-block;
  background: rgba(255, 255, 255, 0.22);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.welcome-banner .since {
  font-size: 14px;
  opacity: 0.95;
  text-align: right;
  line-height: 1.5;
}
.welcome-banner .since strong {
  font-size: 17px;
  font-weight: 700;
}
.dash-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.stat-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}
@media (max-width: 1100px) {
  .stat-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .stat-grid-4 {
    grid-template-columns: 1fr;
  }
  .dashboard-sidebar {
    display: none;
  }
}
.stat-card {
  background: var(--portal-white);
  border-radius: 12px;
  padding: 18px 18px 20px;
  border: 1px solid #eef0f3;
  box-shadow: 0 4px 20px rgba(17, 24, 39, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.stat-card:not(:has(.stat-card-body)) {
  position: relative;
  display: block;
  padding: 18px 20px;
  min-height: 108px;
}

.stat-card:not(:has(.stat-card-body)) .icon {
  position: absolute;
  top: 16px;
  right: 16px;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.stat-card .icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.stat-card-body {
  flex: 1;
  min-width: 0;
}
.stat-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  line-height: 1.2;
}
.stat-card .icon.green {
  background: #e6f7ed;
  color: #1b7a4c;
}
.stat-card .icon.pink {
  background: var(--portal-pink-light);
  color: var(--portal-pink);
}
.stat-card .icon.blue {
  background: #e8f0fe;
  color: #1a56c4;
}
.stat-card .icon.yellow {
  background: #fff8e6;
  color: #b8860b;
}
.stat-card .value {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  color: #111827;
  line-height: 1.15;
}
.stat-card .label {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  line-height: 1.35;
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}
@media (max-width: 900px) {
  .quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .quick-actions {
    grid-template-columns: 1fr;
  }
}
.qa-card {
  background: var(--portal-white);
  border-radius: 12px;
  padding: 18px;
  border: 1px solid #eef0f3;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 12px rgba(17, 24, 39, 0.04);
}
.qa-card:hover {
  box-shadow: 0 8px 24px rgba(26, 5, 29, 0.08);
  border-color: #e5e7eb;
}
.qa-card .qa-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.qa-card .qa-icon.gray {
  background: #f3f4f6;
  color: #6b7280;
}
.qa-card .qa-icon.pink {
  background: var(--portal-pink-light);
  color: var(--portal-pink);
}
.qa-card .qa-icon.blue {
  background: #e8f0fe;
  color: #2563eb;
}
.qa-card .qa-icon.teal {
  background: #e0f7f5;
  color: #0d9488;
}
.qa-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}
.qa-card span {
  font-size: 13px;
  color: var(--portal-muted);
}
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 900px) {
  .bottom-grid {
    grid-template-columns: 1fr;
  }
}
.panel-card {
  background: var(--portal-white);
  border-radius: 12px;
  border: 1px solid #eef0f3;
  box-shadow: 0 4px 20px rgba(17, 24, 39, 0.05);
  padding: 22px 24px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.panel-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}
.panel-head a {
  font-size: 13px;
  color: var(--portal-pink);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.list-card {
  border: 1px solid #eef0f3;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #fafbfc;
}
.list-card:last-child {
  margin-bottom: 0;
}
.list-card h4 {
  margin: 0 0 6px;
  font-size: 14px;
}
.list-card .meta {
  font-size: 12px;
  color: var(--portal-muted);
}
.badge-reg {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--portal-green-soft);
  color: #166534;
}
.btn-outline-sm {
  border: 1px solid var(--portal-border);
  background: var(--portal-white);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--portal-text);
}
.btn-outline-sm:hover {
  border-color: var(--portal-pink);
  color: var(--portal-pink);
}
.journal-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.journal-row .book {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--portal-pink-light);
  color: var(--portal-pink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.journal-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.tag-pink {
  background: var(--portal-pink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}
.tag-outline {
  border: 1px solid var(--portal-border);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--portal-muted);
}

/* ---------- Doctor apply wizard (Figma: Membership Registration) ---------- */
.apply-wizard-body {
  --apply-pink: #d46ead;
  --apply-pink-deep: #c25695;
  --apply-green: #4caf50;
  --apply-page-bg: #f9fafb;
  --apply-title: #1d2530;
  --apply-muted: #627084;
  --apply-input-bg: #e1e2e4;
  --apply-placeholder: rgba(116, 118, 134, 0.5);
  --mem-accent: var(--apply-pink);
  --mem-body-muted: #6b7280;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--apply-page-bg);
  color: var(--apply-title);
}

.apply-wizard-main {
  flex: 1;
  padding: clamp(16px, 3vw, 32px) clamp(16px, 4vw, 48px) 48px;
  width: 100%;
  box-sizing: border-box;
}

.apply-wizard-inner {
  max-width: 896px;
  margin: 0 auto;
}

.apply-wizard-alert {
  max-width: 896px;
  margin: 0 auto 20px;
}

.apply-wizard-body .apply-stepper {
  list-style: none;
  margin: 0 0 48px;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4px;
  position: relative;
  --apply-stepper-progress: 0%;
}

.apply-wizard-body .apply-stepper::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 17px;
  height: 2px;
  z-index: 0;
  border-radius: 2px;
  background: linear-gradient(
    to right,
    var(--apply-green) 0%,
    var(--apply-green) var(--apply-stepper-progress, 0%),
    #e5e7eb var(--apply-stepper-progress, 0%),
    #e5e7eb 100%
  );
}

.apply-wizard-body .apply-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  max-width: 100px;
}

.apply-wizard-body .apply-step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid var(--apply-page-bg);
}

.apply-wizard-body .apply-step-dot i {
  font-size: 13px;
}

.apply-wizard-body .apply-step--done .apply-step-dot {
  background: var(--apply-green);
  color: #fff;
}

.apply-wizard-body .apply-step--done .apply-step-label {
  color: var(--apply-green);
  font-weight: 500;
}

.apply-wizard-body .apply-step--current .apply-step-dot {
  background: var(--apply-pink);
  color: #fff;
  box-shadow: 0 2px 10px rgba(212, 110, 173, 0.4);
}

.apply-wizard-body .apply-step--current .apply-step-label {
  color: var(--apply-pink);
  font-weight: 600;
}

.apply-wizard-body .apply-step--pending .apply-step-label {
  color: #9ca3af;
  font-weight: 500;
}

.apply-wizard-body .apply-form-head {
  text-align: center;
  margin-bottom: 40px;
}

.apply-wizard-body .apply-form-title {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
  letter-spacing: 0;
  color: var(--apply-title);
  margin: 0 0 16px;
}

.apply-wizard-body .apply-form-lead {
  max-width: 499px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0;
  color: var(--apply-muted);
}

.apply-wizard-body .apply-form-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 40px 48px 64px;
  margin-bottom: 0;
  border: 1px solid rgba(196, 197, 215, 0.25);
  box-shadow: 0 4px 24px rgba(17, 24, 39, 0.06);
}

.apply-wizard-body .portal-field {
  margin-bottom: 0;
}

.apply-wizard-body .portal-field label {
  display: block;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0;
  color: #111827;
  margin-bottom: 8px;
}

.apply-wizard-body .portal-input,
.apply-wizard-body textarea.portal-input {
  width: 100%;
  min-height: 49px;
  padding: 14px 16px;
  border: none;
  border-radius: 8px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 100%;
  letter-spacing: 0;
  background: var(--apply-input-bg);
  color: #111827;
  transition:
    box-shadow 0.15s,
    background 0.15s;
  box-sizing: border-box;
}

.apply-wizard-body .portal-input::placeholder,
.apply-wizard-body textarea.portal-input::placeholder {
  color: var(--apply-placeholder);
}

.apply-wizard-body .portal-input:focus,
.apply-wizard-body textarea.portal-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(212, 110, 173, 0.35);
  background: #ebecee;
}

.apply-wizard-body .apply-field-grid {
  display: grid;
  gap: 20px 24px;
}

.apply-wizard-body .apply-form-card > *:not(:last-child) {
  margin-bottom: 20px;
}

.apply-wizard-body .apply-phone-wrap {
  display: flex;
  align-items: stretch;
}

.apply-wizard-body .apply-phone-prefix {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0 14px;
  background: #d1d2d6;
  border: none;
  border-radius: 8px 0 0 8px;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #4b5563;
}

.apply-wizard-body .apply-phone-wrap .portal-input {
  border-radius: 0 8px 8px 0;
  min-height: 49px;
}

.apply-wizard-body .apply-textarea {
  min-height: 100px;
  resize: vertical;
  padding-top: 16px;
  padding-bottom: 16px;
  line-height: 1.45;
}

.apply-wizard-body .apply-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  min-height: 52px;
}

.apply-wizard-body .apply-form-actions-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
}

.apply-wizard-body .apply-link-back {
  font-size: 15px;
  font-weight: 600;
  color: #627084;
}

.apply-wizard-body .apply-link-back:hover {
  color: var(--apply-pink);
}

.apply-wizard-body .apply-form-actions-right .btn-portal-ghost {
  border: 1px solid var(--apply-pink);
  color: var(--apply-pink);
  background: #ffffff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  padding: 12px 22px;
}

.apply-wizard-body .apply-form-actions-right .btn-portal-ghost:hover {
  background: rgba(212, 110, 173, 0.06);
}

.apply-wizard-body .apply-form-actions-right .btn-portal-primary {
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  padding: 12px 22px;
  background: #d6589f;
  border: none;
  box-shadow: none;
  gap: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.apply-wizard-body .apply-form-actions-right .btn-portal-primary:hover {
  background: var(--apply-pink-deep);
  box-shadow: 0 6px 16px rgba(214, 88, 159, 0.35);
  transform: none;
}

@media (max-width: 720px) {
  .apply-wizard-body .apply-field-grid-2,
  .apply-wizard-body .apply-field-grid-split {
    grid-template-columns: 1fr;
  }
  .apply-wizard-body .apply-stepper::before {
    display: none;
  }
  .apply-wizard-body .apply-stepper {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
  }
  .apply-wizard-body .apply-form-card {
    padding: 28px 20px 40px;
  }
}

.apply-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--portal-pink);
  margin: 24px 0 14px;
}

.apply-section-label:first-child {
  margin-top: 0;
}

.apply-interest-groups {
  margin-top: 8px;
}

.apply-interest-groups-lead {
  margin: 0 0 16px;
}

.apply-form-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--portal-pink);
  margin: 0 0 8px;
}

.apply-qual-grid .apply-procedure-item input[type="radio"] {
  margin-top: 2px;
}

.apply-field-grid {
  display: grid;
  gap: 16px 20px;
}

.apply-field-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.apply-field-grid-split {
  grid-template-columns: 1.4fr 0.8fr;
}

@media (max-width: 720px) {
  .apply-field-grid-2,
  .apply-field-grid-split {
    grid-template-columns: 1fr;
  }
  .apply-stepper::before {
    display: none;
  }
  .apply-stepper {
    flex-wrap: wrap;
    justify-content: center;
  }
}

.apply-textarea {
  min-height: 100px;
  resize: vertical;
}

.apply-phone-wrap {
  display: flex;
  align-items: stretch;
}

.apply-phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #f3f4f6;
  border: 1px solid var(--portal-border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--portal-muted);
}

.apply-phone-wrap .portal-input {
  border-radius: 0 8px 8px 0;
}

.apply-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.apply-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--portal-border);
  background: #f9fafb;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.apply-chip input {
  width: 16px;
  height: 16px;
  accent-color: var(--portal-pink);
}

.apply-setting-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 560px) {
  .apply-setting-grid {
    grid-template-columns: 1fr;
  }
}

.apply-setting-tile {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--portal-border);
  background: #f9fafb;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.apply-setting-tile input {
  margin-top: 3px;
  accent-color: var(--portal-pink);
}

.apply-years-row .apply-years-input {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 200px;
}

.apply-years-input .portal-input {
  max-width: 100px;
}

.apply-years-suffix {
  font-size: 14px;
  color: var(--portal-muted);
}

.apply-procedure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .apply-procedure-grid {
    grid-template-columns: 1fr;
  }
}

.apply-procedure-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--portal-border);
  font-size: 14px;
  cursor: pointer;
}

.apply-procedure-item input {
  accent-color: var(--portal-pink);
}

.apply-procedure-full {
  grid-column: 1 / -1;
}

.apply-dropzone {
  border: 2px dashed var(--portal-border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  background: #fafafa;
}

.apply-dropzone-lg {
  padding: 32px 20px;
}

.apply-dropzone-icon {
  font-size: 36px;
  color: var(--portal-pink);
  margin-bottom: 10px;
}

.apply-dropzone p {
  margin: 4px 0;
  font-size: 14px;
}

.apply-dropzone-hint {
  font-size: 12px !important;
  color: var(--portal-muted) !important;
}

.apply-browse,
.apply-browse-btn {
  cursor: pointer;
  margin-top: 12px;
  display: inline-block;
}

.apply-file-native {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.apply-browse {
  color: var(--portal-pink);
  font-weight: 600;
  font-size: 14px;
  text-decoration: underline;
}

.apply-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.apply-form-actions-spaced {
  margin-top: 28px;
}

.apply-form-actions-right {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
}

.apply-link-back {
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--portal-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.apply-link-back:hover {
  color: var(--portal-pink);
}

.apply-btn-draft {
  padding-left: 22px;
  padding-right: 22px;
}

/* Uploads layout */
.apply-uploads-layout {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 300px);
  gap: 24px;
  margin-bottom: 8px;
}

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

.apply-upload-card {
  background: var(--portal-white);
  border-radius: var(--portal-radius);
  padding: 22px;
  border: 1px solid var(--portal-border);
  box-shadow: var(--portal-shadow);
  margin-bottom: 20px;
}

.apply-upload-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.apply-upload-card-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.apply-card-icon {
  color: var(--portal-pink);
  font-size: 20px;
}

.apply-upload-desc {
  font-size: 13px;
  color: var(--portal-muted);
  margin: 0 0 16px;
}

.apply-uploads-aside .apply-upload-card {
  margin-bottom: 20px;
}

.apply-cv-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px;
  border: 2px dashed var(--portal-border);
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--portal-muted);
  position: relative;
}

.apply-cv-plus {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--portal-pink-light);
  color: var(--portal-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.apply-help-card {
  background: linear-gradient(145deg, #e879b8, #c94d95);
  color: #fff;
  border-radius: var(--portal-radius);
  padding: 22px;
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.apply-help-card h4 {
  margin: 0 0 10px;
  font-size: 16px;
}

.apply-help-card p {
  margin: 0 0 14px;
  font-size: 13px;
  opacity: 0.95;
  line-height: 1.5;
}

.apply-help-card a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

.apply-help-watermark {
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-size: 72px;
  opacity: 0.12;
}

.apply-uploaded-file {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--portal-border);
  border-radius: 10px;
  background: #fafafa;
  margin-bottom: 16px;
}

.apply-file-icon {
  font-size: 28px;
  color: #c62828;
}

.apply-file-meta strong {
  display: block;
  font-size: 14px;
}

.apply-file-meta span {
  font-size: 12px;
  color: var(--portal-muted);
}

.apply-icon-btn {
  margin-left: auto;
  border: none;
  background: none;
  color: var(--portal-muted);
  cursor: pointer;
  padding: 8px;
}

.apply-add-cert {
  border: 2px dashed var(--portal-border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.apply-add-cert p {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--portal-muted);
}

.apply-add-btn {
  border: 2px solid var(--portal-pink);
}

/* Declaration */
.apply-oath-box {
  background: #f3f4f6;
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 24px;
}

.apply-oath-title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--portal-pink);
}

.apply-oath-box p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--portal-text);
}

.apply-oath-box p:last-child {
  margin-bottom: 0;
}

.apply-signature-zone {
  width: 100%;
  min-height: 120px;
  border: 2px dashed var(--portal-border);
  border-radius: 12px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--portal-muted);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

.apply-signature-zone i {
  font-size: 28px;
  color: #bbb;
}

.apply-terms-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--portal-pink-light);
  border-radius: 12px;
  margin-top: 20px;
  border: 1px solid rgba(209, 107, 165, 0.25);
}

.apply-terms-row input {
  margin-top: 4px;
  accent-color: var(--portal-pink);
  flex-shrink: 0;
}

.apply-terms-row label {
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}

.apply-terms-row a {
  color: var(--portal-pink);
  font-weight: 700;
}

/* Success */
.apply-success-card {
  background: var(--portal-white);
  border-radius: 16px;
  padding: clamp(32px, 6vw, 48px);
  border: 1px solid var(--portal-border);
  box-shadow: var(--portal-shadow);
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.apply-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--portal-pink-light);
  color: var(--portal-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.apply-success-title {
  font-size: clamp(20px, 3vw, 24px);
  margin: 0 0 14px;
  font-weight: 800;
}

.apply-success-lead {
  color: var(--portal-muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 28px;
}

.apply-ref-box {
  background: var(--portal-pink-light);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 28px;
}

.apply-ref-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--portal-muted);
  margin-bottom: 6px;
}

.apply-ref-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--portal-pink);
}

.apply-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.btn-apply-receipt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--portal-border);
  background: #f3f4f6;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}

.btn-apply-receipt:hover {
  border-color: #ccc;
}

.apply-success-foot {
  font-size: 14px;
  color: var(--portal-muted);
  margin: 0;
}

/* ---------- PG / Medical Officer apply wizard ---------- */
.apply-label-caps {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.apply-pg-fields-muted {
  background: #f6f7f9;
  border: 1px solid var(--portal-border);
}

.apply-specialty-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 640px) {
  .apply-specialty-grid {
    grid-template-columns: 1fr;
  }
}

.apply-specialty-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--portal-border);
  background: #f9fafb;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.apply-specialty-tile input {
  flex-shrink: 0;
  accent-color: var(--portal-pink);
}

.apply-training-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.apply-training-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--portal-border);
  background: #f9fafb;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.apply-training-option input {
  flex-shrink: 0;
  accent-color: var(--portal-pink);
}

.apply-input-with-addon {
  position: relative;
}

.apply-input-with-addon .portal-input {
  padding-right: 44px;
}

.apply-input-addon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--portal-muted);
  pointer-events: none;
}

.apply-training-alert {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--portal-pink-light);
  border: 1px solid rgba(209, 107, 165, 0.35);
  margin-top: 8px;
}

.apply-training-alert > i {
  color: var(--portal-pink);
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.apply-training-alert strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--portal-text);
}

.apply-training-alert p {
  margin: 0;
  font-size: 13px;
  color: var(--portal-muted);
  line-height: 1.5;
}

.apply-pg-docs-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 8px;
}

.apply-pg-doc-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) minmax(200px, 280px);
  gap: 18px;
  align-items: stretch;
  background: var(--portal-white);
  border-radius: var(--portal-radius);
  padding: 20px 22px;
  border: 1px solid var(--portal-border);
  box-shadow: var(--portal-shadow);
}

@media (max-width: 900px) {
  .apply-pg-doc-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.apply-pg-doc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.apply-pg-doc-icon--blue {
  background: #e8f4fc;
  color: #1976d2;
}

.apply-pg-doc-icon--purple {
  background: #f0e8fc;
  color: #7b1fa2;
}

.apply-pg-doc-icon--amber {
  background: #fff4e5;
  color: #e65100;
}

.apply-pg-doc-meta h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}

.apply-pg-doc-meta p {
  margin: 0;
  font-size: 13px;
  color: var(--portal-muted);
  line-height: 1.45;
}

.apply-pg-dropzone {
  padding: 20px 14px;
  margin: 0;
}

.apply-pg-dropzone-add {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  margin: 0;
}

.apply-pg-dropzone-add span:last-of-type {
  font-weight: 600;
  font-size: 14px;
  color: var(--portal-muted);
}

.apply-pg-add-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--portal-pink-light);
  color: var(--portal-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.apply-file-native-fill {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
  cursor: pointer;
}

.apply-pg-replace {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--portal-pink);
  cursor: pointer;
  position: relative;
}

.apply-pg-uploaded .apply-file-meta span {
  font-size: 12px;
  color: var(--portal-muted);
  display: block;
}

.apply-pg-remove-x {
  margin-left: auto;
  color: #c62828 !important;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
}

.apply-pg-remove-x:hover {
  color: #b71c1c !important;
}

.apply-pg-upload-foot {
  margin: 8px 0 4px;
  font-size: 12px;
  color: var(--portal-muted);
}

.apply-pg-declaration-strip {
  background: #f3f4f6;
  border-radius: 10px;
  border-left: 4px solid var(--portal-pink);
  padding: 18px 20px;
  margin-bottom: 24px;
}

.apply-pg-declaration-strip p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--portal-text);
}

.apply-optional-tag {
  font-weight: 500;
  color: var(--portal-muted);
  font-size: 13px;
}

.apply-pg-success-wrap {
  display: flex;
  justify-content: center;
}

.apply-pg-success-card {
  max-width: 680px;
  width: 100%;
}

.apply-success-eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--portal-pink);
}

.apply-pg-ref-box {
  background: #eff1f4 !important;
  border: 1px solid var(--portal-border);
}

.apply-pg-ref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.apply-pg-ref-qr {
  font-size: 28px;
  color: var(--portal-muted);
  opacity: 0.85;
}

.apply-pg-next {
  text-align: left;
  margin-bottom: 28px;
}

.apply-pg-next-title {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 700;
}

.apply-pg-next-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.apply-pg-next-list > li {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.apply-pg-next-list > li:last-child {
  margin-bottom: 0;
}

.apply-pg-next-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
  flex-shrink: 0;
  margin-top: 6px;
}

.apply-pg-next-dot--on {
  background: var(--portal-pink);
  box-shadow: 0 0 0 4px rgba(209, 107, 165, 0.2);
}

.apply-pg-next-list strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.apply-pg-next-list p {
  margin: 0;
  font-size: 13px;
  color: var(--portal-muted);
  line-height: 1.5;
}

.apply-pg-success-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.apply-link-back-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--portal-muted);
}

.apply-link-back-inline:hover {
  color: var(--portal-pink);
}

/* ---------- Dashboard section pages ---------- */
.dash-page-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}
.dash-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dash-membership-card {
  background: var(--portal-white);
  border-radius: 16px;
  border: 1px solid var(--portal-border);
  box-shadow: var(--portal-shadow);
  overflow: hidden;
  margin-bottom: 24px;
}
.dash-membership-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  background: linear-gradient(110deg, #e879b8, #c94d95 50%, #a855c4);
  color: #fff;
}
.dash-memb-org {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dash-membership-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}
.dash-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.22);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.dash-membership-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--portal-border);
}
@media (max-width: 900px) {
  .dash-membership-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .dash-membership-grid {
    grid-template-columns: 1fr;
  }
}
.dash-detail {
  background: var(--portal-white);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dash-detail .k {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--portal-muted);
}
.dash-detail .v {
  font-size: 15px;
  font-weight: 600;
}
.dash-accred {
  display: inline-block;
  background: var(--portal-green-soft);
  color: #166534;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}
.dash-days {
  color: var(--portal-green);
  font-weight: 800 !important;
}

.dash-section-title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
}
.dash-benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}
@media (max-width: 640px) {
  .dash-benefit-list {
    grid-template-columns: 1fr;
  }
}
.dash-benefit-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.dash-benefit-list i {
  color: var(--portal-green);
}

.dash-renew-bar {
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: var(--portal-radius);
  border: 1px solid var(--portal-border);
  background: var(--portal-white);
  box-shadow: var(--portal-shadow);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.dash-renew-bar p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--portal-muted);
}

.dash-profile-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 20px;
}
.dash-profile-avatar-lg {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5b8d9, var(--portal-pink));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  flex-shrink: 0;
}
.dash-profile-name {
  margin: 0 0 6px;
  font-size: 22px;
}
.dash-profile-title {
  margin: 0 0 6px;
  color: var(--portal-muted);
  font-size: 14px;
}
.dash-profile-id {
  margin: 0;
  font-size: 13px;
  color: var(--portal-muted);
}

.dash-form-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.dash-fields-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}
@media (max-width: 720px) {
  .dash-fields-2 {
    grid-template-columns: 1fr;
  }
}
.dash-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--portal-text);
}
.dash-field-full {
  grid-column: 1 / -1;
}

.dash-doc-stats,
.dash-news-stats,
.dash-pay-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 960px;
}
@media (max-width: 900px) {
  .dash-doc-stats,
  .dash-news-stats,
  .dash-pay-summary {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

.dash-doc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--portal-border);
}
.dash-doc-row:last-child {
  border-bottom: none;
}
.dash-doc-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--portal-pink-light);
  color: var(--portal-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.dash-doc-info {
  flex: 1;
  min-width: 200px;
}
.dash-doc-info strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}
.dash-doc-info span {
  font-size: 12px;
  color: var(--portal-muted);
}
.dash-tag-status {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--portal-pink-light);
  color: var(--portal-pink-dark);
}
.dash-doc-actions {
  display: flex;
  gap: 4px;
}

.dash-alert-warn {
  margin-top: 20px;
  border-left: 4px solid #e53935;
  background: #fff5f5;
}
.dash-alert-warn strong {
  display: block;
  margin-bottom: 8px;
}
.dash-alert-warn p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--portal-muted);
}

.dash-pay-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: var(--portal-radius);
  background: #fff8e6;
  border: 1px solid #ffe0a3;
  margin-bottom: 24px;
}
.dash-pay-banner p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--portal-muted);
}

.dash-table-scroll {
  overflow-x: auto;
}
.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.dash-table th,
.dash-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--portal-border);
}
.dash-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--portal-muted);
  font-weight: 700;
}
.dash-pay-paid {
  color: #166534;
  font-weight: 700;
}
.dash-pay-pending {
  color: #b8860b;
  font-weight: 700;
}

.dash-journals-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}
.dash-j-search {
  flex: 1;
  min-width: 220px;
  max-width: 400px;
}
.dash-toolbar-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.dash-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--portal-muted);
}
.dash-filter .portal-input {
  padding: 8px 32px 8px 12px;
  font-size: 13px;
  min-width: 120px;
}

.dash-journal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 1100px) {
  .dash-journal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .dash-journal-grid {
    grid-template-columns: 1fr;
  }
}
.dash-journal-card {
  background: var(--portal-white);
  border-radius: var(--portal-radius);
  border: 1px solid var(--portal-border);
  box-shadow: var(--portal-shadow);
  padding: 18px;
  display: flex;
  flex-direction: column;
}
.dash-journal-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.dash-journal-book {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--portal-pink-light);
  color: var(--portal-pink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dash-journal-tags-top {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.dash-journal-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--portal-pink);
  color: #fff;
}
.dash-journal-cat {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--portal-border);
  color: var(--portal-muted);
}
.dash-journal-card h4 {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.35;
  flex: 1;
}
.dash-journal-author {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--portal-muted);
}
.dash-journal-meta {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--portal-muted);
}
.dash-journal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}
.dash-journal-dl {
  padding: 8px 16px;
  font-size: 13px;
}

.dash-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--portal-border);
  padding-bottom: 2px;
}
.dash-tab {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--portal-muted);
  border-radius: 8px 8px 0 0;
  text-decoration: none;
}
.dash-tab:hover {
  color: var(--portal-pink);
}
.dash-tab-active {
  color: var(--portal-pink);
  border-bottom: 3px solid var(--portal-pink);
  margin-bottom: -3px;
}

.dash-course-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--portal-border);
}
.dash-course-row:last-child {
  border-bottom: none;
}
.dash-course-row strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}

.dash-event-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--portal-border);
}
.dash-event-row:last-child {
  border-bottom: none;
}
.dash-event-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e8f0fe;
  color: #1a56c4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.dash-event-body {
  flex: 1;
  min-width: 200px;
}
.dash-event-body strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}
.dash-event-type {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--portal-pink);
}

.membership-body .cat-fee {
  font-family: "Manrope", "Inter", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--mem-accent, #c44d96);
  margin: 0 0 8px;
}
.membership-body .cat-fee span {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.dash-verify-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #fff7ed 0%, #fff 100%);
  border: 1px solid #fed7aa;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}
.dash-verify-banner-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #ffedd5;
  color: #ea580c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.dash-verify-fee {
  margin-top: 8px;
  color: #64748b;
  font-size: 14px;
}
.dash-verify-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.dash-verify-card {
  padding: 24px;
}
.dash-verify-card-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}
.dash-verify-step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--portal-pink, #c44d96);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.dash-verify-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
}
.dash-verify-card p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}
.dash-verify-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.dash-verify-pending {
  background: #fef3c7;
  color: #92400e;
}
.dash-verify-ok {
  background: #d1fae5;
  color: #065f46;
}
.dash-verify-reject {
  background: #fee2e2;
  color: #991b1b;
}
.dash-verify-note {
  font-size: 14px;
  color: #475569;
  margin: 0;
}
.dash-verify-note--ok {
  color: #059669;
}
.dash-verify-note--error {
  color: #dc2626;
}
.dash-status-pending {
  background: #fef3c7;
  color: #92400e;
}
.dash-status-active {
  background: #d1fae5;
  color: #065f46;
}
.dash-status-rejected {
  background: #fee2e2;
  color: #991b1b;
}
.dash-pay-instructions {
  font-size: 13px;
  color: #64748b;
  margin-top: 8px;
}
.dash-verify-unlocked {
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .dash-verify-grid {
    grid-template-columns: 1fr;
  }
  .dash-verify-card-head {
    grid-template-columns: auto 1fr;
  }
  .dash-verify-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

.dash-verify-card--locked {
  opacity: 0.55;
}
.dash-verify-card--done {
  border-color: #bbf7d0;
}
.dash-verify-card--active {
  border-color: #fbcfe8;
  box-shadow: 0 0 0 1px rgba(196, 77, 150, 0.15);
}
.dash-verify-locked {
  background: #e2e8f0;
  color: #64748b;
}

.dashboard-blur-shell {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 100vh;
  width: 100%;
}

.dashboard-body.verify-modal-open .dashboard-blur-shell {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}

.verify-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  pointer-events: auto;
}

.verify-modal {
  position: relative;
  z-index: 2001;
  filter: none;
  width: min(520px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
  padding: 28px;
}

.verify-modal-header {
  text-align: center;
  margin-bottom: 20px;
}
.verify-modal-step-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--portal-pink, #c44d96);
  margin-bottom: 8px;
}
.verify-modal-header h2 {
  margin: 0 0 6px;
  font-size: 22px;
}
.verify-modal-sub {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.verify-modal-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
}
.verify-modal-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  min-width: 72px;
}
.verify-modal-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  font-size: 14px;
}
.verify-modal-step.is-active {
  color: var(--portal-pink, #c44d96);
}
.verify-modal-step.is-active .verify-modal-step-num {
  border-color: var(--portal-pink, #c44d96);
  background: var(--portal-pink, #c44d96);
  color: #fff;
}
.verify-modal-step.is-done {
  color: #059669;
}
.verify-modal-step.is-done .verify-modal-step-num {
  border-color: #059669;
  background: #059669;
  color: #fff;
}
.verify-modal-step.is-locked .verify-modal-step-num {
  background: #f1f5f9;
}
.verify-modal-step-line {
  width: 48px;
  height: 2px;
  background: #e2e8f0;
  margin-bottom: 22px;
}
.verify-modal-step-line.is-done {
  background: #059669;
}

.verify-modal-body {
  text-align: center;
}
.verify-modal-body h3 {
  margin: 12px 0 8px;
  font-size: 18px;
}
.verify-modal-body p {
  margin: 0 0 12px;
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
}
.verify-modal-note {
  font-size: 13px;
  color: #64748b;
  margin-top: 8px;
}
.verify-modal-alert {
  text-align: left;
  margin-bottom: 16px;
}

.verify-modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 8px;
}
.verify-modal-icon--wait {
  background: #fef3c7;
  color: #d97706;
}
.verify-modal-icon--error {
  background: #fee2e2;
  color: #dc2626;
}
.verify-modal-icon--pay {
  background: #fce7f3;
  color: var(--portal-pink, #c44d96);
}

.verify-payment-form {
  text-align: left;
  margin-top: 16px;
}
.verify-payment-form .portal-field {
  margin-bottom: 16px;
}
.verify-payment-form .req {
  color: #dc2626;
}

.verify-upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 16px;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  cursor: pointer;
  background: #f8fafc;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.verify-upload-box:hover {
  border-color: var(--portal-pink, #c44d96);
  background: #fdf2f8;
}
.verify-upload-box i {
  font-size: 24px;
  color: var(--portal-pink, #c44d96);
}
.verify-upload-text {
  font-size: 13px;
  color: #64748b;
  text-align: center;
}
.verify-upload-name {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}
.verify-upload-box input[type="file"] {
  display: none;
}

.verify-submission-summary {
  text-align: left;
  margin: 16px 0;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
.verify-submission-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 14px;
}
.verify-submission-summary dt {
  color: #64748b;
  margin: 0;
}
.verify-submission-summary dd {
  margin: 0;
  font-weight: 600;
  color: #0f172a;
}

.dash-notifications-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dash-notification-card {
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  padding: 16px 18px;
  background: #fff;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.dash-notification-card.is-unread {
  border-color: #f0b4d4;
  background: #fff9fc;
  box-shadow: 0 1px 0 rgba(212, 110, 173, 0.08);
}
.dash-notification-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.dash-notification-head strong {
  font-size: 15px;
  color: var(--portal-text);
}
.dash-notification-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.dash-notification-type {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fce7f3;
  color: #be185d;
}
.dash-notification-type.type-event {
  background: #dbeafe;
  color: #1d4ed8;
}
.dash-notification-type.type-update {
  background: #dcfce7;
  color: #15803d;
}
.dash-notification-type.type-general {
  background: #f1f5f9;
  color: #475569;
}
.dash-notification-date {
  font-size: 12px;
  color: var(--portal-muted);
}
.dash-notification-body {
  font-size: 14px;
  line-height: 1.6;
  color: #334155;
}
.dash-notification-body p:first-child {
  margin-top: 0;
}
.dash-notification-body p:last-child {
  margin-bottom: 0;
}
.dash-notification-actions {
  margin-top: 12px;
}
.dash-notifications-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--portal-muted);
}
.dash-notifications-empty i {
  font-size: 28px;
  margin-bottom: 10px;
  display: block;
  color: #cbd5e1;
}
.sidebar-nav .nav-badge {
  margin-left: auto;
  background: #e53935;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
}
