/* ============================================
   LendScope Design System v2.0
   Premium Fintech UI Foundation
   ============================================ */

/* --- Enhanced CSS Custom Properties --- */
:root {
  /* Brand Colors (preserved) */
  --midnight: #0a0f1c;
  --deep: #111827;
  --slate: #1e293b;
  --muted: #94a3b8;
  --light: #e2e8f0;
  --white: #f8fafc;
  --accent: #22d3ee;
  --accent-bright: #06b6d4;
  --accent-dim: rgba(34, 211, 238, 0.12);
  --warm: #f59e0b;
  --warm-dim: rgba(245, 158, 11, 0.12);
  --green: #10b981;
  --green-dim: rgba(16, 185, 129, 0.12);
  --red: #ef4444;

  /* NEW: Secondary accent for badges, highlights, premium feel */
  --violet: #8b5cf6;
  --violet-dim: rgba(139, 92, 246, 0.12);

  /* Spacing Scale (8px base) */
  --sp-1: 0.5rem;    /* 8px */
  --sp-2: 1rem;      /* 16px */
  --sp-3: 1.5rem;    /* 24px */
  --sp-4: 2rem;      /* 32px */
  --sp-6: 3rem;      /* 48px */
  --sp-8: 4rem;      /* 64px */
  --sp-12: 6rem;     /* 96px */

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.15);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.35);
  --shadow-glow-accent: 0 0 24px rgba(34, 211, 238, 0.12);
  --shadow-glow-warm: 0 0 24px rgba(245, 158, 11, 0.1);
  --shadow-glow-green: 0 0 24px rgba(16, 185, 129, 0.1);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 100px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.15s;
  --duration-normal: 0.25s;
  --duration-slow: 0.4s;
}

/* --- Smooth Scroll & Selection --- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(34, 211, 238, 0.25);
  color: var(--white);
}

/* --- Enhanced Typography --- */
body {
  text-rendering: optimizeLegibility;
}

/* Headings refinement */
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/* --- Enhanced Nav --- */
.nav {
  transition: background var(--duration-normal) ease, box-shadow var(--duration-normal) ease;
}

.nav.scrolled {
  background: rgba(10, 15, 28, 0.96) !important;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.logo {
  transition: opacity var(--duration-fast) ease;
}
.logo:hover {
  opacity: 0.85;
}

/* Nav links enhanced */
.nav-link {
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--duration-normal) var(--ease-out);
  border-radius: 1px;
}
.nav-link:hover::after {
  width: 100%;
}

/* Nav CTA enhanced */
.nav-cta {
  transition: all var(--duration-normal) var(--ease-out) !important;
  box-shadow: 0 2px 8px rgba(34, 211, 238, 0.15);
}
.nav-cta:hover {
  box-shadow: 0 4px 16px rgba(34, 211, 238, 0.25) !important;
}

/* --- Button Hierarchy --- */

/* Primary: solid accent */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out) !important;
  box-shadow: 0 2px 12px rgba(34, 211, 238, 0.15);
}
.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(34, 211, 238, 0.25) !important;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--duration-fast) ease;
}
.btn-primary:hover::after {
  opacity: 1;
}
.btn-primary:active {
  transform: translateY(0) scale(0.98) !important;
}

/* Secondary: outline */
.btn-secondary {
  transition: all var(--duration-normal) var(--ease-out) !important;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.btn-secondary:active {
  transform: scale(0.98) !important;
}

/* Ghost: text-only button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  background: none;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
}
.btn-ghost:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

/* Submit buttons enhanced */
.btn-submit {
  position: relative;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out) !important;
  box-shadow: 0 2px 12px rgba(34, 211, 238, 0.12);
}
.btn-submit:hover {
  box-shadow: 0 6px 24px rgba(34, 211, 238, 0.2) !important;
  transform: translateY(-1px);
}
.btn-submit:active {
  transform: translateY(0) scale(0.99);
}
.btn-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
  opacity: 0;
  transition: opacity var(--duration-fast) ease;
}
.btn-submit:hover::after {
  opacity: 1;
}

/* Compare button */
.btn-compare {
  position: relative;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out) !important;
  box-shadow: 0 2px 12px rgba(34, 211, 238, 0.12);
}
.btn-compare:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(34, 211, 238, 0.2) !important;
}
.btn-compare:active {
  transform: translateY(0) scale(0.99);
}
.btn-compare::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
  opacity: 0;
  transition: opacity var(--duration-fast) ease;
}
.btn-compare:hover::after {
  opacity: 1;
}

/* Back/edit buttons */
.btn-back, .btn-edit {
  transition: all var(--duration-normal) var(--ease-out) !important;
}
.btn-back:active, .btn-edit:active {
  transform: scale(0.97);
}

/* Next/step buttons */
.btn-next {
  position: relative;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out) !important;
  box-shadow: 0 2px 12px rgba(34, 211, 238, 0.12);
}
.btn-next:hover:not(:disabled) {
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.2) !important;
}
.btn-next::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
  opacity: 0;
  transition: opacity var(--duration-fast) ease;
}
.btn-next:hover::after {
  opacity: 1;
}

/* --- Enhanced Cards --- */

/* Generic card hover patterns */
.pricing-card::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-bright), var(--accent)) !important;
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

/* Auth card */
.auth-card {
  box-shadow: var(--shadow-lg) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  transition: box-shadow var(--duration-slow) ease;
}
.auth-card:hover {
  box-shadow: var(--shadow-xl) !important;
}

/* Pricing card */
.pricing-card {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), var(--shadow-glow-accent) !important;
  transition: box-shadow var(--duration-slow) ease, transform var(--duration-normal) var(--ease-out);
}
.pricing-card:hover {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35), 0 0 32px rgba(34, 211, 238, 0.15) !important;
  transform: translateY(-2px);
}

/* Success card */
.success-card {
  box-shadow: var(--shadow-lg) !important;
  transition: box-shadow var(--duration-slow) ease;
}

/* Compare form */
.compare-form {
  box-shadow: var(--shadow-md) !important;
  transition: box-shadow var(--duration-slow) ease;
}
.compare-form:hover {
  box-shadow: var(--shadow-lg) !important;
}

/* Results card */
.results-card {
  box-shadow: var(--shadow-md) !important;
  transition: box-shadow var(--duration-slow) ease;
}

/* Pitch builder card */
.pitch-card {
  box-shadow: var(--shadow-md) !important;
  transition: box-shadow var(--duration-slow) ease;
}

/* Landing page pillar cards */
.pillar {
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) ease !important;
}
.pillar.dev-finance:hover {
  box-shadow: 0 8px 40px rgba(34, 211, 238, 0.1), var(--shadow-glow-accent) !important;
}
.pillar.bridging:hover {
  box-shadow: 0 8px 40px rgba(245, 158, 11, 0.1), var(--shadow-glow-warm) !important;
}

/* Audience cards */
.audience-card {
  box-shadow: var(--shadow-xs);
  transition: border-color var(--duration-normal) ease, transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) ease, background var(--duration-normal) ease !important;
}
.audience-card:hover {
  box-shadow: var(--shadow-md) !important;
  background: rgba(255, 255, 255, 0.025) !important;
}

/* Why cards */
.why-card {
  box-shadow: var(--shadow-xs);
  transition: border-color var(--duration-normal) ease, transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) ease, background var(--duration-normal) ease !important;
}
.why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md) !important;
  background: rgba(255, 255, 255, 0.025) !important;
}

/* Step cards */
.step {
  transition: background var(--duration-normal) ease;
}

/* Deal cards */
.deal {
  transition: background var(--duration-normal) ease;
}
.deal:hover {
  background: rgba(255, 255, 255, 0.015);
}

/* --- Enhanced Form Inputs --- */

.form-input,
.form-select,
.form-textarea {
  transition: border-color var(--duration-normal) ease, box-shadow var(--duration-normal) ease, background var(--duration-normal) ease !important;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08), 0 0 16px rgba(34, 211, 238, 0.06) !important;
  background: rgba(17, 24, 39, 0.8) !important;
}

.form-input:hover:not(:focus),
.form-select:hover:not(:focus),
.form-textarea:hover:not(:focus) {
  border-color: rgba(255, 255, 255, 0.15);
}

/* Labels enhanced */
.form-label {
  transition: color var(--duration-fast) ease;
}

/* Better placeholder styling */
.form-input::placeholder,
.form-textarea::placeholder {
  transition: opacity var(--duration-fast) ease;
}
.form-input:focus::placeholder,
.form-textarea:focus::placeholder {
  opacity: 0.5;
}

/* Error state enhanced */
.form-error {
  animation: slideDown 0.25s var(--ease-out);
}

/* --- Enhanced Section Labels & Titles --- */
.section-label {
  position: relative;
  display: inline-block;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  position: relative;
}

/* Closing CTA section glow */
.closing {
  position: relative;
}
.closing h2 {
  background: linear-gradient(135deg, var(--white), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Hero Badge Enhanced --- */
.hero-badge {
  transition: all var(--duration-normal) ease;
  box-shadow: 0 2px 8px rgba(34, 211, 238, 0.06);
}
.hero-badge:hover {
  background: rgba(34, 211, 238, 0.16);
  box-shadow: 0 4px 12px rgba(34, 211, 238, 0.1);
}

/* Hero stats enhanced */
.stat-num {
  background: linear-gradient(135deg, var(--white), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Pillar Tags Enhanced --- */
.pillar-tag {
  transition: all var(--duration-fast) ease;
}
.dev-finance .pillar-tag:hover {
  background: rgba(34, 211, 238, 0.18);
}
.bridging .pillar-tag:hover {
  background: rgba(245, 158, 11, 0.18);
}

/* --- Pillar Icons Enhanced --- */
.pillar-icon {
  transition: transform var(--duration-normal) var(--ease-spring);
}
.pillar:hover .pillar-icon {
  transform: scale(1.08);
}

/* Audience icons */
.audience-icon {
  transition: transform var(--duration-normal) var(--ease-spring);
}
.audience-card:hover .audience-icon {
  transform: scale(1.1);
}

/* Why icons */
.why-icon {
  transition: transform var(--duration-normal) var(--ease-spring), box-shadow var(--duration-normal) ease;
}
.why-card:hover .why-icon {
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.1);
}

/* --- Step Numbers Enhanced --- */
.step-num {
  transition: color var(--duration-normal) ease;
}
.step:hover .step-num {
  color: rgba(34, 211, 238, 0.15);
}

/* --- Pricing Steps Enhanced --- */
.pricing-step {
  transition: border-color var(--duration-normal) ease, background var(--duration-normal) ease;
}
.pricing-step:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

/* --- Plan Features Enhanced --- */
.plan-features li {
  transition: padding-left var(--duration-normal) ease;
}
.plan-features li:hover {
  padding-left: 0.25rem;
}

/* FAQ Enhanced */
.faq-item {
  transition: border-color var(--duration-normal) ease;
}
.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

/* --- Enhanced Footer --- */
footer {
  background: rgba(10, 15, 28, 0.5);
}

footer a {
  transition: color var(--duration-normal) ease !important;
}
footer a:hover {
  color: var(--accent) !important;
}

.footer-link {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-link:hover {
  color: var(--accent) !important;
}

/* --- Trial Badge Enhanced --- */
.trial-badge {
  transition: all var(--duration-normal) ease;
}

/* --- Scroll Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Fade-in-up utility for scroll-triggered elements */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children animation */
.stagger-children > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.4s; }
.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- Page Transition --- */
.auth-page,
.compare-page,
.pricing-hero,
.success-page,
.pitch-page {
  animation: fadeIn 0.4s var(--ease-out);
}

/* Auth page background glow */
.auth-page {
  position: relative;
}
.auth-page::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(500px, 90vw);
  height: min(500px, 90vw);
  background: radial-gradient(circle, rgba(34, 211, 238, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

/* Success page glow */
.success-page {
  position: relative;
}
.success-page::before {
  content: '';
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(400px, 80vw);
  height: min(400px, 80vw);
  background: radial-gradient(circle, rgba(34, 211, 238, 0.025) 0%, transparent 70%);
  pointer-events: none;
}

/* --- Results Area Animation --- */
.results-area.active {
  animation: scaleIn 0.4s var(--ease-out);
}

/* --- Result Content Enhanced --- */
.result-content h3 {
  position: relative;
  padding-left: 0.75rem;
}
.result-content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.result-content table {
  border-radius: var(--radius-md);
  overflow: hidden;
}
.result-content tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* --- Spinner Enhanced --- */
.spinner, .big-spinner {
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.2));
}

/* --- Output Tabs Enhanced --- */
.output-tab {
  transition: all var(--duration-normal) ease !important;
}
.output-tab.active {
  background: rgba(34, 211, 238, 0.04);
}

/* --- Copy Button Enhanced --- */
.btn-copy {
  transition: all var(--duration-normal) var(--ease-out) !important;
}
.btn-copy:active {
  transform: scale(0.95);
}

/* --- Progress Bar Enhanced --- */
.progress-fill {
  background: linear-gradient(90deg, var(--accent), var(--accent-bright)) !important;
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.3);
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--midnight);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* --- Mobile Hamburger Transition Enhanced --- */
.hamburger {
  transition: opacity var(--duration-fast) ease;
}
.hamburger:hover {
  opacity: 0.7;
}
.hamburger span {
  transition: all 0.3s var(--ease-out) !important;
}

/* Mobile nav panel enhanced */
@media (max-width: 768px) {
  .nav-auth-items {
    transition: transform 0.35s var(--ease-out) !important;
    transform: translateX(100%);
  }
  .nav-auth-items.open {
    transform: translateX(0) !important;
    display: flex !important;
  }

  .nav-overlay {
    transition: opacity 0.3s ease;
    opacity: 0;
  }
  .nav-overlay.open {
    display: block !important;
    opacity: 1;
  }
}

/* --- Focus Visible Accessibility --- */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Remove outline for mouse users */
*:focus:not(:focus-visible) {
  outline: none;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .fade-in {
    opacity: 1;
    transform: none;
  }
  .stagger-children > * {
    opacity: 1;
    transform: none;
  }
}

/* ===== LendScope UI Refinements v2.1 ===== */

/* Better route card hover */
.route-card {
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.route-card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

/* Lender card enhanced hover */
.lender-card {
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.lender-card:hover {
  border-color: rgba(34,211,238,0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

/* Badge animations */
.badge {
  transition: filter 0.2s ease;
}
.badge:hover {
  filter: brightness(1.1);
}

/* Pill styling improvements */
.pill {
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Deal card in dashboard/deals list */
.deal {
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.deal:hover {
  border-color: rgba(34,211,238,0.2) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

/* Form inputs - enhanced focus ring */
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.12);
}

/* Compare button shimmer pulse when loading */
.btn-compare:disabled {
  animation: pulse-border 1.5s ease-in-out infinite;
}
@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); }
  50% { box-shadow: 0 0 0 6px rgba(34,211,238,0.1); }
}

/* Smooth page transitions */
.compare-page, .pitch-page, .auth-page {
  animation: pageFadeIn 0.35s ease;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Improved section dividers for brokers page */
.br-section-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin: 0;
}

/* Mobile results improvements */
@media (max-width: 640px) {
  .route-card .route-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .lender-stats {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}
