/* ==========================================================================
   DigitMoney Dashboards — styles
   Font: SF Pro (via the Apple system stack)
   ========================================================================== */

:root {
  /* Brand / accents */
  --green:        #17d15f;   /* logo + bars + healthy */
  --green-2:      #0fb94e;   /* gradient foot */
  --green-text:   #16a34a;   /* positive delta text */
  --blue:         #4a86ea;   /* male / salaried / bucket 2 */
  --blue-2:       #2f6ad6;
  --navy:         #12294a;   /* female / self-employed */
  --red:          #ef4444;   /* reject / critical */
  --red-2:        #b0322f;
  --amber:        #e0952a;   /* watch / duplicate */
  --amber-2:      #b5771c;
  --ink-bar:      #171717;   /* dark funnel bars */

  /* Surfaces */
  --sidebar-bg:   #0b0b0c;
  --nav-active:   #232327;
  --page-bg:      #f4f4f5;
  --card:         #ffffff;
  --border:       #e8e8ea;
  --border-soft:  #efeff1;
  --track:        #ececee;

  /* Text */
  --text:         #1b1b1b;
  --text-2:       #3a3d44;
  --muted:        #6b7280;
  --faint:        #9ca3af;

  --radius:       16px;
  --radius-sm:    12px;
  --shadow:       0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.05);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

svg { width: 100%; height: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============================= TOP BAR ============================= */
.topbar {
  height: 60px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 22px;
  position: sticky;
  top: 0;
  z-index: 40;
}
.hamburger { display: none; width: 26px; height: 26px; color: #111; }
.hamburger svg { stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }

.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 23px; width: auto; display: block; }
.brand-digit { color: var(--green); }
.brand-money { color: #111; }

.search {
  flex: 1;
  max-width: 720px;
  margin: 0 auto 0 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fdfdfd;
}
.search-ico { width: 17px; height: 17px; color: var(--faint); stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; flex: none; }
.search input { flex: 1; border: none; outline: none; background: none; font-size: 13.5px; color: var(--text); }
.search input::placeholder { color: #a9adb4; }

.topbar-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn { position: relative; width: 21px; height: 21px; color: #33363c; }
.icon-btn svg { stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.notif-dot { position: absolute; top: -1px; right: 0; width: 7px; height: 7px; background: var(--green); border-radius: 50%; }

.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: #d7d8db; color: #4b4e55;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; letter-spacing: .3px; flex: none;
}
.avatar.sm { width: 34px; height: 34px; font-size: 12px; background: #26262b; color: #cfd0d3; }

/* ============================= LAYOUT ============================= */
.layout { display: flex; min-height: calc(100vh - 60px); }

/* ============================= SIDEBAR ============================= */
.sidebar {
  width: 236px; flex: none;
  background: var(--sidebar-bg);
  color: #fff;
  padding: 26px 14px 14px;
  display: flex; flex-direction: column;
  position: sticky; top: 60px; height: calc(100vh - 60px);
  z-index: 30;
}
.sidebar-label { font-size: 10.5px; letter-spacing: 1.4px; color: #6d6f76; font-weight: 600; padding: 0 12px; margin-bottom: 16px; }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  padding: 10px 12px; border-radius: 11px;
  color: #8b8d94; font-size: 14px; font-weight: 500; text-align: left;
  transition: background .15s, color .15s;
}
.nav-item svg { width: 18px; height: 18px; flex: none; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.nav-item:hover { color: #c9cace; }
.nav-item.active { background: var(--nav-active); color: #fff; font-weight: 600; }

.sidebar-footer {
  margin-top: auto;
  display: flex; align-items: center; gap: 11px;
  padding-top: 14px;
}
.profile-meta { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.profile-name { font-size: 13.5px; font-weight: 600; color: #f3f3f4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-role { font-size: 11px; color: #6d6f76; }
.dots { margin-left: auto; width: 18px; height: 18px; color: #6d6f76; flex: none; }
.dots svg { fill: currentColor; stroke: none; }

.scrim { display: none; }

/* ============================= MAIN ============================= */
.main { flex: 1; min-width: 0; padding: 20px 28px 40px; }
.view { max-width: 1560px; }

/* breadcrumb + head */
.breadcrumb { font-size: 12.5px; color: var(--faint); margin-bottom: 8px; }
.breadcrumb i { font-style: normal; margin: 0 7px; color: #cdced2; }
.breadcrumb em { font-style: normal; color: var(--muted); }

.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 27px; font-weight: 700; letter-spacing: -.6px; color: #232427; }
.subtitle { font-size: 13.5px; color: var(--faint); margin-top: 5px; }

.head-right { display: flex; align-items: center; gap: 12px; }
.range-toggle { display: inline-flex; background: #eaeaec; border-radius: 11px; padding: 4px; gap: 3px; }
.range-toggle button { padding: 6px 15px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.range-toggle button.active { background: #fff; color: #1c1d20; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border: 1px solid var(--border); border-radius: 11px; background: #fff;
  font-size: 13.5px; font-weight: 500; color: #2a2c31;
}
.btn-outline .dl { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ============================= FILTERS ============================= */
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.field {
  display: flex; align-items: center; gap: 9px;
  height: 44px; padding: 0 15px;
  border: 1px solid var(--border); border-radius: 11px; background: #fff;
  font-size: 13.5px; color: #2f3137;
}
.field.date { min-width: 148px; justify-content: space-between; }
.field.select { min-width: 148px; justify-content: space-between; color: #4b4e55; }
.field svg { width: 16px; height: 16px; color: var(--faint); stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ============================= KPI CARDS ============================= */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.kpi {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow);
}
.kpi-top { display: flex; align-items: flex-start; justify-content: space-between; }
.kpi-label { font-size: 13px; font-weight: 600; color: #4a4d53; letter-spacing: .1px; }
.kpi-ico { width: 25px; height: 25px; color: #c7c9ce; flex: none; }
.kpi-ico svg { stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.kpi-value { font-size: 35px; font-weight: 700; letter-spacing: -1px; color: #1b1c1f; margin: 9px 0 8px; }
.kpi-delta { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; }
.kpi-delta svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.kpi-delta span { color: var(--faint); font-weight: 500; }
.kpi-delta.up { color: var(--green-text); }
.kpi-delta.down { color: var(--red); }
.kpi-delta.bad { color: var(--red); }

/* faint watermark icon (analytics cards) */
.kpi-wm { position: absolute; right: -6px; top: 50%; transform: translateY(-50%); width: 98px; height: 98px; color: #f0f1f2; z-index: 0; }
.kpi-wm svg { stroke: currentColor; stroke-width: 1.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.kpi > *:not(.kpi-wm) { position: relative; z-index: 1; }

/* ============================= PANEL (funnel / demographics) ============================= */
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px 26px; box-shadow: var(--shadow); }
.panel-title { font-size: 17.5px; font-weight: 600; color: #2b2c30; }
.panel-sub { font-size: 13px; color: var(--faint); margin-top: 5px; margin-bottom: 20px; }

.funnel { display: flex; flex-direction: column; gap: 13px; }
.funnel-row { display: grid; grid-template-columns: 148px 1fr 80px 58px; align-items: center; gap: 14px; }
.funnel-label { font-size: 14px; color: #2f3137; }
.bar-track { height: 12px; background: var(--track); border-radius: 20px; overflow: hidden; }
.bar { height: 100%; border-radius: 20px; }
.bar.dark  { background: var(--ink-bar); }
.bar.green { background: linear-gradient(90deg, var(--green-2), var(--green)); }
.bar.red   { background: linear-gradient(90deg, var(--red-2), var(--red)); }
.bar.amber { background: linear-gradient(90deg, var(--amber-2), var(--amber)); }
.funnel-num { font-size: 14.5px; font-weight: 700; color: #1c1d20; text-align: right; }
.funnel-pct { font-size: 13px; color: var(--faint); text-align: right; }

/* ============================= AUDIENCE CARDS ============================= */
.aud-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 18px; }
.aud-grid.three { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px 20px; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-head h3 { font-size: 17px; font-weight: 600; color: #2c2d31; }
.card-ico { width: 22px; height: 22px; color: #33363c; flex: none; }
.card-ico svg { stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* donut */
.donut-wrap { position: relative; width: 188px; height: 188px; margin: 4px auto 16px; }
.donut { width: 100%; height: 100%; }
.donut-tip { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.08); padding: 8px 14px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.donut-tip-label { font-size: 11px; color: var(--faint); }
.donut-tip-val { font-size: 15px; font-weight: 700; color: #1c1d20; display: flex; align-items: center; gap: 6px; }
.legend { display: flex; justify-content: center; gap: 26px; }
.legend span { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: #46484e; }
.legend b { font-weight: 700; color: #1c1d20; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.blue { background: var(--blue); }
.dot.navy { background: #0b1220; }

/* vertical bar charts */
.vchart { display: flex; gap: 10px; height: 206px; }
.vchart-y { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: #b3b6bc; padding-bottom: 24px; }
.vchart-main { flex: 1; display: flex; flex-direction: column; }
.vchart-plot { flex: 1; display: flex; align-items: flex-end; gap: 8px; border-bottom: 1px solid #ededf0; background-image: repeating-linear-gradient(to top, transparent 0, transparent calc(12.5% - 1px), #f1f1f3 calc(12.5% - 1px), #f1f1f3 12.5%); }
.vcol { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.vcol .vpct { font-size: 11.5px; font-weight: 600; color: #2f3137; margin-bottom: 7px; }
.vbar { width: 22px; border-radius: 18px 18px 0 0; background: linear-gradient(180deg, var(--green) 0%, var(--green-2) 100%); }
.vchart-x { display: flex; gap: 8px; margin-top: 9px; }
.vchart-x span { flex: 1; text-align: center; font-size: 11px; color: #9a9ea4; }

/* horizontal bars (occupation / cities / medium / sources) */
.hbars { display: flex; flex-direction: column; gap: 14px; }
.hrow { display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: 12px; }
.hrow .hlabel { font-size: 13.5px; color: #33353b; white-space: nowrap; }
.hrow .htrack { height: 10px; background: var(--track); border-radius: 20px; overflow: hidden; }
.hrow .hfill { height: 100%; border-radius: 20px; background: var(--green); }
.hrow .hval { font-size: 14px; font-weight: 700; color: #1c1d20; min-width: 42px; text-align: right; }

/* occupation card uses colored pill labels + trailing % */
.occ .hrow { grid-template-columns: 1fr auto; }
.occ .opill { display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 20px; font-size: 14.5px; font-weight: 600; color: #fff; }
.occ .obar { position: relative; height: 30px; display: flex; align-items: center; }
.occ .ofill { height: 30px; border-radius: 20px; display: flex; align-items: center; padding: 0 14px; font-size: 13px; font-weight: 600; color: #fff; min-width: max-content; white-space: nowrap; }
.occ .oval { font-size: 14px; font-weight: 600; color: #33353b; margin-left: 10px; }

/* ============================= LENDER TABLE ============================= */
.lender-panel { padding: 24px 0 6px; }
.panel-bar { display: flex; align-items: center; justify-content: space-between; padding: 0 28px 20px; }
.seg-toggle { display: inline-flex; gap: 8px; }
.seg-toggle button { padding: 9px 20px; border-radius: 11px; font-size: 13.5px; font-weight: 500; color: #4b4e55; border: 1px solid transparent; }
.seg-toggle button.active { background: #131315; color: #fff; }
.seg-toggle button:not(.active) { border-color: var(--border); }

.table-wrap { overflow-x: auto; }
.lender-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.lender-table thead th {
  text-align: left; font-size: 11.5px; letter-spacing: .6px; font-weight: 600; color: #7c7f86;
  padding: 13px 16px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.lender-table thead th:first-child { padding-left: 28px; }
.lender-table thead th:last-child { padding-right: 28px; }
.sort { display: inline-block; width: 12px; height: 14px; vertical-align: middle; margin-left: 4px;
  background:
    linear-gradient(currentColor,currentColor) center/8px 1.5px no-repeat;
  position: relative; color: #c3c5ca; }
.sort::before, .sort::after { content: ""; position: absolute; left: 2px; border-left: 4px solid transparent; border-right: 4px solid transparent; }
.sort::before { top: 0; border-bottom: 5px solid currentColor; }
.sort::after { bottom: 0; border-top: 5px solid currentColor; }

.lender-table tbody td { padding: 16px 16px; font-size: 14.5px; color: #2b2c30; border-bottom: 1px solid var(--border-soft); white-space: nowrap; }
.lender-table tbody tr:last-child td { border-bottom: none; }
.lender-table tbody td:first-child { padding-left: 28px; font-weight: 500; }
.lender-table tbody td:last-child { padding-right: 28px; }

.pill { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 500; border: 1px solid transparent; }
.pill.b1 { background: #e9faf0; color: #17a34a; border-color: #bdeecd; }
.pill.b2 { background: #eaf1fe; color: #3b76de; border-color: #cfe0fb; }
.pill.gold { background: #fdf3e0; color: #d9962a; border-color: #f6e2bb; }

.status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 20px; font-size: 13px; font-weight: 500; }
.status i { width: 8px; height: 8px; border-radius: 50%; }
.status.healthy { background: #e9faf0; color: #17a34a; }
.status.healthy i { background: #17a34a; }
.status.watch { background: #fdf6e3; color: #d9962a; }
.status.watch i { background: #e0952a; }
.status.critical { background: #fdeaea; color: #e5484d; }
.status.critical i { background: #ef4444; }

/* ============================= RESPONSIVE ============================= */

/* Small desktop / large tablet — 4-up grids become 2-up */
@media (max-width: 1240px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .aud-grid, .aud-grid.three { grid-template-columns: repeat(2, 1fr); }
  .main { padding: 24px 26px 40px; }
}

/* Tablet */
@media (max-width: 1024px) {
  .page-head h1 { font-size: 29px; }
  .aud-grid.three { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet portrait — sidebar collapses to a slide-in drawer */
@media (max-width: 900px) {
  .hamburger { display: block; }
  .sidebar {
    position: fixed; left: 0; top: 60px; transform: translateX(-100%);
    transition: transform .25s ease; box-shadow: 0 10px 40px rgba(0,0,0,.3);
    z-index: 45;
  }
  .sidebar.open { transform: translateX(0); }
  .scrim.show { display: block; position: fixed; inset: 60px 0 0 0; background: rgba(0,0,0,.45); z-index: 44; }
  .main { padding: 22px; }
}

/* Small tablet — everything single column */
@media (max-width: 760px) {
  .brand { display: none; }
  .search { margin-left: 0; }
  .aud-grid, .aud-grid.three { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 600px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; align-items: stretch; }
  .page-head h1 { font-size: 26px; }
  .subtitle { font-size: 14px; }
  .head-right { width: 100%; flex-wrap: wrap; }
  .range-toggle { flex: 1; }
  .range-toggle button { flex: 1; padding: 9px 8px; font-size: 13.5px; }
  .filters { gap: 10px; }
  .field.date, .field.select { min-width: 0; flex: 1 1 46%; height: 48px; padding: 0 14px; font-size: 14px; }
  .btn-outline { flex: 1 1 100%; justify-content: center; height: 46px; }
  .kpi { padding: 20px; }
  .kpi-value { font-size: 31px; }
  .funnel-row { grid-template-columns: 92px 1fr auto; gap: 12px; }
  .funnel-pct { display: none; }
  .funnel-num { font-size: 15px; }
  .funnel-label { font-size: 14px; }
  .panel { padding: 22px 16px; }
  .panel-title { font-size: 19px; }
  .panel-bar { flex-direction: column; align-items: flex-start; gap: 14px; padding: 0 16px 18px; }
  .seg-toggle { width: 100%; }
  .seg-toggle button { flex: 1; padding: 11px 8px; }
  .lender-panel { padding-left: 0; padding-right: 0; }
  .lender-table { min-width: 680px; }
  .lender-table tbody td { padding: 16px 14px; font-size: 15px; }
  .lender-table tbody td:first-child, .lender-table thead th:first-child { padding-left: 18px; }
  .lender-table tbody td:last-child, .lender-table thead th:last-child { padding-right: 18px; }
  .card { padding: 20px 18px 22px; }
  .card-head h3 { font-size: 18px; }
  .topbar { padding: 0 14px; gap: 10px; }
  .avatar { width: 40px; height: 40px; font-size: 13px; }
  .search input { font-size: 14px; }
  .donut-wrap { width: 200px; height: 200px; }
  .vchart { height: 220px; }
}

/* Small mobile */
@media (max-width: 420px) {
  .search { display: none; }
  .field.date, .field.select { flex: 1 1 100%; }
  .legend { gap: 20px; }
  .vcol .vpct { font-size: 12px; }
}

/* ============================= LOGIN PAGE ============================= */
.login { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 100vh; }

.login-hero { background: var(--sidebar-bg); color: #fff; padding: 48px 56px; display: flex; flex-direction: column; }
.login-hero .brand { font-size: 27px; }
.login-hero .brand-money { color: #fff; }
.login-hero-body { margin: auto 0; max-width: 480px; }
.login-hero-body h2 { font-size: 40px; font-weight: 700; line-height: 1.15; letter-spacing: -1px; }
.login-hero-body p { color: #9a9ca3; font-size: 16px; margin-top: 16px; line-height: 1.6; }
.login-feats { margin-top: 36px; display: flex; flex-direction: column; gap: 16px; }
.login-feat { display: flex; align-items: center; gap: 14px; font-size: 15.5px; color: #d6d7db; }
.login-feat .fi { width: 34px; height: 34px; border-radius: 10px; background: rgba(23,209,95,.14); color: var(--green); display: flex; align-items: center; justify-content: center; flex: none; }
.login-feat .fi svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.login-hero-foot { color: #6d6f76; font-size: 13px; }

.login-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--page-bg); }
.login-card { width: 100%; max-width: 400px; }
.brand-sm { display: none; justify-content: center; margin-bottom: 26px; }
.brand-sm img { height: 26px; width: auto; }
.brand-sm .brand-digit { color: var(--green); }
.brand-sm .brand-money { color: #111; }
.login-card h1 { font-size: 30px; font-weight: 700; letter-spacing: -.5px; color: #1c1d20; }
.login-card .sub { color: var(--faint); font-size: 15px; margin-top: 8px; margin-bottom: 30px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; color: #3a3d44; margin-bottom: 8px; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap input { width: 100%; height: 52px; border: 1px solid var(--border); border-radius: 12px; padding: 0 16px; font-size: 15px; font-family: inherit; color: var(--text); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.input-wrap input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,209,95,.16); }
.input-wrap input::placeholder { color: #b0b4ba; }
.toggle-pw { position: absolute; right: 12px; width: 22px; height: 22px; color: var(--faint); background: none; }
.toggle-pw svg { stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.form-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 24px; }
.remember { display: flex; align-items: center; gap: 9px; font-size: 14px; color: #46484e; cursor: pointer; user-select: none; }
.remember input { width: 17px; height: 17px; accent-color: var(--green); }
.link { color: var(--green-text); font-size: 14px; font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

.btn-primary { width: 100%; height: 52px; border-radius: 12px; background: var(--green); color: #fff; font-size: 16px; font-weight: 600; transition: filter .15s; }
.btn-primary:hover { filter: brightness(.95); }
.btn-primary:active { filter: brightness(.9); }
.login-foot { text-align: center; font-size: 14px; color: var(--faint); margin-top: 24px; }
.login-foot a { color: var(--green-text); font-weight: 600; text-decoration: none; }

@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login-hero { display: none; }
  .brand-sm { display: flex; }
  .login-panel { min-height: 100vh; }
}
@media (max-width: 420px) {
  .login-panel { padding: 32px 18px; }
}


/* ============================= ANALYTICS CHART ROWS ============================= */
.an-row1 { display: grid; grid-template-columns: 0.85fr 1.12fr 1.12fr; gap: 18px; margin-bottom: 18px; }
.an-row2 { display: grid; grid-template-columns: 1.7fr 1fr; gap: 18px; }
.an-row2 .card { display: flex; flex-direction: column; }
.an-row2 .lr, .an-row2 .occ { flex: 1; justify-content: space-between; }

/* Loan Requirement — dark horizontal bars with rupee ranges */
.lr { display: flex; flex-direction: column; gap: 15px; }
.lr-row { display: grid; grid-template-columns: 116px 1fr 54px; align-items: center; gap: 14px; }
.lr-label { font-size: 14px; color: #33353b; white-space: nowrap; }
.lr-track { height: 12px; background: var(--track); border-radius: 20px; overflow: hidden; }
.lr-fill { height: 100%; border-radius: 20px; background: var(--ink-bar); }
.lr-pct { font-size: 14px; color: #33353b; text-align: right; }

@media (max-width: 1100px) {
  .an-row1 { grid-template-columns: 1fr; }
  .an-row2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .lr-row { grid-template-columns: 92px 1fr 46px; gap: 10px; }
  .lr-label { font-size: 13px; }
}
