:root {
  --bg: #f4f6f2;
  --panel: #ffffff;
  --panel-soft: #f8faf7;
  --ink: #132033;
  --muted: #6d7785;
  --line: rgba(19, 32, 51, 0.08);
  --shadow: 0 18px 40px rgba(19, 32, 51, 0.08);
  --sidebar: #14253b;
  --sidebar-2: #0f1d2f;
  --sidebar-ink: #d7e1ee;
  --accent: #0f766e;
  --accent-2: #d97706;
  --danger-soft: #fff1f2;
  --success-soft: #ecfdf5;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 28%),
    radial-gradient(circle at right top, rgba(217, 119, 6, 0.08), transparent 22%),
    linear-gradient(180deg, #f7f9f5 0%, #eff3ee 100%);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
}

.app-shell {
  min-height: 100vh;
}

.app-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1030;
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 280px;
  display: flex;
  flex-direction: column;
  padding: 22px 18px;
  background:
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.18), transparent 28%),
    linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-2) 100%);
  color: var(--sidebar-ink);
  box-shadow: 28px 0 60px rgba(15, 23, 42, 0.22);
  z-index: 1040;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 10px 18px;
  color: #fff;
  text-decoration: none;
}

.sidebar-brand:hover {
  color: #fff;
  text-decoration: none;
}

.sidebar-brand strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.sidebar-brand small {
  display: block;
  color: rgba(215, 225, 238, 0.72);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0f766e, #d97706);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 14px 30px rgba(217, 119, 6, 0.25);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.sidebar-label {
  padding: 16px 10px 6px;
  color: rgba(215, 225, 238, 0.5);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  color: rgba(215, 225, 238, 0.9);
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.sidebar-link:hover {
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.sidebar-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.95), rgba(217, 119, 6, 0.9));
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.24);
}

.sidebar-link i {
  width: 18px;
  text-align: center;
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-user {
  font-weight: 700;
  color: #fff;
}

.sidebar-role {
  margin-top: 4px;
  color: rgba(215, 225, 238, 0.68);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.app-main {
  margin-left: 280px;
  min-height: 100vh;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px;
  background: rgba(244, 246, 242, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.sidebar-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
  margin-right: 12px;
}

.topbar-copy {
  display: flex;
  flex-direction: column;
}

.topbar-kicker {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.topbar-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
  font-weight: 700;
}

.topbar-action:hover {
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-1px);
}

.topbar-action.logout {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
}

.app-main-body {
  padding: 28px;
}

.login-page {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(135deg, #10243d, #1d4a73 55%, #f4b942 160%);
}

.login-card {
  max-width: 500px;
  width: 100%;
  border-radius: 24px;
}

.marketing-page {
  background:
    radial-gradient(circle at top left, rgba(244, 185, 66, 0.16), transparent 24%),
    radial-gradient(circle at right 20%, rgba(15, 118, 110, 0.16), transparent 24%),
    linear-gradient(180deg, #f8fbf7 0%, #eef5f2 100%);
}

.marketing-header {
  position: sticky;
  top: 0;
  z-index: 1050;
  padding: 18px 0;
  background: rgba(248, 251, 247, 0.84);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(19, 32, 51, 0.06);
}

.marketing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.marketing-brand,
.login-showcase-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}

.marketing-brand:hover,
.login-showcase-brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.marketing-brand strong,
.login-showcase-brand strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.marketing-brand small,
.login-showcase-brand small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.marketing-links {
  align-items: center;
  gap: 24px;
}

.marketing-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.marketing-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.marketing-action,
.marketing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.marketing-action:hover,
.marketing-cta:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.marketing-action.ghost,
.marketing-cta.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(19, 32, 51, 0.12);
  box-shadow: 0 12px 30px rgba(19, 32, 51, 0.08);
}

.marketing-action.solid,
.marketing-cta.primary {
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #0c4a6e);
  box-shadow: 0 18px 34px rgba(12, 74, 110, 0.22);
}

.marketing-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 56px;
}

.marketing-hero-application {
  padding-top: 64px;
}

.marketing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.92), transparent 30%),
    radial-gradient(circle at 78% 22%, rgba(244, 185, 66, 0.18), transparent 18%);
  pointer-events: none;
}

.marketing-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 16px 34px rgba(19, 32, 51, 0.08);
}

.marketing-hero h1,
.login-showcase-copy h1 {
  margin-top: 20px;
  margin-bottom: 20px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  color: #10243d;
}

.marketing-lead,
.login-showcase-copy p {
  max-width: 720px;
  color: #415061;
  font-size: 1.1rem;
  line-height: 1.75;
}

.marketing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.marketing-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.marketing-stat-strip div,
.hero-mini-card,
.marketing-step,
.marketing-module-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(19, 32, 51, 0.08);
  box-shadow: 0 22px 40px rgba(19, 32, 51, 0.08);
}

.marketing-stat-strip div {
  padding: 18px 20px;
  border-radius: 24px;
}

.marketing-stat-strip strong {
  display: block;
  font-size: 1rem;
  color: #10243d;
}

.marketing-stat-strip span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-showcase {
  position: relative;
  padding: 24px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(244, 185, 66, 0.16), transparent 26%),
    linear-gradient(160deg, #0f2037, #15385c 56%, #145a52 100%);
  color: #fff;
  box-shadow: 0 34px 64px rgba(15, 23, 42, 0.24);
}

.hero-panel {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-panel-kicker {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-panel h2 {
  margin-top: 12px;
  margin-bottom: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.hero-panel p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

.hero-grid,
.marketing-steps,
.marketing-module-grid {
  display: grid;
  gap: 18px;
}

.hero-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.hero-mini-card {
  min-height: 168px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
}

.hero-mini-card i,
.marketing-module-card i {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(244, 185, 66, 0.24));
  color: var(--accent);
  font-size: 1.2rem;
}

.hero-mini-card strong,
.marketing-module-card h3,
.marketing-step h3 {
  display: block;
  margin-top: 18px;
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #10243d;
}

.hero-mini-card span,
.marketing-step p,
.marketing-module-card p {
  color: var(--muted);
  line-height: 1.7;
}

.marketing-section {
  padding: 36px 0 68px;
}

.marketing-section.alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(238, 245, 242, 0.8));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading span,
.marketing-security-panel > div:first-child > span {
  display: inline-block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading h2,
.marketing-security-panel h2,
.login-card-top h2 {
  margin-top: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.05em;
  color: #10243d;
}

.marketing-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.marketing-step,
.marketing-module-card {
  padding: 26px;
  border-radius: 28px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, #10243d, #0f766e);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.marketing-module-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.marketing-security-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
  padding: 34px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(244, 185, 66, 0.16), transparent 24%),
    linear-gradient(135deg, #10243d, #15385c 58%, #145a52 100%);
  color: #fff;
  box-shadow: 0 34px 64px rgba(15, 23, 42, 0.2);
}

.marketing-security-panel h2,
.marketing-security-panel p,
.marketing-security-panel > div:first-child > span {
  color: #fff;
}

.marketing-security-panel p {
  margin-top: 14px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.public-application-card {
  padding: 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(19, 32, 51, 0.08);
  box-shadow: 0 28px 56px rgba(19, 32, 51, 0.12);
}

.public-application-head span {
  display: inline-block;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.public-application-head h2 {
  margin-top: 12px;
  margin-bottom: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  letter-spacing: -0.04em;
  color: #10243d;
}

.public-application-head p {
  color: var(--muted);
  margin-bottom: 22px;
}

.public-control {
  min-height: 52px;
  border-radius: 16px;
  border-color: rgba(19, 32, 51, 0.12);
  background: #fff;
}

textarea.public-control {
  min-height: 120px;
  padding-top: 14px;
}

.public-submit-btn {
  width: 100%;
  border: 0;
}

.security-checks {
  display: grid;
  gap: 14px;
}

.security-checks div,
.login-showcase-points div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.security-checks i,
.login-showcase-points i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
}

.marketing-footer {
  padding: 28px 0 36px;
}

.marketing-footer .container-xl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid rgba(19, 32, 51, 0.08);
}

.marketing-footer strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
}

.marketing-footer span {
  color: var(--muted);
}

.login-experience {
  background:
    radial-gradient(circle at top left, rgba(244, 185, 66, 0.16), transparent 26%),
    radial-gradient(circle at right center, rgba(15, 118, 110, 0.16), transparent 24%),
    linear-gradient(135deg, #0c1d31 0%, #12365a 48%, #155d54 100%);
}

.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: stretch;
}

.login-showcase,
.login-panel-wrap {
  padding: 42px 40px;
}

.login-showcase {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  color: #fff;
}

.login-showcase-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.login-showcase-points {
  display: grid;
  gap: 14px;
}

.login-panel-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.login-back-link {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.login-back-link:hover {
  color: var(--accent);
  text-decoration: none;
}

.login-control {
  min-height: 52px;
  border-radius: 14px;
  border-color: rgba(19, 32, 51, 0.12);
}

.login-visibility-btn {
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

.dashboard-hero {
  padding: 28px 30px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.12), transparent 26%),
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(255, 255, 255, 0.86));
  border: 1px solid rgba(15, 118, 110, 0.12);
  box-shadow: var(--shadow);
}

.dashboard-actions .btn {
  border-radius: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.stat-card,
.metric-card {
  border: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.stat-card .card-body,
.metric-card .card-body {
  padding: 22px;
}

.money-sm {
  font-size: 1.7rem;
  line-height: 1.15;
}

.metric-title {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.metric-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.metric-pair {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 800;
  flex-wrap: wrap;
}

.client-suggestions {
  position: absolute;
  top: 100%;
  left: 15px;
  right: 15px;
  z-index: 1050;
  display: none;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: var(--shadow);
}

.table-top-gap {
  height: 10px;
}

.card {
  border: 0;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.card-header {
  background: transparent;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  padding: 18px 20px;
}

.card-body {
  padding: 20px;
}

.table {
  background: transparent;
}

.table td,
.table th {
  vertical-align: middle;
}

.thead-light th {
  background: rgba(19, 32, 51, 0.04);
  border-color: rgba(19, 32, 51, 0.06);
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.alert {
  border: 0;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.btn {
  border-radius: 12px;
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(135deg, #0f766e, #115e59);
  border-color: #0f766e;
}

.btn-success {
  background: linear-gradient(135deg, #1d8348, #166534);
  border-color: #1d8348;
}

.btn-outline-secondary {
  color: var(--ink);
  border-color: rgba(19, 32, 51, 0.15);
}

.table-danger,
.table-danger > td {
  background-color: var(--danger-soft);
}

.table-success,
.table-success > td {
  background-color: var(--success-soft);
}

.badge-danger-soft {
  color: #b42318;
  background: #fef3f2;
  border: 1px solid #fecdca;
}

.badge-success-soft {
  color: #166534;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
}

.loan-origination-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 24%),
    radial-gradient(circle at right center, rgba(217, 119, 6, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 245, 0.92));
  border: 1px solid rgba(15, 118, 110, 0.1);
}

.loan-origination-hero h3 {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.loan-client-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.06), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(19, 32, 51, 0.07);
}

.loan-client-card.is-empty {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.08), rgba(255, 255, 255, 0.86));
}

.loan-client-photo-wrap {
  width: 100%;
  max-width: 128px;
}

.loan-client-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.loan-client-avatar {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, #0f766e, #d97706);
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.loan-client-grid,
.loan-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.loan-client-grid div,
.loan-summary-grid div {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
}

.loan-client-grid span,
.loan-summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.loan-system-notes {
  margin-top: 6px;
}

.loan-system-note {
  display: none;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--ink);
  font-weight: 600;
}

.loan-system-note.active {
  display: block;
}

.loan-summary-stack {
  display: grid;
  gap: 12px;
}

.loan-summary-tile {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 247, 0.98));
  border: 1px solid rgba(19, 32, 51, 0.06);
}

.loan-summary-tile span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.loan-summary-tile strong {
  display: block;
  margin-top: 6px;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.loan-progress-block {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.loan-progress-bar {
  height: 14px;
  border-radius: 999px;
  background: rgba(19, 32, 51, 0.08);
  overflow: hidden;
}

.loan-progress-bar .progress-bar {
  background: linear-gradient(135deg, #0f766e, #d97706);
}

.dossier-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.12), transparent 26%),
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(15, 118, 110, 0.1);
}

.dossier-hero h3 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-eyebrow {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dossier-status-panel {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(19, 32, 51, 0.06);
}

.dossier-status-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(19, 32, 51, 0.06);
}

.dossier-status-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.dossier-status-item:first-child {
  padding-top: 0;
}

.dossier-status-item span {
  color: var(--muted);
}

.dossier-section-card,
.dossier-side-card {
  background: rgba(255, 255, 255, 0.95);
}

.geo-panel,
.reference-block {
  margin-top: 10px;
  padding: 18px;
  border-radius: 18px;
  background: var(--panel-soft);
  border: 1px solid rgba(19, 32, 51, 0.06);
}

.reference-block + .reference-block {
  margin-top: 18px;
}

.geo-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.geo-link:hover {
  color: var(--accent);
  text-decoration: none;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.upload-card {
  padding: 18px;
  border-radius: 18px;
  background: var(--panel-soft);
  border: 1px solid rgba(19, 32, 51, 0.06);
}

.upload-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 800;
}

.upload-card-head a {
  color: var(--accent);
  font-size: 0.85rem;
}

.photo-capture-panel {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.photo-preview-shell {
  width: 100%;
  max-width: 220px;
}

.client-photo-preview,
.client-photo-detail {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  box-shadow: var(--shadow);
}

.client-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background:
    radial-gradient(circle at top, rgba(217, 119, 6, 0.12), transparent 28%),
    linear-gradient(180deg, #f8fafc, #edf3ef);
  color: var(--muted);
  border: 1px dashed rgba(19, 32, 51, 0.16);
}

.client-photo-placeholder i {
  font-size: 1.8rem;
  color: var(--accent);
}

.photo-capture-copy label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.map-canvas {
  width: 100%;
  min-height: 320px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(19, 32, 51, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.leaflet-container {
  font-family: "Manrope", sans-serif;
}

.check-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(19, 32, 51, 0.06);
}

.check-item + .check-item {
  margin-top: 12px;
}

.check-item i {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent);
}

.check-item strong,
.mini-note strong,
.detail-grid strong,
.detail-stat strong,
.file-row strong {
  display: block;
}

.check-item span,
.mini-note p,
.detail-grid span,
.detail-stat span,
.file-row .text-muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.check-item.ready {
  background: rgba(236, 253, 245, 0.75);
  border-color: rgba(29, 131, 72, 0.14);
}

.check-item.ready i {
  background: rgba(29, 131, 72, 0.12);
  color: #166534;
}

.mini-note {
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(217, 119, 6, 0.08));
}

.client-avatar {
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, #0f766e, #d97706);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  box-shadow: 0 18px 34px rgba(15, 118, 110, 0.22);
}

.detail-stat {
  padding: 12px 0;
  border-bottom: 1px solid rgba(19, 32, 51, 0.06);
}

.detail-stat:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

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

.detail-grid div {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--panel-soft);
}

.detail-grid .full {
  grid-column: 1 / -1;
}

.reference-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.reference-detail-card {
  padding: 18px;
  border-radius: 18px;
  background: var(--panel-soft);
}

.reference-detail-card p:last-child {
  margin-bottom: 0;
}

.file-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(19, 32, 51, 0.06);
}

.file-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

@media (max-width: 991.98px) {
  .app-sidebar {
    transform: translateX(-100%);
    transition: transform 0.28s ease;
  }

  .app-shell.sidebar-open .app-sidebar {
    transform: translateX(0);
  }

  .app-shell.sidebar-open .app-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .app-main {
    margin-left: 0;
  }

  .app-topbar {
    padding: 16px;
  }

  .app-main-body {
    padding: 16px;
  }

  .sidebar-toggle {
    display: inline-grid;
    place-items: center;
  }

  .detail-grid,
  .reference-detail-grid,
  .loan-client-grid,
  .loan-summary-grid {
    grid-template-columns: 1fr;
  }

  .photo-capture-panel {
    grid-template-columns: 1fr;
  }

  .photo-preview-shell {
    max-width: 260px;
  }

  .loan-client-card {
    grid-template-columns: 1fr;
  }

  .loan-client-photo-wrap {
    max-width: 140px;
  }

  .marketing-stat-strip,
  .marketing-steps,
  .marketing-module-grid,
  .marketing-security-panel,
  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-showcase,
  .login-panel-wrap {
    padding: 26px 20px;
  }

  .login-showcase {
    padding-bottom: 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .topbar-actions {
    display: none;
  }

  .dashboard-hero {
    padding: 22px 18px;
  }

  .display-4,
  .metric-value,
  .money-sm {
    font-size: 1.55rem;
  }

  .card-header,
  .card-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .dossier-hero h3 {
    font-size: 1.45rem;
  }

  .loan-origination-hero h3 {
    font-size: 1.45rem;
  }

  .upload-grid {
    grid-template-columns: 1fr;
  }

  .marketing-header {
    padding: 14px 0;
  }

  .marketing-nav,
  .marketing-footer .container-xl,
  .login-card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .marketing-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .marketing-action,
  .marketing-cta {
    width: 100%;
  }

  .marketing-hero {
    padding-top: 42px;
  }

  .marketing-hero h1,
  .login-showcase-copy h1 {
    font-size: 2.4rem;
  }

  .marketing-hero-actions {
    flex-direction: column;
  }

  .marketing-security-panel {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .hero-showcase {
    padding: 18px;
    border-radius: 24px;
  }
}
