:root {
  --navy: #082b42;
  --navy-2: #0d3a55;
  --green: #0f9d67;
  --green-dark: #08734b;
  --gold: #e8b13e;
  --ink: #132238;
  --muted: #708093;
  --line: #e5ebf1;
  --surface: #f5f8fb;
  --white: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
}
.app {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 252px;
  background: linear-gradient(180deg, #072b43 0%, #061e31 100%);
  color: #dbe8ef;
  padding: 26px 18px;
  z-index: 1040;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  padding: 0 8px 26px;
  min-height: 76px;
}
.brand-logo {
  display: block;
  width: 172px;
  height: auto;
  object-fit: contain;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border: 2px solid var(--gold);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-weight: 800;
}
.brand strong {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}
.brand small {
  display: block;
  color: #91acbc;
  font-size: 0.68rem;
}
.nav-label {
  color: #7995a7;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 8px 12px;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #c7d7e1;
  text-decoration: none;
  padding: 11px 13px;
  border-radius: 10px;
  margin: 2px 0;
  font-size: 0.9rem;
}
.side-link:hover,
.side-link.active {
  color: #fff;
  background: linear-gradient(90deg, var(--green), #087e56);
}
.side-link i {
  font-size: 1.05rem;
  width: 20px;
}
.side-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 10px 0;
  color: #86a3b5;
  font-size: 0.75rem;
}
.main {
  margin-left: 252px;
  min-height: 100vh;
}
.topbar {
  height: 72px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 30px;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 1020;
}
.search {
  max-width: 440px;
  flex: 1;
  position: relative;
}
.search i {
  position: absolute;
  left: 14px;
  top: 11px;
  color: #8997a6;
}
.search input {
  padding-left: 40px;
  border: 1px solid var(--line);
  background: #f7f9fb;
  border-radius: 10px;
}
.user-chip {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dff4ea;
  color: #08734b;
  font-weight: 800;
}
.content {
  padding: 30px;
  max-width: 1500px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.page-heading h1 {
  font-size: 1.65rem;
  margin: 0 0 5px;
  font-weight: 750;
}
.page-heading p {
  margin: 0;
  color: var(--muted);
}
.btn-brand {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.btn-brand:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}
.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #182535;
  font-weight: 650;
}
.panel,
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(8, 43, 66, 0.05);
}
.metric {
  padding: 20px;
  height: 100%;
}
.metric-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e8f7f1;
  color: var(--green);
  font-size: 1.2rem;
}
.metric small {
  color: var(--muted);
}
.metric h3 {
  font-size: 1.45rem;
  margin: 8px 0 0;
}
.panel {
  padding: 22px;
}
.panel-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 16px;
}
.progress {
  height: 8px;
}
.progress-bar {
  background: var(--green);
}
.status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.status.success {
  color: #08734b;
  background: #dff5ea;
}
.status.warning {
  color: #956511;
  background: #fff0c8;
}
.status.info {
  color: #255b91;
  background: #e0edfb;
}
.status.muted {
  color: #52606d;
  background: #e9edf1;
}
.table {
  margin: 0;
}
.table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #7b8897;
  background: #f8fafc;
  border-bottom-color: var(--line);
}
.table td {
  vertical-align: middle;
  font-size: 0.86rem;
  border-bottom-color: #edf1f4;
}
.timeline {
  display: flex;
  align-items: flex-start;
}
.timeline-step {
  flex: 1;
  text-align: center;
  position: relative;
}
.timeline-step:before {
  content: "";
  height: 3px;
  background: #dfe5ea;
  position: absolute;
  top: 13px;
  left: -50%;
  right: 50%;
}
.timeline-step:first-child:before {
  display: none;
}
.timeline-dot {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #dfe5ea;
  margin: 0 auto 8px;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.7rem;
}
.timeline-step.done:before,
.timeline-step.done .timeline-dot {
  background: var(--green);
}
.timeline-step small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
}
.timeline-step strong {
  font-size: 0.72rem;
}
.profile-hero {
  display: flex;
  align-items: center;
  gap: 18px;
}
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--navy), var(--green));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 800;
}
.kyc-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  font-size: 0.8rem;
}
.kyc-list i {
  color: var(--green);
}
.nav-tabs .nav-link {
  color: var(--muted);
  border: 0;
  border-bottom: 2px solid transparent;
}
.nav-tabs .nav-link.active {
  color: var(--green);
  border-bottom-color: var(--green);
  font-weight: 700;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.detail-item {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.detail-item small {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}
.form-label {
  font-size: 0.82rem;
  font-weight: 650;
}
.form-control,
.form-select {
  border-color: #dce4ea;
  border-radius: 9px;
  padding: 0.7rem 0.85rem;
}
.form-control:focus,
.form-select:focus {
  border-color: #70c4a5;
  box-shadow: 0 0 0 0.2rem rgba(15, 157, 103, 0.12);
}
.calculator-result {
  background: linear-gradient(145deg, var(--navy), var(--navy-2));
  color: #fff;
  border-radius: 16px;
  padding: 28px;
}
.calculator-result small {
  color: #aac0ce;
}
.calc-number {
  font-size: 2rem;
  font-weight: 800;
}
.range-value {
  color: var(--green);
  font-weight: 700;
}
.loan-card {
  padding: 22px;
}
.loan-card .loan-type {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.loan-card h3 {
  font-size: 1.05rem;
  margin: 0;
}
.stepper {
  display: flex;
  margin-bottom: 28px;
}
.step {
  flex: 1;
  position: relative;
  text-align: center;
}
.step:after {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #dce4ea;
}
.step:last-child:after {
  display: none;
}
.step span {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: auto;
  background: #e7edf2;
  color: #718091;
  font-weight: 700;
}
.step.active span,
.step.complete span {
  background: var(--green);
  color: #fff;
}
.step.complete:after {
  background: var(--green);
}
.step small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}
.upload-box {
  border: 2px dashed #cad5de;
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  background: #fafcfd;
}
.empty-state {
  text-align: center;
  padding: 48px 20px;
}
.empty-state i {
  font-size: 3rem;
  color: #a9b8c4;
}
.toast-container {
  z-index: 2000;
}
.mobile-toggle {
  display: none;
}
.quick-action {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
}
.quick-action:hover {
  border-color: #8dcfb6;
  color: var(--green);
  transform: translateY(-1px);
}
.quick-action i {
  font-size: 1.2rem;
  color: var(--green);
}
@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
    transition: 0.25s;
  }
  .sidebar.open {
    transform: none;
  }
  .main {
    margin-left: 0;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .topbar {
    padding: 0 18px;
  }
  .content {
    padding: 22px 16px;
  }
  .search {
    display: none;
  }
  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 24, 38, 0.55);
    z-index: 1030;
  }
  .sidebar-backdrop.show {
    display: block;
  }
}
@media (max-width: 575.98px) {
  .page-heading {
    display: block;
  }
  .page-heading .btn {
    margin-top: 14px;
    width: 100%;
  }
  .detail-grid,
  .kyc-list {
    grid-template-columns: 1fr;
  }
  .timeline-step strong {
    font-size: 0.62rem;
  }
  .content {
    padding-top: 20px;
  }
  .panel {
    padding: 17px;
  }
  .user-name {
    display: none;
  }
}
