:root {
  --navy: #102c4a;
  --navy-deep: #0a1830;
  --teal: #1a9c96;
  --teal-soft: #d9f2ee;
  --gold: #d7a73d;
  --sand: #f5eee5;
  --page: #f7f2ec;
  --ink: #1f3550;
  --muted: #6b7f95;
  --line: #ddd4c8;
  --card: #ffffff;
  --shadow: 0 24px 60px rgba(17, 37, 60, 0.08);
  --header-height: 84px;
}

html, body {
  font-family: "Manrope", sans-serif;
  background: var(--page);
  color: var(--ink);
}

body {
  background-image:
    radial-gradient(circle at top left, rgba(215, 167, 61, 0.08), transparent 22%),
    radial-gradient(circle at top right, rgba(26, 156, 150, 0.08), transparent 28%);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  box-shadow: 0 10px 30px rgba(10, 24, 48, 0.18);
}

.site-header .nav-link,
.site-header .navbar-brand {
  color: #f7fbff;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus {
  color: #bfeceb;
}

.main-shell {
  padding-top: var(--header-height);
  min-height: calc(100vh - 180px);
}

.site-footer {
  background: #fff;
}

.hero-card,
.portal-card,
.metric-card,
.card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.hero-panel {
  background: radial-gradient(circle at top right, rgba(27, 167, 155, 0.3), transparent 36%), linear-gradient(135deg, var(--navy) 0%, #14335c 100%);
  color: #fff;
  border-radius: 1.5rem;
  padding: 3rem;
}

.hero-panel-rich {
  position: relative;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff7e6;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-kicker {
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.hero-image-shell,
.portal-hero-image-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 32px 70px rgba(6, 15, 30, 0.28);
}

.hero-image,
.portal-hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image {
  min-height: 420px;
}

.btn-teal {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.btn-teal:hover,
.btn-teal:focus {
  background: #14847a;
  border-color: #14847a;
  color: #fff;
}

.text-teal {
  color: var(--teal);
}

.metric-card {
  background: var(--card);
  padding: 1.25rem;
  height: 100%;
}

.feature-card,
.dashboard-stat,
.story-panel .metric-card {
  border-radius: 1.35rem;
}

.feature-number {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, var(--navy) 0%, #214b70 100%);
  color: #fff;
  font-weight: 800;
}

.metric-card .metric-value {
  font-size: 1.9rem;
  font-weight: 800;
}

.trust-strip {
  display: grid;
  gap: 0.9rem;
}

.trust-strip div {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
}

.trust-strip strong {
  font-size: 0.98rem;
}

.trust-strip span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.75rem;
}

.stepper-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.8rem;
  border-radius: 999px;
  background: #eaf0f7;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.stepper-item.active {
  background: var(--teal-soft);
  color: var(--navy);
}

.stepper-index {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(15, 39, 71, 0.12);
}

.status-badge {
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 800;
}

.status-draft { background: #eef3f8; color: #5b728a; }
.status-submitted { background: #e7f0ff; color: #0b5ed7; }
.status-in-review { background: #fff4dc; color: #9a6800; }
.status-documents-requested { background: #ffe7e7; color: #9f2d2d; }
.status-approved { background: #dff5f3; color: #11776f; }
.status-declined { background: #fbe1e1; color: #a22b2b; }
.status-cancelled { background: #eef1f4; color: #6f7f8f; }
.status-paid-out { background: #dff0ff; color: #0b5ed7; }

.section-heading {
  font-size: 2rem;
  font-weight: 800;
}

.auth-shell,
.workflow-shell,
.portal-shell {
  max-width: 1100px;
  margin: 0 auto;
}

.auth-card {
  max-width: 580px;
  margin: 0 auto;
}

.auth-shell-wide {
  max-width: 1200px;
}

.auth-form-card {
  max-width: none;
  height: 100%;
}

.marketing-hero-card,
.auth-visual-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}

.marketing-hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #f9f3ec 100%);
}

.marketing-hero-image-shell {
  height: 100%;
  min-height: 420px;
}

.marketing-hero-image,
.auth-visual-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-highlight-list {
  display: grid;
  gap: 0.85rem;
}

.hero-highlight-list div {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #eadfce;
  color: var(--ink);
  font-weight: 600;
}

.auth-visual-card {
  min-height: 100%;
  background: linear-gradient(180deg, var(--navy) 0%, #183a63 100%);
}

.auth-visual-card-light {
  background: linear-gradient(180deg, #174a59 0%, var(--navy) 100%);
}

.auth-visual-image,
.auth-visual-surface {
  min-height: 340px;
}

.auth-visual-surface {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.auth-visual-surface-login {
  background-image: url("/images/branding/login-member.png");
}

.auth-visual-surface-register {
  background-image: url("/images/branding/register-member.png");
}

.auth-visual-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem;
  color: #fff;
  background: linear-gradient(180deg, rgba(10, 24, 48, 0) 0%, rgba(10, 24, 48, 0.86) 72%, rgba(10, 24, 48, 0.96) 100%);
}

.story-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.98));
}

.story-note {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.story-stat {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, #fff9ef 0%, #ffffff 100%);
  border: 1px solid #f1dfba;
}

.story-stat span {
  color: var(--muted);
  font-size: 0.94rem;
}

.portal-hero {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(215, 167, 61, 0.2), transparent 22%),
    linear-gradient(135deg, #ffffff 0%, #fbf5ef 100%);
  box-shadow: var(--shadow);
}

.portal-hero-image {
  min-height: 320px;
}

.portal-alert {
  border: 1px solid #f1d58a;
  border-radius: 1rem;
  background: #fff6d9;
}

.portal-table tbody tr td {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.table thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.accordion-item {
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.accordion-item + .accordion-item {
  margin-top: 1rem;
}

form.is-submitting {
  pointer-events: none;
  opacity: 0.8;
}

form.is-submitting .btn,
form.is-submitting button,
form.is-submitting input[type="submit"] {
  cursor: wait;
}

#toast-container > .toast {
  box-shadow: 0 18px 45px rgba(15, 39, 71, 0.14);
  border-radius: 1rem;
}

@media (max-width: 991.98px) {
  :root {
    --header-height: 76px;
  }

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

  .hero-panel {
    padding: 2rem;
  }

  .hero-image {
    min-height: 280px;
  }

  .portal-hero-image {
    min-height: 240px;
  }

  .marketing-hero-image-shell {
    min-height: 300px;
  }

  .auth-visual-image,
  .auth-visual-surface {
    min-height: 280px;
  }
}
