/* KarjaBazar Nepal design system — clean fintech look inspired by lendo.dk
   Palette: trust-green primary on a near-white base with deep-navy text. */
:root {
  --green: #16a34a;
  --green-dark: #0f7a37;
  --green-soft: #e9f7ef;
  --navy: #0b2239;
  --navy-2: #16324f;
  --ink: #1f2a37;
  --muted: #5b6b7b;
  --line: #e4ebf1;
  --bg: #ffffff;
  --bg-alt: #f5f9fc;
  --amber: #f59e0b;
  --danger: #dc2626;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11,34,57,.06), 0 1px 3px rgba(11,34,57,.08);
  --shadow: 0 8px 24px rgba(11,34,57,.10);
  --shadow-lg: 0 18px 48px rgba(11,34,57,.16);
  --maxw: 1140px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
section { padding: 64px 0; }
h1, h2, h3 { color: var(--navy); line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: 1rem; padding: .75rem 1.4rem; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer; transition: .15s; text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-dark); }
.btn-light { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-block { width: 100%; }
.btn-lg { padding: .95rem 1.8rem; font-size: 1.05rem; }
.btn-bi { flex-direction: column; gap: 1px; line-height: 1.15; }
.btn-np { font-family: 'Noto Sans Devanagari', 'Mukta', sans-serif; font-size: .72em; font-weight: 500; opacity: .85; line-height: 1.2; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* Top navigation */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 1.5rem; height: 124px; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.3rem;
  color: var(--navy); margin-left: -12px; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px;
  background: var(--green); color: #fff; font-weight: 800; }
.brand small { font-weight: 500; font-size: .7rem; color: var(--muted); display: block; margin-top: -3px; }
.brand-img { height: 100px; width: auto; display: block; border-radius: 6px; }
@media (max-width: 560px) { .brand-img { height: 72px; } }
.brand-np { font-family: 'Noto Sans Devanagari', 'Mukta', Inter, system-ui, sans-serif; font-size: 1.85rem; font-weight: 700; line-height: 1; letter-spacing: .02em; white-space: nowrap;
  display: inline-flex; align-items: center; color: #bf9b30; }
@media (max-width: 720px) { .brand-np { font-size: 1.4rem; } }
@media (max-width: 420px) { .brand-np { display: none; } }
.nav-links { display: flex; gap: .7rem; margin-left: auto; align-items: center; flex-wrap: nowrap; }
/* Top-nav items as polished pill buttons: tinted fill + center-grow underline + springy lift */
.nav-links a:not(.btn) { display: inline-flex; align-items: center; line-height: 1; white-space: nowrap;
  position: relative; color: var(--ink); font-weight: 700; font-size: .95rem; letter-spacing: .015em;
  padding: .62rem .82rem; border-radius: 11px; background: transparent;
  transition: color .22s ease, background .26s ease, transform .26s var(--spring), box-shadow .26s ease; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 6px; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, var(--green), #0ea5e9);
  transition: left .26s var(--spring), right .26s var(--spring); }
.nav-links a:not(.btn):hover { color: var(--green-dark); text-decoration: none; transform: translateY(-2px);
  background: var(--green-soft); box-shadow: 0 6px 16px rgba(22,163,74,.16); }
.nav-links a:not(.btn):hover::after { left: 20%; right: 20%; }
.nav-links a:not(.btn):active { transform: translateY(0) scale(.97); }
.nav-links .btn-bi { margin-right: -10px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--navy); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--bg-alt) 0%, #fff 100%); padding-top: 56px; }
.hero h1 .hl { color: var(--green); }
.trust-badge { display: inline-flex; align-items: center; gap: .5rem; background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem; font-size: .85rem;
  box-shadow: var(--shadow-sm); margin-bottom: 1.2rem; font-weight: 600; }
.stars { color: var(--amber); letter-spacing: 1px; }

/* Closing trust band — KARJA BAZAR wordmark + assurances */
.trust-close { position: relative; overflow: hidden; isolation: isolate; text-align: center;
  background: linear-gradient(180deg, var(--bg-alt), var(--green-soft)); border-top: 1px solid var(--line); }
/* Living aurora blobs drifting behind the band */
.trust-close::before, .trust-close::after { content: ""; position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .55; pointer-events: none; z-index: -1; }
.trust-close::before { width: 480px; height: 480px; left: -130px; top: -170px;
  background: radial-gradient(circle, rgba(22,163,74,.5), transparent 70%); animation: tcAuroraA 18s ease-in-out infinite; }
.trust-close::after { width: 540px; height: 540px; right: -150px; bottom: -210px;
  background: radial-gradient(circle, rgba(14,165,233,.45), transparent 70%); animation: tcAuroraB 22s ease-in-out infinite; }
@keyframes tcAuroraA { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(70px,46px) scale(1.18); } }
@keyframes tcAuroraB { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-56px,-34px) scale(1.12); } }
.trust-close > .container { position: relative; z-index: 1; }
.tc-wordmark { font-size: clamp(2.6rem, 9vw, 5.4rem); font-weight: 900; letter-spacing: .015em; line-height: .95; margin: 0; }
.tc-k { background: linear-gradient(120deg, #1d4ed8, #3b82f6, #0b2239); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #15356b; animation: tcPan 7s linear infinite; }
.tc-b { background: linear-gradient(120deg, #16a34a, #34d399, #14532d); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--green-dark); animation: tcPan 7s linear infinite reverse; }
@keyframes tcPan { to { background-position: 200% center; } }
.tc-rule { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 1.1rem auto .3rem; max-width: 540px; color: var(--navy); }
.tc-rule::before, .tc-rule::after { content: ""; height: 2px; flex: 1; background: linear-gradient(90deg, transparent, var(--green)); border-radius: 2px; }
.tc-rule::after { background: linear-gradient(90deg, var(--green), transparent); }
.tc-shield { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 1.2rem; box-shadow: var(--shadow-sm); flex: 0 0 auto; }
.tc-tagline { font-size: clamp(1.3rem, 4.5vw, 2rem); font-weight: 800; color: var(--green-dark); margin: .2rem 0 .3rem; }
.tc-tagline .leaf { color: var(--green); font-weight: 400; margin: 0 .5rem; }
.tc-sub { display: flex; align-items: center; justify-content: center; gap: .9rem;
  font-size: 1.05rem; font-weight: 600; color: var(--navy); letter-spacing: .05em; margin: .1rem 0 .2rem; }
.tc-sub::before, .tc-sub::after { content: ""; width: 48px; height: 2px; border-radius: 2px;
  background: var(--navy); opacity: .45; flex: 0 0 auto; }
/* Live "proof" stats strip — real /api/stats counts, animated on scroll */
.tc-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin: 2.3rem auto 0; max-width: 780px; }
.tc-stat { flex: 1 1 190px; background: rgba(255,255,255,.55); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,.6); border-radius: 18px; padding: 1.1rem 1.2rem; box-shadow: 0 10px 30px rgba(11,34,57,.07); }
.tc-stat .num { font-size: clamp(1.9rem, 4.5vw, 2.5rem); font-weight: 900; line-height: 1; }
.tc-stat .lbl { margin-top: .4rem; font-size: .85rem; font-weight: 600; color: var(--muted); }
.tc-live { display: inline-flex; align-items: center; gap: .55rem; margin: 1.1rem 0 0; font-size: .82rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.tc-dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22,163,74,.5); animation: tcLivePulse 2s ease-out infinite; }
@keyframes tcLivePulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.5); } 70% { box-shadow: 0 0 0 8px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
.tc-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2.2rem auto 0; max-width: 1040px; text-align: left; }
.tpillar { position: relative; display: flex; align-items: flex-start; gap: .85rem;
  background: rgba(255,255,255,.6); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,.65); border-radius: 18px; padding: 1.15rem 1.2rem;
  box-shadow: 0 10px 30px rgba(11,34,57,.08); overflow: hidden; transform-style: preserve-3d;
  transition: transform .25s var(--spring), box-shadow .3s ease, border-color .3s ease; }
.tpillar > * { position: relative; z-index: 1; }
/* Cursor-tracking spotlight glow */
.tpillar::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  transition: opacity .3s ease; z-index: 0;
  background: radial-gradient(240px circle at var(--mx,50%) var(--my,50%), rgba(22,163,74,.20), transparent 60%); }
.tpillar:hover::before { opacity: 1; }
/* Animated gradient hairline border */
.tpillar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; opacity: 0;
  background: linear-gradient(130deg, rgba(22,163,74,0), rgba(22,163,74,.85), rgba(14,165,233,.85), rgba(22,163,74,0)); background-size: 300% 300%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity .3s ease; animation: tcBorder 6s linear infinite; z-index: 0; }
.tpillar:hover::after { opacity: 1; }
@keyframes tcBorder { to { background-position: 300% 0; } }
.tpillar:hover { box-shadow: 0 24px 54px rgba(11,34,57,.18); }
.tpillar .tp-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: 0 0 auto;
  transition: transform .3s var(--spring); }
.tpillar:hover .tp-ic { transform: translateY(-2px) scale(1.08) rotate(-3deg); }
.tpillar .tp-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tp-secure { background: rgba(37,99,235,.12); color: #2563eb; }
.tp-trusted { background: rgba(22,163,74,.14); color: #16a34a; }
.tp-quick { background: rgba(14,165,233,.14); color: #0284c7; }
.tp-partner { background: rgba(21,128,61,.14); color: #15803d; }
.tpillar h4 { margin: 0; font-size: .98rem; font-weight: 800; letter-spacing: 0; color: var(--navy); }
.tpillar p { margin: .28rem 0 0; font-size: .85rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 900px) { .tc-pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tc-pillars { grid-template-columns: 1fr; } }

/* Live breaking-news bar — broadcast-style rotating presenter */
.newsband { position: relative; overflow: hidden; isolation: isolate; color: #eaf2f8;
  background: linear-gradient(100deg, #0a1f33, #16324f 55%, #0a1f33);
  border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.newsband::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(94,234,212,.10), transparent); background-size: 200% 100%; animation: news2Sheen 7s linear infinite; }
@keyframes news2Sheen { to { background-position: 200% 0; } }
.news2-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 1rem; padding: .6rem 20px; }
.news2-badge { display: inline-flex; align-items: center; gap: .55rem; flex: 0 0 auto; }
.news2-live { display: inline-flex; align-items: center; gap: .4rem; font-weight: 900; font-size: .72rem; letter-spacing: .12em; color: #fff;
  background: linear-gradient(135deg, #e0271f, #ff5a4d); padding: .32rem .6rem; border-radius: 7px; box-shadow: 0 4px 14px rgba(224,39,31,.45); }
.news2-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: news2Blink 1.2s steps(1) infinite; }
@keyframes news2Blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .2; } }
.news2-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.news2-eq i { width: 3px; height: 30%; background: #5eead4; border-radius: 2px; animation: news2Eq 1s ease-in-out infinite; }
.news2-eq i:nth-child(2) { animation-delay: .2s; } .news2-eq i:nth-child(3) { animation-delay: .45s; } .news2-eq i:nth-child(4) { animation-delay: .65s; }
@keyframes news2Eq { 0%, 100% { height: 22%; } 50% { height: 100%; } }
.news2-stage { position: relative; flex: 1 1 auto; height: 2.4rem; overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent); mask: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent); }
.news2-item { position: absolute; inset: 0; display: flex; align-items: center; gap: .6rem; text-decoration: none; white-space: nowrap;
  transition: transform .6s cubic-bezier(.5,1.35,.5,1), opacity .5s ease, filter .5s ease; }
.news2-item.enter { transform: translateY(115%); opacity: 0; filter: blur(7px); }
.news2-item.current { transform: translateY(0); opacity: 1; filter: none; }
.news2-item.leave { transform: translateY(-115%); opacity: 0; filter: blur(7px); }
.news2-tag { font-size: .6rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .18rem .45rem; border-radius: 6px;
  background: rgba(94,234,212,.18); color: #7df0db; flex: 0 0 auto; }
.news2-item.alert .news2-tag { background: rgba(255,90,77,.22); color: #ffb4ac; }
.news2-title { font-weight: 700; font-size: .98rem; color: #f4f9fc; overflow: hidden; text-overflow: ellipsis; }
.news2-item:hover .news2-title { text-decoration: underline; }
.news2-meta { font-size: .78rem; color: #9fb6c9; flex: 0 0 auto; }
.news2-controls { display: inline-flex; align-items: center; gap: .3rem; flex: 0 0 auto; }
.news2-nav { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06);
  color: #eaf2f8; cursor: pointer; font-size: 1rem; line-height: 1; display: grid; place-items: center; transition: .15s; }
.news2-nav:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); }
.news2-count { font-size: .74rem; color: #9fb6c9; min-width: 3.4ch; text-align: center; }
.news2-inner .news-more { flex: 0 0 auto; white-space: nowrap; font-weight: 700; font-size: .82rem; color: #7df0db; }
.news2-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; z-index: 1;
  background: linear-gradient(90deg, #16a34a, #5eead4); box-shadow: 0 0 8px rgba(94,234,212,.6); }
@media (max-width: 760px) { .news2-controls, .news2-inner .news-more { display: none; } }
@media (max-width: 560px) { .news2-eq { display: none; } }

/* Loan-type cards */
.loan-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.2rem; }
.loan-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow-sm); transition: .18s; display: flex; flex-direction: column; }
.loan-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #d7e6d8; }
.loan-card .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--green-soft);
  color: var(--green-dark); display: grid; place-items: center; margin-bottom: .9rem; }
.loan-card h3 { margin-bottom: .25rem; }
.loan-card .from { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.loan-card .from b { color: var(--navy); font-size: 1.05rem; }
.loan-card .btn { margin-top: auto; }

/* Generic cards / grid */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm); }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 0; text-align: center; }
.step .num { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: #fff;
  font-weight: 800; font-size: 1.25rem; display: grid; place-items: center; margin: 0 auto 1rem; }
.step .ic { color: var(--green); margin-bottom: .5rem; }

/* Partner logo strip */
.logos { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-grid { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.logo-chip { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .6rem 1rem;
  font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: .55rem; font-size: .92rem; }
.logo-chip .dot { width: 22px; height: 22px; border-radius: 6px; color: #fff; display: grid;
  place-items: center; font-size: .7rem; font-weight: 800; }
.logo-chip .cls { font-size: .65rem; color: var(--muted); border:1px solid var(--line); border-radius: 4px; padding: 0 4px; }

/* Benefits */
.benefit { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; }
.benefit .check { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: var(--green-soft);
  color: var(--green-dark); display: grid; place-items: center; margin-top: 2px; font-weight: 800; }

/* Band */
.band { background: var(--navy); color: #fff; }
.band h2 { color: #fff; }
.band p { color: #cdd9e4; }
.band .stat { font-size: 2.4rem; font-weight: 800; color: #fff; }
.band .stat-lbl { color: #aebdcb; font-size: .9rem; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; align-items: stretch; }
.calc .out { background: var(--green-soft); border-radius: var(--radius); padding: 1.6rem; display: flex;
  flex-direction: column; justify-content: center; }
.calc .emi { font-size: 2.6rem; font-weight: 800; color: var(--green-dark); }
.range-row label { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: .4rem; }
.range-row { margin-bottom: 1.3rem; }
input[type=range] { width: 100%; accent-color: var(--green); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 1.1rem 0; font-size: 1.05rem;
  font-weight: 600; color: var(--navy); cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; }
.faq-q .pm { color: var(--green); font-weight: 800; transition: .2s; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; color: var(--muted); }
.faq-item.open .faq-a { max-height: 320px; padding-bottom: 1.1rem; }
.faq-item.open .pm { transform: rotate(45deg); }

/* Testimonials */
.tcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.tcard .stars { font-size: 1.1rem; margin-bottom: .6rem; }
.tcard .who { font-weight: 700; color: var(--navy); margin-top: .8rem; }

/* Forms */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; color: var(--navy); font-size: .95rem; }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea { width: 100%; padding: .7rem .85rem; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); font-size: 1rem; font-family: inherit; color: var(--ink); background: #fff; transition: .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,163,74,.12); }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkbox { display: flex; gap: .65rem; align-items: flex-start; font-size: .92rem; color: var(--ink); }
.checkbox input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green); flex: 0 0 18px; }

/* Wizard */
.wizard-steps { display: flex; gap: .5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.wstep { flex: 1; min-width: 120px; padding: .6rem .8rem; border-radius: var(--radius-sm); background: var(--bg-alt);
  border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--muted); display: flex; gap: .5rem; align-items: center; }
.wstep .n { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1.5px solid var(--line);
  display: grid; place-items: center; font-size: .8rem; }
.wstep.active { background: var(--green-soft); border-color: var(--green); color: var(--green-dark); }
.wstep.active .n { background: var(--green); color: #fff; border-color: var(--green); }
.wstep.done .n { background: var(--navy); color: #fff; border-color: var(--navy); }
.wpanel { display: none; }
.wpanel.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: none; } }

/* Upload */
.drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 1.1rem; display: flex;
  align-items: center; gap: 1rem; background: var(--bg-alt); }
.drop .ic { color: var(--green); }
.file-list { list-style: none; padding: 0; margin: .6rem 0 0; font-size: .85rem; color: var(--muted); }

/* Alerts / badges */
.alert { padding: .85rem 1rem; border-radius: var(--radius-sm); font-size: .92rem; margin-bottom: 1rem; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-ok { background: var(--green-soft); color: var(--green-dark); border: 1px solid #bbf7d0; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.badge.gray { background: #eef2f6; color: var(--muted); }
.badge.green { background: var(--green-soft); color: var(--green-dark); }
.badge.amber { background: #fef3c7; color: #92400e; }
.badge.blue { background: #dbeafe; color: #1e40af; }
.badge.navy { background: var(--navy); color: #fff; }
.badge.red { background: #fee2e2; color: #991b1b; }

/* Footer */
.footer { background: var(--navy); color: #c6d2dd; padding: 56px 0 28px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer a { color: #c6d2dd; display: block; margin-bottom: .5rem; font-size: .92rem; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-note { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .82rem; color: #93a4b5; }
.sec-badges { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1rem; }
.sec-badge { display: flex; align-items: center; gap: .4rem; font-size: .78rem; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14); border-radius: 8px; padding: .35rem .6rem; color: #d7e1ea; }

/* Tables (dashboards) */
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.tbl th, table.tbl td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
table.tbl th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
table.tbl tbody tr:hover { background: var(--bg-alt); }
table.tbl tbody tr { cursor: default; }
.clickable tbody tr { cursor: pointer; }

/* Auth / dashboard shells */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; background: var(--bg-alt); padding: 20px; }
.auth-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 2rem; }
.dash { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: var(--navy); color: #cdd9e4; padding: 1.2rem; }
.side .brand { color: #fff; margin-bottom: 1.6rem; }
.side .brand .logo { background: var(--green); }
.side nav a { display: flex; align-items: center; gap: .6rem; color: #cdd9e4; padding: .6rem .8rem; border-radius: 9px;
  font-weight: 500; margin-bottom: .25rem; font-size: .95rem; }
.side nav a:hover, .side nav a.active { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.main { padding: 1.6rem 2rem; background: var(--bg-alt); }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.6rem; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm); }
.kpi .v { font-size: 1.8rem; font-weight: 800; color: var(--navy); }
.kpi .l { color: var(--muted); font-size: .85rem; }
.view { display: none; }
.view.active { display: block; }

/* Modal / drawer */
.drawer-bg { position: fixed; inset: 0; background: rgba(11,34,57,.5); display: none; z-index: 100; }
.drawer-bg.open { display: block; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(560px, 96vw); background: #fff; z-index: 101;
  box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .25s; overflow-y: auto; padding: 1.5rem; }
.drawer.open { transform: none; }
.dl { display: grid; grid-template-columns: 150px 1fr; gap: .35rem .8rem; font-size: .92rem; margin: 1rem 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; color: var(--ink); font-weight: 500; }

/* Responsive */
@media (max-width: 1100px) {
  .nav-links { display: none; position: absolute; top: 124px; left: 0; right: 0; background: #fff; flex-direction: column;
    padding: 1rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); align-items: stretch; }
  .nav-links.open { display: flex; }
  .nav-links .btn-bi { margin-right: 0; }
  .nav-toggle { display: block; margin-left: auto; }
}
@media (max-width: 900px) {
  .loan-cards, .grid-3, .grid-2, .calc, .footer-grid, .row-2, .kpis { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dash { grid-template-columns: 1fr; }
  .side { display: none; }
  section { padding: 44px 0; }
}
@media (max-width: 560px) {
  .kpis, .footer-grid { grid-template-columns: 1fr; }
  .main { padding: 1.2rem; }
}

/* ===================================================================
   PREMIUM LANDING LAYER (2027) — gradient mesh, glass, motion, marquee
   =================================================================== */
:root {
  --grad: linear-gradient(120deg, #16a34a 0%, #0ea5e9 100%);
  --grad-soft: linear-gradient(120deg, rgba(22,163,74,.12), rgba(14,165,233,.12));
}

.gradient-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Animated mesh-gradient hero backdrop */
.hero-x {
  position: relative; overflow: clip;
  background: radial-gradient(1100px 520px at 12% -8%, #e9f7ef 0%, transparent 60%),
              radial-gradient(900px 480px at 100% 0%, #e6f3fb 0%, transparent 55%),
              linear-gradient(180deg, #fbfdff 0%, #ffffff 70%);
  padding: 72px 0 84px;
}
.hero-x::before, .hero-x::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: 0;
  animation: float 16s ease-in-out infinite;
}
.hero-x::before { width: 420px; height: 420px; background: radial-gradient(circle, #5eead4, transparent 65%); top: -120px; right: 6%; }
.hero-x::after  { width: 360px; height: 360px; background: radial-gradient(circle, #bbf7d0, transparent 65%); bottom: -120px; left: 2%; animation-delay: -8s; }
.hero-x > .container { position: relative; z-index: 1; }
@keyframes float { 0%,100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-26px) translateX(14px); } }

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.4rem; align-items: center; }
.hero-x h1 { font-size: clamp(2.1rem, 4.1vw, 2.95rem); font-weight: 900; letter-spacing: -.028em; line-height: 1.12;
  text-wrap: balance; max-width: 30ch; margin-bottom: 1.1rem; }
.hero-x .lead { text-wrap: pretty; line-height: 1.62; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .08em; color: var(--green-dark);
  background: linear-gradient(135deg, rgba(255,255,255,.7), var(--green-soft)); backdrop-filter: blur(6px);
  border: 1px solid #bbf7d0; padding: .45rem .9rem; border-radius: 999px; margin-bottom: 1.3rem;
  box-shadow: 0 6px 18px rgba(22,163,74,.12); }
/* Hero brand lockup (replaces the star eyebrow) — single animated line */
.hero-brand { display: inline-flex; flex-direction: row; align-items: center; flex-wrap: nowrap; gap: .65rem;
  white-space: nowrap; margin-bottom: 1.4rem; }
.hb-word { position: relative; overflow: hidden; font-size: clamp(1.35rem, 2.7vw, 1.95rem); font-weight: 900; letter-spacing: .005em; line-height: 1; white-space: nowrap; }
.hb-word::after { content: ""; position: absolute; top: 0; left: -40%; width: 35%; height: 100%; pointer-events: none;
  transform: skewX(-18deg); background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); animation: hbShine 5.5s ease-in-out infinite; }
@keyframes hbShine { 0% { left: -40%; } 22%, 100% { left: 140%; } }
.hb-k { display: inline-block; background: linear-gradient(120deg, #1d4ed8, #3b82f6, #0b2239); background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #15356b; animation: hbPan 6s linear infinite; }
.hb-b { display: inline-block; background: linear-gradient(120deg, #16a34a, #34d399, #14532d); background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--green-dark); animation: hbPan 6s linear infinite reverse; }
@keyframes hbPan { to { background-position: 220% center; } }
.hb-tag { display: inline-flex; align-items: center; gap: .4rem; font-family: 'Noto Sans Devanagari', 'Mukta', sans-serif;
  font-size: clamp(.85rem, 1.6vw, 1.1rem); font-weight: 700; color: var(--green-dark); letter-spacing: .01em; white-space: nowrap; }
.hb-tag .leaf { display: inline-block; font-weight: 400; transform-origin: center 70%; animation: hbLeaf 3.6s ease-in-out infinite; }
.hb-tag .leaf:last-child { animation-delay: -1.8s; }
@keyframes hbLeaf { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
.hb-tag::before, .hb-tag::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: #bf9b30; opacity: .85; flex: 0 0 auto;
  transform-origin: center; animation: hbDash 3s ease-in-out infinite; }
@keyframes hbDash { 0%, 100% { transform: scaleX(.55); opacity: .55; } 50% { transform: scaleX(1); opacity: 1; } }
@media (max-width: 560px) { .hero-brand { flex-wrap: wrap; white-space: normal; } }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.7rem; }
.hero-points { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.7rem; color: var(--muted); font-size: .9rem; }
.hero-points span { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; }

/* Glass interactive panel in hero — premium frosted card with animated gradient ring */
.glass { position: relative; background: rgba(255,255,255,.6);
  backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(255,255,255,.85); border-radius: 24px;
  box-shadow: 0 28px 80px rgba(11,34,57,.18), inset 0 1px 0 rgba(255,255,255,.6); padding: 1.7rem;
  transition: transform .3s var(--spring), box-shadow .3s ease; }
.glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.4px; pointer-events: none;
  background: linear-gradient(135deg, rgba(94,234,212,.9), rgba(22,163,74,.55), rgba(14,165,233,.85)); background-size: 200% 200%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .55; animation: tcBorder 8s linear infinite; }
.glass:hover { transform: translateY(-4px); box-shadow: 0 34px 90px rgba(11,34,57,.22), inset 0 1px 0 rgba(255,255,255,.6); }
/* Nudge the hero estimate panel toward the right edge of its column */
.hero-grid > .glass { justify-self: end; width: 100%; max-width: 440px; }
.quote-emi { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.seg { display: flex; gap: .4rem; background: var(--bg-alt); padding: .3rem; border-radius: 12px; margin-bottom: 1rem; }
.seg button { flex: 1; border: 0; background: transparent; padding: .5rem; border-radius: 9px; font-weight: 600;
  font-size: .85rem; color: var(--muted); cursor: pointer; transition: .15s; }
.seg button.on { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }

/* Marquee of partner logos */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: .8rem; width: max-content; animation: scrollx 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* Scroll-reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* Feature cards w/ hover glow */
.feature { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem;
  transition: .2s; overflow: hidden; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d7e6d8; }
.feature .fic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem;
  background: var(--grad-soft); margin-bottom: 1rem; }

/* Stat counters band */
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.counter .n { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.02em; }

/* Comparison table */
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.cmp th, .cmp td { padding: 1rem 1.2rem; text-align: left; border-bottom: 1px solid var(--line); }
.cmp thead th { background: var(--bg-alt); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.cmp .col-us { background: var(--green-soft); font-weight: 600; color: var(--navy); }
.cmp tr:last-child td { border-bottom: 0; }
.cmp .yes { color: var(--green-dark); font-weight: 700; } .cmp .no { color: #b91c1c; }

/* Process timeline */
.flow { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; position: relative; }
.flow .node { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem; position: relative; }
.flow .node .step-n { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff;
  font-weight: 800; display: grid; place-items: center; margin-bottom: 1rem; }

/* Security grid */
.sec-section { background: var(--navy); color: #cdd9e4; }
.sec-section h2, .sec-section h3 { color: #fff; }
.sec-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 1.4rem; }
.sec-card .si { font-size: 1.6rem; margin-bottom: .6rem; }

/* Sticky mobile apply bar */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line);
  padding: .7rem 1rem; display: none; align-items: center; justify-content: space-between; gap: 1rem; box-shadow: 0 -6px 24px rgba(11,34,57,.1); }
.sticky-cta .btn { padding: .7rem 1.3rem; }

@media (max-width: 900px) {
  .hero-grid, .counters, .flow { grid-template-columns: 1fr; }
  .counters { grid-template-columns: 1fr 1fr; }
  .hero-x { padding: 48px 0 64px; }
  .hero-x h1 { max-width: none; }
  .hero-grid > .glass { justify-self: stretch; max-width: none; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .hero-x::before, .hero-x::after, .marquee-track { animation: none; }
}

/* ===================================================================
   2026 ADVANCED UI LAYER — gradient buttons, shine-sweep, glow,
   spring press, glass ghosts, lifted cards, refined inputs/badges.
   =================================================================== */
:root {
  --btn-grad: linear-gradient(135deg, #16a34a 0%, #0ea5e9 100%);
  --btn-grad-hover: linear-gradient(135deg, #149a45 0%, #0c9ad9 100%);
  --glow-green: 0 10px 28px rgba(22,163,74,.38);
  --spring: cubic-bezier(.34,1.56,.64,1);
}

/* --- Buttons: shine sweep on hover, springy press --- */
.btn {
  position: relative; overflow: hidden;
  transition: transform .22s var(--spring), box-shadow .28s ease, background .3s ease, border-color .2s ease, color .2s ease;
}
.btn::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-180%) skewX(-18deg); pointer-events: none;
}
.btn:hover::before { transition: transform .7s ease; transform: translateX(320%) skewX(-18deg); }
.btn:active { transform: translateY(0) scale(.96); }

/* Primary: animated gradient, glassy depth + glow */
.btn-primary {
  background: var(--btn-grad); background-size: 180% 180%; background-position: 0% 50%;
  box-shadow: 0 6px 18px rgba(15,40,28,.22), inset 0 1px 0 rgba(255,255,255,.24), inset 0 -2px 6px rgba(0,0,0,.10);
}
.btn-primary:hover {
  background-image: var(--btn-grad-hover); background-position: 100% 50%;
  box-shadow: var(--glow-green), inset 0 1px 0 rgba(255,255,255,.3);
  transform: translateY(-2px) scale(1.015);
}
.btn-primary:active { transform: translateY(0) scale(.97); }
.btn-primary:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(193,87,47,.42), var(--glow-green); }

/* Ghost: frosted glass that fills with the brand colour on hover */
.btn-ghost { background: rgba(255,255,255,.72); backdrop-filter: blur(8px); }
.btn-ghost:hover {
  transform: translateY(-2px); border-color: transparent; color: #fff;
  background: var(--btn-grad); background-size: 180% 180%;
  box-shadow: var(--glow-green), inset 0 1px 0 rgba(255,255,255,.25);
}

.btn-light:hover { background: rgba(255,255,255,.28); transform: translateY(-2px); }
.btn-lg { letter-spacing: .005em; }

/* --- Cards & tiles: smooth lift + soft glow on hover --- */
.card, .feature, .loan-card, .tcard, .kpi, .sec-card, .node, .glass {
  transition: transform .3s var(--spring), box-shadow .3s ease, border-color .25s ease;
}
.card:hover, .kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.loan-card:hover, .feature:hover, .tcard:hover { box-shadow: var(--shadow-lg); }

/* Gradient hairline that fades in on feature/loan cards */
.feature, .loan-card { position: relative; }
.feature::after, .loan-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: linear-gradient(135deg, rgba(22,163,74,.7), rgba(14,165,233,.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.feature:hover::after, .loan-card:hover::after { opacity: 1; }

/* --- Inputs: animated focus glow --- */
.field input, .field select, .field textarea {
  transition: border-color .2s ease, box-shadow .25s ease, background .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  box-shadow: 0 0 0 4px rgba(22,163,74,.14), 0 2px 10px rgba(22,163,74,.08);
}

/* --- Badges: subtle gradient sheen --- */
.badge { box-shadow: inset 0 -1px 0 rgba(0,0,0,.04); }
.badge.green { background: linear-gradient(135deg, #e9f7ef, #d6f3e1); }
.badge.blue  { background: linear-gradient(135deg, #e0ecff, #dbeafe); }
.badge.amber { background: linear-gradient(135deg, #fef3c7, #fde9b0); }
.badge.navy  { background: linear-gradient(135deg, #16324f, #0b2239); }

/* --- Nav "Apply" button: attention glow + living gradient pan --- */
.nav-links .btn-primary { animation: ctaPulse 3.2s ease-in-out infinite, ctaPan 7s ease-in-out infinite; }
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(22,163,74,.32); }
  50% { box-shadow: 0 6px 22px rgba(22,163,74,.5); }
}
@keyframes ctaPan {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* --- Animated gradient text shimmer --- */
.gradient-text {
  background: linear-gradient(110deg, #16a34a, #0ea5e9, #16a34a);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 220% center; } }

/* --- Segmented control & range thumbs polish --- */
.seg button { transition: background .2s ease, color .2s ease, transform .15s var(--spring); }
.seg button.on { transform: translateY(-1px); }
input[type=range] { height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--green), #0ea5e9); -webkit-appearance: none; appearance: none; outline: none; }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  border: 3px solid var(--green); box-shadow: 0 2px 8px rgba(22,163,74,.4); cursor: pointer; transition: transform .15s var(--spring); }
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.18); }

/* --- Drawer entrance easing + nav shadow --- */
.drawer { transition: transform .3s var(--spring); }
.nav { transition: box-shadow .25s ease, background .25s ease; }

/* --- Table rows hover accent (dashboards) --- */
.clickable tbody tr { transition: background .15s ease, box-shadow .15s ease; }
.clickable tbody tr:hover { box-shadow: inset 3px 0 0 var(--green); }

/* --- Sidebar links slide accent --- */
.side nav a { position: relative; transition: background .2s ease, color .2s ease, padding-left .2s ease; }
.side nav a:hover { padding-left: 1rem; }
.side nav a.active { box-shadow: inset 3px 0 0 var(--green); }

@media (prefers-reduced-motion: reduce) {
  .btn::before, .nav-links .btn-primary, .gradient-text { animation: none !important; }
  .btn:hover::before { transition: none; transform: translateX(-180%) skewX(-18deg); }
  .card, .feature, .loan-card, .tcard, .kpi, .btn { transition: none; }
  .trust-close::before, .trust-close::after, .tpillar::after, .tc-k, .tc-b, .tc-dot { animation: none !important; }
  .hb-k, .hb-b, .hb-word::after, .hb-tag .leaf, .hb-tag::before, .hb-tag::after { animation: none !important; }
  .newsband::after, .news2-eq i, .news2-dot { animation: none !important; }
  .news2-item { transition: none !important; filter: none !important; }
  .news2-progress { display: none; }
}

/* ===================================================================
   ANALYTICS / DASHBOARD 2026 — premium stat cards, chart cards,
   gradient bars, donut + area-line support, refined surfaces.
   =================================================================== */
:root {
  --chart-1: #16a34a; --chart-2: #0ea5e9; --chart-3: #8b5cf6;
  --chart-4: #f59e0b; --chart-5: #ef4444; --chart-6: #14b8a6;
  --surface: #ffffff; --surface-tint: #f7fafd;
}

.main { background: linear-gradient(180deg, #f3f7fb 0%, #f6f9fc 100%); }

/* Premium stat cards */
.kpis { gap: 14px; }
.kpi2 { display: flex; gap: 14px; align-items: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; padding: 1.05rem 1.15rem;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .3s var(--spring, cubic-bezier(.34,1.56,.64,1)), box-shadow .3s; }
.kpi2:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.kpi2::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--chart-1), var(--chart-2)); }
.kpi2-ic { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 13px; display: grid;
  place-items: center; font-size: 1.3rem; }
.kpi2-v { font-size: 1.7rem; font-weight: 800; color: var(--navy); line-height: 1; letter-spacing: -.02em; }
.kpi2-l { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.kpi2 .trend { font-size: .72rem; font-weight: 700; padding: .1rem .4rem; border-radius: 6px; }

/* Chart cards */
.chart-card { border-radius: 18px; }
.chart-card h3 { margin: 0 0 1rem; font-size: 1.05rem; }

/* Donut + legend */
.donut-wrap { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.legend { display: flex; flex-direction: column; gap: .5rem; flex: 1; min-width: 130px; }
.legend-row { display: flex; align-items: center; gap: .55rem; font-size: .9rem; }
.legend-dot { width: 11px; height: 11px; border-radius: 4px; flex: 0 0 11px; }
.legend-row b { margin-left: auto; color: var(--navy); }

/* Gradient horizontal bars */
.gbar { margin: .6rem 0; }
.gbar-top { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: 4px; }
.gbar-top b { color: var(--navy); }
.gbar-track { background: var(--bg-alt); border-radius: 8px; height: 11px; overflow: hidden; }
.gbar-fill { height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--chart-1), var(--chart-2));
  transition: width .6s cubic-bezier(.2,.8,.2,1); }

/* Area-line chart */
.spark { width: 100%; height: 180px; display: block; }
.spark-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: .72rem; margin-top: .4rem; }

/* Slightly elevated tables inside chart context */
.chart-card .tbl th { background: transparent; }
