/* MeLoan — public site + reporting portal */

:root {
  --blue: #0ea5e9;
  --blue-dark: #0284c7;
  --teal: #14d4c4;
  --teal-light: #5eead4;
  --orange: #f97316;
  --navy: #0b1220;
  --navy-soft: #111b2e;
  --text: #0f172a;
  --text-muted: #64748b;
  --white: #ffffff;
  --bg-soft: #f0f7fb;
  --border: #e2e8f0;
  --success: #22c55e;
  --footer-bg: #0a0f18;
  --shadow: 0 8px 32px rgba(15, 20, 25, 0.08);
  --shadow-sm: 0 4px 16px rgba(15, 20, 25, 0.06);
  --radius: 12px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --max-w: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

body.site-public {
  background: linear-gradient(180deg, #f8fafc 0%, var(--white) 28%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 40px, var(--max-w));
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  box-shadow: 0 4px 14px rgba(0, 123, 255, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn-outline:hover {
  background: rgba(0, 123, 255, 0.06);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: none;
  padding: 0.5rem 0.75rem;
}

.btn-gradient {
  width: 100%;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: var(--white);
  border: none;
  padding: 1rem;
  font-size: 1rem;
}

.btn-gradient:hover {
  box-shadow: var(--shadow-sm);
  filter: brightness(1.05);
}

/* Header — navy bar (aligned with admin mockups) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, var(--navy-soft) 0%, var(--navy) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.logo-img {
  height: 80px;
  width: auto;
  max-width: min(200px, 42vw);
  display: block;
  object-fit: contain;
}

.logo-img--footer {
  height: 36px;
  max-width: 200px;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.nav-links a:not(.btn) {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.nav-links a:not(.btn):hover {
  color: var(--teal-light);
}

.has-dropdown {
  position: relative;
}

.has-dropdown > .trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  padding: 0;
}

.has-dropdown > .trigger:hover {
  color: var(--teal-light);
}

.chevron {
  width: 10px;
  height: 10px;
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  min-width: 180px;
  background: var(--navy-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.has-dropdown:hover .dropdown-panel,
.has-dropdown:focus-within .dropdown-panel,
.has-dropdown.is-open .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.dropdown-panel a:hover {
  background: rgba(20, 212, 196, 0.12);
  color: var(--teal-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.link-signin,
.link-track-loan {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.link-signin:hover,
.link-track-loan:hover {
  color: var(--teal-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  .nav-main {
    position: fixed;
    inset: 72px 0 auto 0;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }

  .site-header.menu-open .nav-main {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .has-dropdown .dropdown-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0.25rem 0 0 0.75rem;
    margin-top: 0;
    border-left: 2px solid var(--border);
  }

  .header-actions {
    margin-top: 0.5rem;
    flex-wrap: wrap;
  }
}

/* Hero */
.hero {
  padding: 4rem 0 5rem;
  background: linear-gradient(165deg, #f0f9ff 0%, #f8fafc 45%, var(--white) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

.hero h1 .highlight {
  color: var(--blue);
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 32ch;
  margin-bottom: 1.75rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.stat {
  text-align: left;
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.12), rgba(0, 184, 196, 0.12));
  display: grid;
  place-items: center;
  margin-bottom: 0.5rem;
}

.stat-icon svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
}

.stat strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
}

.stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Calculator card */
.calc-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  border: 1px solid var(--border);
}

.calc-card-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.calc-card-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.range-field {
  margin-bottom: 1.5rem;
}

.range-field label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.range-field input[type="range"] {
  width: 100%;
  height: 6px;
  accent-color: var(--blue);
  cursor: pointer;
}

.range-field-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.range-field-label {
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.calc-amount-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  max-width: 11rem;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.calc-amount-input-wrap:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.calc-input-prefix {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.calc-amount-input {
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  text-align: right;
  padding: 0;
  outline: none;
}

.calc-amount-input::placeholder {
  color: rgba(15, 23, 42, 0.35);
  font-weight: 500;
}

.calc-summary {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: var(--white);
}

.calc-summary .label-total {
  font-size: 0.85rem;
  opacity: 0.95;
  margin-bottom: 0.35rem;
}

.calc-summary .total-payable {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.calc-summary .per-month {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.95rem;
}

.calc-apr-note {
  margin-top: 0.65rem;
  font-size: 0.76rem;
  line-height: 1.45;
  opacity: 0.92;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 520px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
}

/* Section chrome */
.section {
  padding: 5rem 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.02rem;
}

/* Services */
.services {
  background: var(--bg-soft);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.svc-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(15, 35, 70, 0.08);
  transition: transform 0.2s ease;
}

.svc-icon svg {
  width: 32px;
  height: 32px;
  display: block;
}

.svc-icon.blue {
  background: rgba(0, 123, 255, 0.12);
  color: var(--blue);
}

.svc-icon.teal {
  background: rgba(0, 184, 196, 0.15);
  color: var(--teal);
}

.svc-icon--personal {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.svc-icon--business {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
}

.svc-icon--home {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
}

.svc-icon--education {
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
}

.svc-icon--vehicle {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.svc-icon--debt {
  background: linear-gradient(135deg, #fdf4ff 0%, #ede9fe 100%);
}

.service-card:hover .svc-icon {
  transform: scale(1.06);
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.service-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  flex-grow: 1;
}

.service-card .apply-link {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--blue);
  font-size: 0.9rem;
}

.service-card .apply-link:hover {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* CIBIL check promo (above loan apply) */
.cibil-check-section {
  padding: 0 0 2rem;
  margin-top: -1.5rem;
}

.cibil-check-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding: 1.75rem 2rem;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(135deg, #0c4a6e 0%, #0b2847 48%, #0a1628 100%);
  color: #fff;
  box-shadow: 0 16px 48px rgba(11, 31, 58, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cibil-check-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5eead4;
}

.cibil-check-banner h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cibil-check-desc {
  margin: 0 0 0.85rem;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  font-size: 0.95rem;
}

.cibil-check-perks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.88);
}

.cibil-check-perks li::before {
  content: "✓ ";
  color: #5eead4;
  font-weight: 700;
}

.cibil-check-banner-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  flex-shrink: 0;
}

.cibil-check-open {
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(20, 212, 196, 0.25);
}

.cibil-check-official {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

.cibil-check-official:hover {
  color: #5eead4;
}

.cibil-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 58, 0.55);
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.cibil-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cibil-modal {
  position: fixed;
  inset: 0;
  z-index: 1210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.cibil-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cibil-modal-panel {
  position: relative;
  width: min(100%, 440px);
  max-height: min(92vh, 720px);
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 24px 64px rgba(11, 31, 58, 0.22);
}

.cibil-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
}

.cibil-modal-close:hover {
  color: var(--navy, #0b1f3a);
}

.cibil-modal-panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  color: var(--navy, #0b1f3a);
}

.cibil-modal-lead {
  margin: 0 0 1.15rem;
  font-size: 0.9rem;
  color: var(--text-muted, #6b7280);
}

.cibil-check-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cibil-check-form .loan-field input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  font: inherit;
}

.cibil-check-form .loan-field.is-invalid input {
  border-color: #dc2626;
}

.cibil-check-form .loan-field-error {
  display: block;
  font-size: 0.78rem;
  color: #dc2626;
  line-height: 1.35;
}

.cibil-check-form .loan-field-error[hidden] {
  display: none;
}

.cibil-check-form .loan-field-row {
  gap: 0.85rem;
}

.cibil-consent {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--text-muted, #6b7280);
  line-height: 1.45;
  cursor: pointer;
}

.cibil-consent input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.cibil-submit-btn {
  width: 100%;
  margin-top: 0.25rem;
}

.cibil-result {
  text-align: center;
}

.cibil-result-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, #6b7280);
}

.cibil-score-ring {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.15rem;
  padding: 1.25rem 1.5rem;
  border-radius: 50%;
  border: 6px solid #e5e7eb;
  margin-bottom: 0.75rem;
  min-width: 140px;
  min-height: 140px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cibil-score-ring[data-band="excellent"] {
  border-color: #0d9488;
  background: rgba(13, 148, 136, 0.08);
}

.cibil-score-ring[data-band="good"] {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
}

.cibil-score-ring[data-band="fair"] {
  border-color: #d97706;
  background: rgba(217, 119, 6, 0.08);
}

.cibil-score-ring[data-band="low"] {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
}

.cibil-score-value {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--navy, #0b1f3a);
}

.cibil-score-max {
  font-size: 0.95rem;
  color: var(--text-muted, #6b7280);
}

.cibil-result-band {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy, #0b1f3a);
}

.cibil-result-summary {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  color: var(--text, #374151);
  line-height: 1.5;
}

.cibil-result-disclaimer {
  margin: 0 0 1.25rem;
  font-size: 0.78rem;
  color: var(--text-muted, #6b7280);
  line-height: 1.45;
}

.cibil-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.cibil-result-actions .btn {
  min-width: 140px;
}

@media (max-width: 720px) {
  .cibil-check-banner {
    padding: 1.35rem 1.25rem;
  }

  .cibil-check-banner-action {
    width: 100%;
  }

  .cibil-check-open {
    width: 100%;
  }
}

/* Loan apply / eligibility (two-column layout) */
.loan-apply {
  padding: 3rem 0 5rem;
}

.loan-apply-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.loan-apply-copy {
  background: var(--white);
  padding: 2.5rem 2.25rem;
  border: 1px solid var(--border);
  border-right: none;
}

.loan-apply-copy h2 {
  font-size: clamp(1.45rem, 2.8vw, 1.95rem);
  font-weight: 800;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.loan-apply-lead {
  color: var(--text-muted);
  margin: 0 0 1rem;
  font-size: 0.98rem;
}

.loan-doc-prereq {
  margin: 0 0 1.5rem;
  padding-left: 1.2rem;
  color: var(--text);
  line-height: 1.55;
}

.loan-doc-prereq li {
  margin-bottom: 0.4rem;
}

.loan-apply-subtitle {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 1.75rem 0 0.75rem;
  color: var(--text);
}

.loan-doc-block {
  margin-bottom: 1.15rem;
}

.loan-doc-block h4 {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue);
}

.loan-doc-block ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

.loan-doc-block li {
  margin-bottom: 0.35rem;
}

.loan-apply-aside {
  background: linear-gradient(165deg, #0c4a6e 0%, #0b1220 52%, #0a1628 100%);
  padding: 2.25rem 2rem;
  display: flex;
  align-items: stretch;
}

.loan-eligibility-card.quote-card {
  width: 100%;
  margin: 0;
  align-self: center;
  border: none;
  box-shadow: 0 12px 40px rgba(0, 40, 100, 0.2);
}

.loan-form-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 1.35rem;
  color: var(--text);
}

/* Eligibility multi-step wizard */
.eligibility-steps {
  margin-bottom: 1.25rem;
}

.eligibility-step-indicator {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.eligibility-step-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  position: relative;
}

.eligibility-step-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 14px;
  left: calc(50% + 18px);
  width: calc(100% - 36px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.eligibility-step-item.is-done:not(:last-child)::after,
.eligibility-step-item.is-active:not(:last-child)::after {
  background: linear-gradient(90deg, var(--blue), var(--border));
}

.eligibility-step-item.is-done:not(:last-child)::after {
  background: var(--blue);
}

.eligibility-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--bg-soft);
  color: var(--text-muted);
  border: 2px solid var(--border);
  position: relative;
  z-index: 1;
}

.eligibility-step-item.is-active .eligibility-step-num {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.eligibility-step-item.is-done .eligibility-step-num {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.eligibility-step-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.25;
  max-width: 7rem;
}

.eligibility-step-item.is-active .eligibility-step-label {
  color: var(--text);
  font-weight: 700;
}

.eligibility-step-panel.is-hidden {
  display: none;
}

.eligibility-step-heading {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.loan-form-actions--step {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.loan-form-actions--step .btn {
  flex: 1 1 auto;
  min-width: 140px;
}

@media (max-width: 520px) {
  .eligibility-step-label {
    font-size: 0.62rem;
    max-width: 5.5rem;
  }
}

.loan-form-grid.form-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.loan-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
}

.loan-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}

.loan-dob-hint {
  margin: 0.25rem 0 0.65rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.loan-dob-dropdowns {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 0.65rem;
}

.loan-dob-select {
  width: 100%;
  padding: 0.75rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.loan-dob-select:focus {
  outline: 2px solid rgba(0, 123, 255, 0.35);
  border-color: var(--blue);
}

.loan-field.is-invalid .loan-dob-select {
  border-color: #dc2626;
}

.loan-field.is-invalid .loan-dob-select:focus {
  outline-color: rgba(220, 38, 38, 0.35);
}

@media (max-width: 520px) {
  .loan-dob-dropdowns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .loan-field-row {
    grid-template-columns: 1fr;
  }
}

.loan-field-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.loan-field-label abbr {
  text-decoration: none;
  color: #dc2626;
}

.loan-input-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.loan-input-wrap:focus-within {
  outline: 2px solid rgba(0, 123, 255, 0.35);
  border-color: var(--blue);
}

.loan-input-icon {
  display: grid;
  place-items: center;
  width: 2.65rem;
  flex-shrink: 0;
  color: var(--text-muted);
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
}

.loan-input-icon svg {
  display: block;
}

.loan-input-rupee {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-muted);
}

.loan-input-wrap input {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 0.75rem 0.85rem;
  font-family: inherit;
  font-size: 0.95rem;
  background: transparent;
}

.loan-input-wrap input:focus {
  outline: none;
}

.loan-field select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
}

.loan-field select:focus {
  outline: 2px solid rgba(0, 123, 255, 0.35);
  border-color: var(--blue);
}

.loan-field.is-invalid .loan-input-wrap,
.loan-field.is-invalid select,
.loan-field.is-invalid textarea {
  border-color: #dc2626;
}

.loan-field.is-invalid .loan-input-wrap:focus-within {
  outline-color: rgba(220, 38, 38, 0.35);
  border-color: #dc2626;
}

.loan-field-error {
  display: block;
  font-size: 0.78rem;
  color: #dc2626;
  line-height: 1.35;
  min-height: 0;
}

.loan-field-error[hidden] {
  display: none;
}

.loan-field-existing.is-invalid .loan-radio-group {
  outline: 2px solid rgba(220, 38, 38, 0.35);
  border-radius: 8px;
}

.loan-field-existing {
  gap: 0.5rem;
}

.loan-radio-group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
  padding: 0.25rem 0 0.1rem;
  width: 100%;
}

.loan-radio {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
}

.loan-radio span {
  line-height: 1.2;
}

.loan-radio input[type="radio"] {
  width: 1.125rem;
  height: 1.125rem;
  min-width: 1.125rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  flex-shrink: 0;
  accent-color: var(--blue);
  cursor: pointer;
  box-shadow: none;
  outline: none;
}

.loan-radio input[type="radio"]:focus {
  outline: 2px solid rgba(0, 123, 255, 0.35);
  outline-offset: 2px;
}

.loan-existing-emi-wrap.is-hidden {
  display: none !important;
}

.loan-terms-row {
  width: 100%;
  margin-top: 0.35rem;
}

.loan-form-grid .loan-terms-row,
.loan-form-grid .loan-recaptcha,
.loan-form-grid .loan-form-actions {
  width: 100%;
  align-self: stretch;
}

.loan-terms {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.65rem;
  width: 100%;
  max-width: 100%;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
}

.loan-terms-text {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  text-align: left;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.loan-terms input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.2rem 0 0;
  accent-color: var(--blue);
  cursor: pointer;
}

.loan-terms-link {
  color: var(--blue);
  font-weight: 600;
  white-space: nowrap;
}

.loan-terms-link:hover {
  text-decoration: underline;
}

.loan-recaptcha {
  display: flex;
  justify-content: flex-start;
}

.loan-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.25rem;
}

.btn-submit-loan {
  background: var(--blue);
  color: var(--white);
  border: 2px solid var(--blue);
  padding: 0.7rem 1.75rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.btn-submit-loan:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  box-shadow: 0 4px 14px rgba(0, 123, 255, 0.35);
}

.quote-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.quote-card h3 {
  margin: 0 0 1.5rem;
  font-size: 1.25rem;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-grid input:not([type="radio"]):not([type="checkbox"]),
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
}

.form-grid input:not([type="radio"]):not([type="checkbox"]):focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: 2px solid rgba(0, 123, 255, 0.35);
  border-color: var(--blue);
}

.form-message {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.form-message.success {
  color: var(--success);
}

.form-message.error {
  color: #dc2626;
}

@media (max-width: 960px) {
  .loan-apply-grid {
    grid-template-columns: 1fr;
    border-radius: var(--radius);
  }

  .loan-apply-copy {
    border-right: 1px solid var(--border);
    padding: 2rem 1.5rem;
  }

  .loan-apply-aside {
    padding: 1.5rem 1.25rem 2rem;
  }
}

/* Why us */
.why-us {
  background: var(--white);
}

.why-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.why-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.why-bottom .why-item {
  flex: 1 1 260px;
  max-width: 300px;
}

.why-item {
  text-align: center;
  padding: 1.5rem;
}

.why-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
}

.why-icon.blue {
  background: rgba(0, 123, 255, 0.12);
  color: var(--blue);
}

.why-icon.teal {
  background: rgba(0, 184, 196, 0.15);
  color: var(--teal);
}

.why-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.why-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .why-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .why-top {
    grid-template-columns: 1fr;
  }

  .why-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .why-bottom .why-item {
    max-width: none;
  }
}

.partner-banks-strip {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.partner-banks-label {
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.partner-banks-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.partner-banks-logos li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  max-width: 140px;
  padding: 0.65rem 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.partner-banks-logos img {
  max-height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(0.15);
  opacity: 0.92;
}

.partner-banks-logos li:hover img {
  filter: none;
  opacity: 1;
}

/* Process */
.process {
  background: var(--bg-soft);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.process-steps--connected {
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
}

.process-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  min-height: 100%;
  padding-top: 2.65rem;
  flex-shrink: 0;
}

.process-connector-line {
  display: block;
  width: 100%;
  height: 2px;
  border: none;
  background: repeating-linear-gradient(
    90deg,
    rgba(0, 102, 255, 0.65) 0,
    rgba(0, 102, 255, 0.65) 7px,
    transparent 7px,
    transparent 14px
  );
  position: relative;
}

.process-connector-line::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid rgba(0, 102, 255, 0.65);
}

.step {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  border: 1px solid var(--border);
  text-align: center;
  z-index: 1;
}

.step-num {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 2.5rem;
  font-weight: 800;
  color: #e8eef4;
  line-height: 1;
  user-select: none;
}

.step-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 1rem;
  border-radius: 10px;
  background: rgba(0, 123, 255, 0.1);
  display: grid;
  place-items: center;
  color: var(--blue);
}

.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .process-steps--connected {
    grid-template-columns: 1fr 2.75rem 1fr;
    row-gap: 0;
  }

  /* L-shaped dashed path from step 2 down to step 3 */
  .process-steps--connected > .process-connector:nth-child(4) {
    grid-column: 1 / -1;
    grid-row: 2;
    width: auto;
    height: 3.25rem;
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
  }

  .process-steps--connected > .process-connector:nth-child(4) .process-connector-line {
    width: calc(50% + 1.375rem);
    height: 100%;
    margin-left: auto;
    margin-right: 0;
    background: none;
    border-right: 2px dashed rgba(0, 102, 255, 0.65);
    border-bottom: 2px dashed rgba(0, 102, 255, 0.65);
    border-bottom-right-radius: 14px;
    position: relative;
  }

  .process-steps--connected > .process-connector:nth-child(4) .process-connector-line::after {
    right: auto;
    left: 0;
    top: auto;
    bottom: -1px;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid rgba(0, 102, 255, 0.65);
    border-bottom: none;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .process-steps--connected {
    grid-template-columns: 1fr;
  }

  .process-steps--connected > .process-connector {
    display: flex;
    grid-column: 1;
    width: auto;
    height: 2rem;
    padding: 0 0 0 2.65rem;
    align-items: center;
    justify-content: flex-start;
  }

  .process-steps--connected > .process-connector .process-connector-line {
    width: 2px;
    height: 100%;
    margin: 0;
    background: repeating-linear-gradient(
      180deg,
      rgba(0, 102, 255, 0.65) 0,
      rgba(0, 102, 255, 0.65) 7px,
      transparent 7px,
      transparent 14px
    );
    border: none;
    border-radius: 0;
  }

  .process-steps--connected > .process-connector .process-connector-line::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -1px;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid rgba(0, 102, 255, 0.65);
    border-bottom: none;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.stars {
  color: #fbbf24;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.testimonial-card blockquote {
  margin: 0 0 1.25rem;
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.t-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.t-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.t-meta strong {
  display: block;
  font-size: 0.95rem;
}

.t-meta span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

.section-head.testimonials-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
  max-width: none;
  width: 100%;
  margin-inline: 0;
  margin-bottom: 3rem;
  text-align: left;
}

.testimonials-head .testimonials-head-text {
  flex: 1 1 280px;
  min-width: 0;
  max-width: 720px;
}

.testimonials-head .testimonials-head-text h2,
.testimonials-head .testimonials-head-text p {
  text-align: left;
}

@media (max-width: 768px) {
  .section-head.testimonials-head {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .testimonials-head .testimonials-head-text h2,
  .testimonials-head .testimonials-head-text p {
    text-align: center;
  }

  .site-add-review-btn {
    align-self: center;
  }
}

.site-add-review-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--teal);
  background: rgba(13, 148, 136, 0.08);
  color: var(--teal);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.site-add-review-btn:hover {
  background: rgba(13, 148, 136, 0.14);
  box-shadow: var(--shadow-sm);
}

.site-add-icon {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 700;
}

.review-modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.review-modal-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.review-modal-form .field span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.review-modal-form .field em {
  font-weight: 400;
  color: var(--text-muted);
  font-style: normal;
}

.review-modal-form input,
.review-modal-form select,
.review-modal-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
}

.review-modal-form textarea {
  resize: vertical;
  min-height: 6rem;
}

.review-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.form-msg {
  margin: 0;
  font-size: 0.88rem;
  min-height: 1.25em;
}

#review-modal-msg.form-msg.is-success {
  color: var(--teal);
}

#review-modal-msg.form-msg.is-error {
  color: #b91c1c;
}

/* Track loan modal */
.track-loan-modal .cibil-modal-panel {
  width: min(100%, 480px);
  padding: 2rem 1.75rem 1.5rem;
}

.track-loan-modal .cibil-modal-panel h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding-right: 2rem;
}

.track-loan-modal .cibil-modal-lead {
  margin-bottom: 1.35rem;
  line-height: 1.55;
}

.track-loan-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.track-loan-form .field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  margin: 0;
  cursor: default;
}

.track-loan-form .field > span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy, #0b1f3a);
  line-height: 1.3;
}

.track-loan-form .field input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 2.85rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text, #0f172a);
  background: #f9fafb;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.track-loan-form .field input:hover {
  border-color: #9ca3af;
  background: #fff;
}

.track-loan-form .field input:focus {
  outline: none;
  border-color: var(--blue, #0ea5e9);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

.track-loan-form .field input::placeholder {
  color: #9ca3af;
}

.track-loan-form .field input[type="date"] {
  color-scheme: light;
  min-height: 2.85rem;
}

.track-loan-form .field input[type="tel"] {
  letter-spacing: 0.02em;
}

#track-loan-msg.form-msg {
  margin-top: -0.25rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: transparent;
}

#track-loan-msg.form-msg.is-success {
  color: #0d9488;
  background: rgba(20, 212, 196, 0.1);
}

#track-loan-msg.form-msg.is-error {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.08);
}

.track-loan-actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.65rem;
  margin-top: 0.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border, #e5e7eb);
}

.track-loan-actions .btn {
  width: 100%;
  min-height: 2.85rem;
  font-size: 0.95rem;
  border-radius: 10px;
}

.track-loan-actions .btn-primary {
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.28);
}

@media (min-width: 420px) {
  .track-loan-actions {
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
  }

  .track-loan-actions .btn {
    width: auto;
    min-width: 7.75rem;
    flex: 0 0 auto;
  }

  .track-loan-actions .btn-primary {
    min-width: 8.75rem;
  }
}

.track-loan-result.is-hidden,
.track-loan-form-wrap.is-hidden,
#track-loan-form-wrap.is-hidden {
  display: none;
}

.track-loan-result {
  animation: track-fade-in 0.25s ease;
}

@keyframes track-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.track-result-heading {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy, #0b1f3a);
}

.track-loan-modal .track-status-list {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.75rem;
  background: #f8fafc;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
}

.track-loan-modal .track-status-list > div {
  display: grid;
  grid-template-columns: minmax(7.5rem, 42%) 1fr;
  gap: 0.35rem 1rem;
  align-items: baseline;
}

.track-loan-modal .track-status-list dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.track-loan-modal .track-status-list dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  word-break: break-word;
}

.track-status-pill {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(14, 165, 233, 0.12);
  color: var(--blue-dark);
}

.track-status-pill.is-good {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.track-status-pill.is-warn {
  background: rgba(249, 115, 22, 0.12);
  color: #c2410c;
}

.track-status-pill.is-bad {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.track-res-hint {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  padding: 0.65rem 0.75rem;
  background: rgba(14, 165, 233, 0.06);
  border-radius: 8px;
  border-left: 3px solid var(--blue, #0ea5e9);
}

.track-loan-result .track-loan-actions {
  border-top: none;
  padding-top: 0;
}

.testimonials-loading,
.testimonials-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  padding: 1.5rem 0;
}

/* FAQ */
.faq {
  background: var(--bg-soft);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  text-align: left;
  background: var(--white);
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
}

.faq-q .plus {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-q .plus {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-a-inner {
  padding: 0 1.25rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item.is-open .faq-a {
  max-height: 500px;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: #b8c0cc;
  padding: 4rem 0 1.5rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.site-footer .logo {
  color: var(--white);
}

.footer-brand p {
  margin: 1rem 0 1.25rem;
  line-height: 1.65;
}

.socials {
  display: flex;
  gap: 0.65rem;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: var(--white);
  transition: background 0.2s ease;
}

.socials a:hover {
  background: var(--blue);
}

.footer-col h4 {
  color: var(--white);
  margin: 0 0 1rem;
  font-size: 1rem;
}

.footer-col ul li {
  margin-bottom: 0.55rem;
}

.footer-col a:hover {
  color: var(--white);
}

.contact-line {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.65rem;
}

.contact-line svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--blue);
}

.contact-line a {
  color: inherit;
  text-decoration: none;
}

.contact-line a:hover {
  color: var(--white);
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

.footer-bar a {
  margin-left: 1.25rem;
}

.footer-bar a:first-of-type {
  margin-left: 0;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* —— Reporting portal (dark shell) —— */
.reports-body {
  margin: 0;
  min-height: 100vh;
  background: #0a0e14;
  color: #e6edf3;
  font-family: var(--font);
}

.reports-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0 1.5rem;
  box-shadow: var(--shadow-sm);
}

.reports-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
}

.reports-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.reports-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.reports-kpi {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-sm);
}

.reports-kpi-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.reports-kpi-value {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.reports-filters {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.reports-filters-title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
}

.reports-filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 0.85rem 1rem;
  align-items: end;
}

.reports-filter-span2 {
  grid-column: span 2;
}

@media (max-width: 640px) {
  .reports-filter-span2 {
    grid-column: span 1;
  }
}

.reports-filter-field span {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.reports-filter-field input,
.reports-filter-field select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--white);
}

.reports-filter-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  padding-top: 0.25rem;
}

.reports-chart-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.reports-chart-head {
  margin-bottom: 1rem;
}

.reports-chart-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.reports-chart-help {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.reports-chart-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.reports-chart-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.reports-chart-tab {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-muted);
  cursor: pointer;
}

.reports-chart-tab:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.reports-chart-tab.is-active {
  background: rgba(0, 123, 255, 0.12);
  border-color: var(--blue);
  color: var(--blue);
}

.reports-chart-metric span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.reports-chart-metric select {
  min-width: 12rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font: inherit;
}

.reports-chart-root {
  min-height: 4rem;
}

.reports-chart-bars {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.reports-chart-row {
  display: grid;
  grid-template-columns: minmax(5.5rem, 7.5rem) 1fr minmax(4.5rem, 6.5rem);
  gap: 0.65rem;
  align-items: center;
  font-size: 0.85rem;
}

.reports-chart-lab {
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reports-chart-bar-wrap {
  height: 0.65rem;
  background: rgba(0, 123, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.reports-chart-bar {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  min-width: 2px;
  transition: width 0.25s ease;
}

.reports-chart-amt {
  text-align: right;
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
}

.reports-chart-foot {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.reports-table-wide {
  min-width: 72rem;
}

.reports-empty.is-hidden {
  display: none;
}

.reports-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
}

.reports-title {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.reports-meta {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* —— Admin navbar (reporting dashboard) —— */
.dash-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0;
  box-shadow: var(--shadow-sm);
}

.dash-nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dash-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  color: var(--text);
}

.dash-brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: var(--white);
  font-size: 0.95rem;
}

.dash-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  flex: 1 1 auto;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.dash-links a {
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.dash-links a:hover {
  color: var(--blue);
  background: rgba(0, 123, 255, 0.06);
}

.dash-links a.is-active {
  color: var(--blue);
  background: rgba(0, 123, 255, 0.1);
}

.dash-nav-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.dash-user {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-logout {
  padding: 0.45rem 1rem !important;
  font-size: 0.82rem !important;
}

.reports-login-body .reports-login-wrap {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.reports-login-card {
  width: min(24rem, 100%);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 2rem 1.75rem;
}

.reports-login-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
}

.reports-login-lead {
  margin: 0.5rem 0 1.25rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.reports-login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reports-login-field span {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.reports-login-field input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}

.reports-login-field input:focus {
  outline: 2px solid rgba(0, 123, 255, 0.35);
  outline-offset: 0;
  border-color: var(--blue);
}

.reports-login-submit {
  margin-top: 0.25rem !important;
  width: 100%;
}

.reports-login-foot {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.88rem;
}

.reports-login-foot a {
  color: var(--blue);
}

.reports-login-msg {
  margin-bottom: 1rem !important;
}

.reports-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.reports-main {
  padding: 2rem 0 3rem;
}

.reports-banner {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  background: #fffbeb;
}

.reports-banner.error {
  border-color: #fcd34d;
  color: #78350f;
}

.reports-table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: auto;
}

.reports-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.reports-table th,
.reports-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.reports-table th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.reports-table tbody tr:last-child td {
  border-bottom: none;
}

.reports-table tbody tr:hover td {
  background: rgba(0, 184, 196, 0.04);
}

.reports-table .reports-id {
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  word-break: break-all;
  max-width: 12rem;
}

.reports-empty {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 32rem;
  margin-inline: auto;
}

.reports-empty p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
}

.reports-empty .btn {
  margin-top: 1rem;
  width: auto;
}

@media (max-width: 960px) {
  .dash-nav-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .dash-links {
    justify-content: flex-start;
    order: 3;
    width: 100%;
  }

  .dash-brand {
    order: 1;
  }

  .dash-nav-right {
    order: 2;
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 720px) {
  .reports-table thead {
    display: none;
  }

  .reports-table tr {
    display: block;
    border-bottom: 1px solid var(--border);
    padding: 1rem;
  }

  .reports-table tr:last-child {
    border-bottom: none;
  }

  .reports-table td {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: 0.5rem;
    padding: 0.4rem 0;
    border: none;
    font-size: 0.9rem;
  }

  .reports-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .reports-table .reports-id {
    max-width: none;
    grid-template-columns: 7rem minmax(0, 1fr);
  }

  .reports-actions-cell {
    grid-template-columns: minmax(0, 1fr);
  }

  .reports-actions-cell::before {
    margin-bottom: 0.35rem;
  }
}

/* —— Report portal: edit drawer & documents —— */
.reports-actions-cell {
  white-space: nowrap;
  vertical-align: middle;
}

.btn-report-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 8px;
  border: 1px solid var(--blue);
  background: rgba(0, 123, 255, 0.08);
  color: var(--blue);
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.btn-report-edit:hover {
  background: var(--blue);
  color: var(--white);
}

.report-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 20, 25, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.report-drawer-backdrop.is-open {
  background: rgba(0, 0, 0, 0.65);
  opacity: 1;
  pointer-events: auto;
}

.report-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 210;
  width: min(100%, 32rem);
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--white);
  box-shadow: -12px 0 48px rgba(15, 20, 25, 0.12);
  transform: translateX(100%);
  transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.report-drawer.is-open {
  transform: translateX(0);
}

.report-drawer-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(
    135deg,
    rgba(0, 123, 255, 0.06),
    rgba(0, 184, 196, 0.06)
  );
}

.report-drawer-header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.report-drawer-close {
  appearance: none;
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem 0.4rem;
  border-radius: 6px;
}

.report-drawer-close:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.05);
}

.report-drawer-inner {
  flex: 1;
  overflow: auto;
  padding: 1.25rem 1.35rem 2rem;
}

.report-meta-bar {
  margin: 0 0 1.25rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg-soft);
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.report-meta-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.report-detail-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.report-form-section-title {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal);
}

.report-form-section-title:not(:first-child) {
  margin-top: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.report-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

.report-field-span2 {
  grid-column: 1 / -1;
}

.report-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
}

.report-field-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.report-field input,
.report-field select,
.report-field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
}

.report-field textarea {
  resize: vertical;
  min-height: 6rem;
  line-height: 1.45;
}

.report-field input:focus,
.report-field select:focus,
.report-field textarea:focus {
  outline: 2px solid rgba(0, 123, 255, 0.35);
  border-color: var(--blue);
}

.report-field-check {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.report-field-check input {
  width: auto;
}

.report-docs-card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.report-docs-heading {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.report-docs-help {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.report-docs-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.report-doc-item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0.5rem 0.85rem;
  align-items: start;
  padding: 0.55rem 0.65rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.report-docs-empty {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
  list-style: none;
}

.report-doc-remove {
  padding: 0.35rem 0.65rem !important;
  font-size: 0.75rem !important;
}

.report-doc-thumb-btn {
  grid-row: 1 / span 2;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  overflow: hidden;
  width: 88px;
  flex-shrink: 0;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.report-doc-thumb-btn:hover {
  border-color: var(--blue);
  box-shadow: 0 2px 10px rgba(0, 123, 255, 0.15);
}

.report-doc-thumb-btn:focus-visible {
  outline: 2px solid rgba(0, 123, 255, 0.45);
  outline-offset: 2px;
}

.report-doc-thumb-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 72px;
  background: #eef2f7;
}

.report-doc-thumb-media.is-error {
  background: #fef2f2;
}

.report-doc-thumb-img {
  display: block;
  width: 100%;
  height: 72px;
  object-fit: cover;
}

.report-doc-thumb-frame {
  display: block;
  width: 100%;
  height: 72px;
  border: 0;
  pointer-events: none;
}

.report-doc-thumb-file,
.report-doc-thumb-media.is-error {
  flex-direction: column;
  gap: 0.2rem;
}

.report-doc-thumb-icon {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  background: rgba(11, 31, 58, 0.08);
  font-size: 0.62rem;
  font-weight: 800;
  color: #0b1f3a;
}

.report-doc-details {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.report-doc-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  word-break: break-word;
}

.report-doc-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.report-doc-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.report-doc-actions .btn {
  padding: 0.35rem 0.65rem !important;
  font-size: 0.75rem !important;
}

.report-doc-download {
  text-decoration: none;
}

.rep-doc-preview-panel {
  max-width: min(920px, 96vw);
  width: 100%;
}

.rep-doc-preview-meta-line {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.rep-doc-preview-body {
  min-height: 200px;
  max-height: min(70vh, 640px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rep-doc-preview-loading,
.rep-doc-preview-unavailable {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  width: 100%;
}

.rep-doc-preview-unavailable p {
  margin: 0 0 0.5rem;
}

.report-doc-download-link {
  color: var(--blue);
  font-weight: 600;
}

.rep-doc-preview-img {
  display: block;
  max-width: 100%;
  max-height: min(70vh, 620px);
  margin: 0 auto;
  object-fit: contain;
}

.rep-doc-preview-frame {
  display: block;
  width: 100%;
  min-height: min(70vh, 620px);
  height: min(70vh, 620px);
  border: 0;
  background: #fff;
}

.rep-doc-preview-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.report-upload-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.report-upload-row input[type="file"] {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.82rem;
}

.btn-upload {
  padding: 0.55rem 1rem !important;
  font-size: 0.85rem !important;
}

.report-drawer-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border);
  margin-top: 0.35rem;
  padding-bottom: env(safe-area-inset-bottom);
}

.report-drawer-msg {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  min-height: 1.35em;
}

.report-drawer-msg.is-success {
  color: var(--success);
}

.report-drawer-msg.is-error {
  color: #dc2626;
}

@media (max-width: 520px) {
  .report-form-grid {
    grid-template-columns: 1fr;
  }

  .report-field-span2 {
    grid-column: 1;
  }
}

/* —— MeLoan admin shell (Figma-style dark) —— */
.rep-app {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}

.rep-sidebar {
  width: 15.5rem;
  flex-shrink: 0;
  background: linear-gradient(180deg, #0f1623 0%, #0a0f18 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0.9rem 1rem;
}

.rep-sidebar-brand {
  display: block;
  padding: 0 0.5rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 1rem;
}

.rep-sidebar-logo {
  height: 2rem;
  width: auto;
  max-width: 9.5rem;
  object-fit: contain;
  filter: brightness(1.08);
}

.rep-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.rep-side-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.rep-side-link:hover {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.05);
}

.rep-side-link.is-active {
  color: #fff;
  background: rgba(20, 212, 196, 0.14);
  box-shadow: inset 0 0 0 1px rgba(20, 212, 196, 0.25);
}

.rep-view[hidden] {
  display: none !important;
}

.rep-view-title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.rep-view-lead {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

.rep-settings-card {
  max-width: 32rem;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  background: #121a28;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rep-settings-card p {
  margin: 0 0 0.75rem;
  color: rgba(255, 255, 255, 0.85);
}

.rep-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.reports-chart-card--top {
  margin-bottom: 1.25rem;
}

.rep-side-link.is-disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
}

.rep-side-ico {
  display: grid;
  place-items: center;
  width: 1.35rem;
  flex-shrink: 0;
  opacity: 0.9;
}

.rep-sidebar-foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.rep-sidebar-profile {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.35rem;
}

.rep-sidebar-avatar {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #14d4c4, #0ea5e9);
  color: #0a0e14;
  font-weight: 800;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
}

.rep-sidebar-profile-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
}

.rep-sidebar-profile-role {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}

.rep-workspace {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #0b0f14;
}

.rep-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  padding: 1rem 1.5rem;
  background: rgba(15, 22, 35, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.rep-topbar-titles {
  flex: 0 1 auto;
  min-width: 10rem;
}

.rep-topbar-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(20, 212, 196, 0.85);
}

.rep-topbar-heading {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.rep-search {
  flex: 1 1 14rem;
  max-width: 22rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rep-search-svg {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.35);
}

.rep-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
}

.rep-search-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.rep-search-input:focus {
  outline: none;
}

.rep-topbar-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.rep-icon-btn {
  position: relative;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.75);
  cursor: default;
}

.rep-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 99px;
  background: #f97316;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.rep-user-chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.6rem 0.25rem 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rep-user-chip-av {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #14d4c4, #0ea5e9);
  color: #0a0e14;
  font-weight: 800;
  font-size: 0.78rem;
  display: grid;
  place-items: center;
}

.rep-user-chip-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  max-width: 8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rep-btn-teal {
  background: linear-gradient(135deg, #14d4c4, #0ea5e9) !important;
  border: none !important;
  color: #0a0e14 !important;
  font-weight: 700 !important;
  padding: 0.5rem 1.1rem !important;
  font-size: 0.82rem !important;
  border-radius: 10px !important;
}

.rep-btn-teal:hover {
  filter: brightness(1.06);
  box-shadow: 0 4px 20px rgba(20, 212, 196, 0.35);
}

.rep-main-inner {
  flex: 1;
  overflow: auto;
  padding: 1.25rem 1.5rem 2.5rem;
}

.rep-page-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.rep-page-meta {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
}

.rep-pipeline-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.65rem;
  padding-bottom: 0.35rem;
}

.rep-pipe-tab {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 0.15rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.rep-pipe-tab:hover {
  color: rgba(255, 255, 255, 0.85);
}

.rep-pipe-tab.is-active {
  color: #f97316;
  border-bottom-color: #f97316;
}

.rep-section-label {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

/* Dark cards: KPI, filters, chart, table */
.rep-app .reports-kpi {
  background: #121a28;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.rep-app .reports-kpi-label {
  color: rgba(255, 255, 255, 0.45);
}

.rep-app .reports-kpi-value {
  color: #fff;
}

.reports-filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.reports-filters-head .reports-filters-title {
  margin: 0;
}

.reports-filters-toggle {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(20, 212, 196, 0.45);
  background: rgba(20, 212, 196, 0.1);
  color: #14d4c4;
  cursor: pointer;
  white-space: nowrap;
}

.reports-filters-toggle:hover {
  background: rgba(20, 212, 196, 0.18);
}

.reports-filters.is-collapsed .reports-filters-body {
  display: none;
}

.reports-filter-hint {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: #fdba74;
  font-size: 0.88rem;
  line-height: 1.45;
}

.reports-filter-hint.is-hidden {
  display: none;
}

.rep-app .reports-filters,
.rep-app .reports-chart-card {
  background: #121a28;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.rep-app .reports-filters-title,
.rep-app .reports-chart-title {
  color: #fff;
}

.rep-app .reports-chart-help,
.rep-app .reports-chart-foot {
  color: rgba(255, 255, 255, 0.45);
}

.rep-app .reports-filter-field span,
.rep-app .reports-chart-metric span {
  color: rgba(255, 255, 255, 0.45);
}

.rep-app .reports-filter-field input,
.rep-app .reports-filter-field select,
.rep-app .reports-chart-metric select {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e6edf3;
}

.rep-app .reports-chart-tab {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
}

.rep-app .reports-chart-tab:hover {
  border-color: #14d4c4;
  color: #14d4c4;
}

.rep-app .reports-chart-tab.is-active {
  background: rgba(20, 212, 196, 0.15);
  border-color: #14d4c4;
  color: #14d4c4;
}

.rep-app .reports-table-wrap {
  background: #121a28;
  border-color: rgba(255, 255, 255, 0.08);
}

.rep-app .reports-table th {
  color: rgba(255, 255, 255, 0.45);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.rep-app .reports-table td {
  color: rgba(255, 255, 255, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.rep-app .reports-table tbody tr:hover td {
  background: rgba(20, 212, 196, 0.06);
}

.rep-app .reports-chart-lab {
  color: rgba(255, 255, 255, 0.5);
}

.rep-app .reports-chart-bar-wrap {
  background: rgba(255, 255, 255, 0.06);
}

.rep-app .reports-chart-amt {
  color: #fff;
}

.rep-app .reports-banner.error {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.35);
  color: #fdba74;
}

.rep-app .reports-empty {
  background: #121a28;
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
}

.rep-app .btn-outline {
  border-color: rgba(20, 212, 196, 0.55);
  color: #14d4c4;
  background: transparent;
}

.rep-app .btn-outline:hover {
  background: rgba(20, 212, 196, 0.1);
  color: #5eead4;
}

.rep-app .btn-report-edit {
  border-color: #14d4c4;
  background: rgba(20, 212, 196, 0.1);
  color: #14d4c4;
}

.rep-app .btn-report-edit:hover {
  background: #14d4c4;
  color: #0a0e14;
}

/* Drawer dark */
body.reports-body .report-drawer {
  background: #0f1623;
  color: #e6edf3;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

body.reports-body .report-drawer-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.reports-body .report-drawer-header h2 {
  color: #fff;
}

body.reports-body .report-drawer-close {
  color: rgba(255, 255, 255, 0.55);
}

body.reports-body .report-field-label,
body.reports-body .report-meta-label {
  color: rgba(255, 255, 255, 0.45);
}

body.reports-body .report-field input,
body.reports-body .report-field select,
body.reports-body .report-field textarea {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e6edf3;
}

body.reports-body .report-docs-card {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.08);
}

body.reports-body .report-form-section-title {
  color: #14d4c4;
}

body.reports-body .report-form-section-title:not(:first-child) {
  border-top-color: rgba(255, 255, 255, 0.08);
}

body.reports-body .report-drawer-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.reports-login-body {
  background: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(20, 212, 196, 0.12), transparent),
    #0a0e14;
  min-height: 100vh;
}

.reports-login-card {
  background: #121a28;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.reports-login-title {
  color: #fff;
}

.reports-login-lead {
  color: rgba(255, 255, 255, 0.5);
}

.reports-login-field span {
  color: rgba(255, 255, 255, 0.45);
}

.reports-login-field input {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.reports-login-foot a {
  color: #14d4c4;
}

.reports-kicker {
  color: #14d4c4 !important;
}

@media (max-width: 960px) {
  .rep-app {
    flex-direction: column;
  }

  .rep-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  .rep-sidebar-brand {
    border-bottom: none;
    margin-bottom: 0;
    padding: 0 0.5rem 0 0;
  }

  .rep-sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    flex: 1 1 auto;
  }

  .rep-sidebar-foot {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.65rem;
  }

  .rep-side-link {
    padding: 0.45rem 0.55rem;
    font-size: 0.78rem;
  }

  .rep-topbar-heading {
    font-size: 1rem;
  }
}

/* Applicant document upload (step 2) */
.upload-docs-body .upload-docs-main {
  padding: 2.5rem 0 4rem;
  min-height: calc(100vh - 140px);
  background: linear-gradient(180deg, #f0f4fa 0%, #e8eef8 100%);
}

.upload-docs-container {
  max-width: 920px;
}

.upload-docs-hero {
  margin-bottom: 1.75rem;
  text-align: center;
}

.upload-docs-step {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-teal, #0d9488);
}

.upload-docs-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  color: var(--navy, #0b1f3a);
}

.upload-docs-lead {
  margin: 0 auto;
  max-width: 36rem;
  color: #4b5563;
  line-height: 1.55;
}

.upload-docs-howto {
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0, 102, 255, 0.18);
  box-shadow: 0 4px 16px rgba(0, 102, 255, 0.06);
}

.upload-docs-howto-title {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy, #0b1f3a);
}

.upload-docs-howto-steps {
  margin: 0 0 0.75rem;
  padding-left: 1.2rem;
  color: #374151;
  font-size: 0.88rem;
  line-height: 1.55;
}

.upload-docs-howto-steps li {
  margin-bottom: 0.35rem;
}

.upload-docs-howto-steps li:last-child {
  margin-bottom: 0;
}

.upload-docs-howto-tip {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: rgba(0, 102, 255, 0.08);
  color: #1e40af;
  font-size: 0.84rem;
  line-height: 1.45;
}

.upload-docs-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .upload-docs-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.upload-doc-card {
  background: #fff;
  border: 1px solid rgba(11, 31, 58, 0.1);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 8px 24px rgba(11, 31, 58, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.upload-doc-card.is-complete {
  border-color: rgba(13, 148, 136, 0.45);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.08);
}

.upload-doc-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.upload-doc-title {
  margin: 0;
  font-size: 1.05rem;
  color: var(--navy, #0b1f3a);
}

.upload-doc-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  white-space: nowrap;
}

.upload-doc-status.is-done {
  background: rgba(13, 148, 136, 0.12);
  color: #0d9488;
}

.upload-doc-hint {
  margin: 0;
  font-size: 0.86rem;
  color: #6b7280;
  line-height: 1.45;
}

.upload-doc-preview-pending,
.upload-doc-previews {
  display: grid;
  gap: 0.65rem;
}

.upload-doc-preview-pending[hidden],
.upload-doc-previews[hidden] {
  display: none !important;
}

.upload-doc-preview-tile {
  border: 1px solid rgba(11, 31, 58, 0.1);
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  position: relative;
}

.upload-doc-preview-tile-head {
  display: flex;
  justify-content: flex-end;
  padding: 0.35rem 0.45rem 0;
  min-height: 1.75rem;
}

.upload-doc-delete {
  border: none;
  background: rgba(185, 28, 28, 0.1);
  color: #b91c1c;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}

.upload-doc-delete:hover {
  background: rgba(185, 28, 28, 0.18);
}

.upload-docs-body .site-footer {
  margin-top: 2rem;
}

.upload-doc-preview-tile.is-pending {
  border-style: dashed;
  border-color: rgba(14, 165, 233, 0.45);
  background: rgba(14, 165, 233, 0.04);
}

.upload-doc-preview-media {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2f7;
}

.upload-doc-preview-img {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  background: #e5e7eb;
}

.upload-doc-preview-frame {
  display: block;
  width: 100%;
  height: 200px;
  border: 0;
  background: #fff;
}

.upload-doc-preview-file {
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  text-align: center;
  color: #374151;
  font-size: 0.88rem;
}

.upload-doc-preview-icon {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: rgba(11, 31, 58, 0.08);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0b1f3a;
}

.upload-doc-preview-meta {
  margin: 0;
  padding: 0.5rem 0.65rem 0;
  font-size: 0.8rem;
  color: #4b5563;
  line-height: 1.4;
  word-break: break-word;
}

.upload-doc-preview-open {
  display: inline-block;
  margin: 0.35rem 0.65rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-dark, #0284c7);
}

.upload-doc-preview-open:hover {
  text-decoration: underline;
}

.upload-doc-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  cursor: pointer;
}

.upload-doc-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.upload-doc-filename {
  font-size: 0.82rem;
  color: #6b7280;
  flex: 1 1 100%;
}

.upload-doc-upload {
  align-self: flex-start;
  width: 100%;
}

.upload-doc-card.has-pending-file .upload-doc-upload {
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.25);
  animation: upload-btn-pulse 1.5s ease-in-out infinite;
}

@keyframes upload-btn-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.25);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(0, 102, 255, 0.12);
  }
}

.upload-doc-action-hint {
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
  font-size: 0.8rem;
  line-height: 1.4;
}

.upload-doc-action-hint[hidden] {
  display: none !important;
}

.upload-docs-footer {
  margin-top: 1.75rem;
  text-align: center;
}

.upload-docs-note {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.5;
}

.upload-docs-submit-hint {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: #6b7280;
}

.upload-docs-submit {
  min-width: 220px;
}

.upload-docs-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.upload-docs-card {
  background: #fff;
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(11, 31, 58, 0.1);
}

.upload-docs-card--error h1 {
  color: #b91c1c;
}

.upload-docs-success h2 {
  margin: 0 0 0.5rem;
  color: var(--navy, #0b1f3a);
}

.upload-docs-success p {
  color: #4b5563;
  margin: 0 0 1.25rem;
}

.upload-docs-track-hint {
  font-size: 0.92rem;
}

.upload-docs-success .btn {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.is-hidden {
  display: none !important;
}

/* Terms & conditions popup (public + admin preview) */
.terms-modal-panel--wide {
  width: min(100%, 640px);
  max-height: min(88vh, 820px);
  display: flex;
  flex-direction: column;
}

.terms-modal-body {
  flex: 1;
  overflow-y: auto;
  margin: 0 0 1rem;
  padding-right: 0.25rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text, #374151);
  text-align: left;
}

.terms-modal-body h3 {
  margin: 1.1rem 0 0.4rem;
  font-size: 1rem;
  color: var(--navy, #0b1f3a);
}

.terms-modal-body p {
  margin: 0 0 0.65rem;
}

.terms-modal-body ul {
  margin: 0 0 0.75rem;
  padding-left: 1.2rem;
}

.terms-modal-version {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted, #6b7280);
}

.terms-modal-loading {
  color: var(--text-muted, #6b7280);
  text-align: center;
  padding: 1rem 0;
}

.terms-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border, #e5e7eb);
}

body.reports-body .terms-modal-body {
  color: rgba(255, 255, 255, 0.88);
}

body.reports-body .terms-modal-body h3 {
  color: #fff;
}

body.reports-body .terms-modal-panel {
  background: #0f1623;
  color: #e6edf3;
}

body.reports-body .terms-modal-panel h2 {
  color: #fff;
}

body.reports-body .terms-modal-foot {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.rep-terms-editor {
  max-width: 52rem;
  margin-bottom: 1.25rem;
}

.rep-settings-section-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.rep-terms-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.rep-terms-form textarea {
  width: 100%;
  min-height: 220px;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
  color: #e6edf3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  resize: vertical;
}

.rep-terms-form input[type="text"] {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
  color: #e6edf3;
}

.rep-terms-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

.rep-terms-publish {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
}

.rep-terms-meta {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

.rep-terms-editor .report-drawer-msg.is-success {
  color: #5eead4;
}

.rep-terms-editor .report-drawer-msg.is-error {
  color: #fca5a5;
}

/* CIBIL section toggle (reporting portal settings) */
.rep-cibil-section-settings {
  max-width: 36rem;
  margin-bottom: 1.25rem;
}

.rep-cibil-section-form {
  margin-top: 0.25rem;
}

.rep-cibil-section-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.35rem 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(94, 234, 212, 0.22);
  background: rgba(94, 234, 212, 0.06);
  cursor: pointer;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.rep-cibil-section-toggle:hover {
  background: rgba(94, 234, 212, 0.1);
  border-color: rgba(94, 234, 212, 0.35);
}

.rep-cibil-section-toggle input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: #2dd4bf;
  flex-shrink: 0;
}

.rep-cibil-section-settings .rep-settings-actions {
  margin-top: 0.5rem;
}

#rep-cibil-section-msg.is-success {
  color: #5eead4;
}

#rep-cibil-section-msg.is-error {
  color: #fca5a5;
}

.rep-partner-banks-list {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.rep-partner-banks-empty {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

.rep-partner-bank-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.rep-partner-bank-preview {
  display: grid;
  place-items: center;
  min-height: 56px;
  padding: 0.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
}

.rep-partner-bank-preview img {
  max-height: 40px;
  max-width: 100px;
  width: auto;
  object-fit: contain;
}

.rep-partner-bank-fields .report-field {
  margin: 0;
}

.rep-partner-bank-order {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

.rep-partner-bank-upload-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

.rep-partner-bank-upload-form .rep-settings-actions {
  grid-column: 1 / -1;
}

#rep-partner-banks-msg.is-success {
  color: #5eead4;
}

#rep-partner-banks-msg.is-error {
  color: #fca5a5;
}

@media (max-width: 720px) {
  .rep-partner-bank-card {
    grid-template-columns: 1fr;
  }

  .rep-partner-bank-upload-form {
    grid-template-columns: 1fr;
  }
}

/* Customer reviews (reporting portal) */
.rep-reviews-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.rep-view-lead {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 36rem;
}

.rep-add-review-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(94, 234, 212, 0.45);
  background: rgba(94, 234, 212, 0.12);
  color: #5eead4;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.rep-add-review-btn:hover {
  background: rgba(94, 234, 212, 0.2);
  border-color: #5eead4;
}

.rep-add-icon {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #5eead4;
  color: #0f172a;
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 700;
}

.rep-reviews-header-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.85rem 1rem;
  align-items: end;
}

@media (max-width: 720px) {
  .rep-reviews-header-grid {
    grid-template-columns: 1fr;
  }
}

.rep-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.rep-reviews-empty {
  margin: 0;
  padding: 1.25rem;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

.rep-reviews-empty.is-error {
  border-color: rgba(252, 165, 165, 0.35);
  color: #fca5a5;
}

.rep-review-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
}

.rep-review-item-main {
  flex: 1;
  min-width: 0;
}

.rep-review-item-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.rep-review-item-top strong {
  font-size: 0.98rem;
  color: #f8fafc;
}

.rep-review-badge {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.rep-review-badge.is-live {
  background: rgba(94, 234, 212, 0.15);
  color: #5eead4;
}

.rep-review-badge.is-draft {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.rep-review-badge.is-web {
  background: rgba(96, 165, 250, 0.15);
  color: #93c5fd;
}

.rep-review-role {
  display: block;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.35rem;
}

.rep-review-stars {
  margin: 0 0 0.4rem;
  color: #fbbf24;
  letter-spacing: 2px;
  font-size: 0.9rem;
}

.rep-review-quote {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
  font-style: italic;
}

.rep-review-meta {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

.rep-review-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.rep-review-form input[type="text"],
.rep-review-form input[type="number"],
.rep-review-form select,
.rep-review-form textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
  color: #e6edf3;
}

.rep-review-delete {
  margin-right: auto;
  border-color: rgba(252, 165, 165, 0.45);
  color: #fca5a5;
}

.rep-review-delete:hover {
  background: rgba(252, 165, 165, 0.12);
}

#rep-view-reviews .report-drawer-msg.is-success {
  color: #5eead4;
}

#rep-view-reviews .report-drawer-msg.is-error {
  color: #fca5a5;
}

/* Portal user management */
#rep-view-users.rep-view-users {
  max-width: 100%;
}

#rep-view-users .rep-view-lead.rep-users-lead {
  margin: 0.35rem 0 0;
  max-width: 40rem;
}

.rep-users-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.rep-users-head-text {
  flex: 1;
  min-width: min(100%, 16rem);
}

.rep-add-user-btn {
  flex-shrink: 0;
}

.rep-users-panel,
.rep-users-roles-panel {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, #141d2b 0%, #101722 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.rep-users-panel {
  padding: 0;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.rep-users-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.12);
}

.rep-users-panel-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f8fafc;
}

.rep-users-panel-meta {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.9);
}

.rep-users-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.rep-users-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.rep-users-table thead {
  background: rgba(0, 0, 0, 0.2);
}

.rep-users-table th,
.rep-users-table td {
  padding: 0.95rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.rep-users-table th {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
}

.rep-users-table tbody tr:last-child td {
  border-bottom: none;
}

.rep-users-table tbody tr:not(.rep-users-state-row) {
  transition: background 0.15s ease;
}

.rep-users-table tbody tr:not(.rep-users-state-row):hover td {
  background: rgba(20, 212, 196, 0.05);
}

.rep-users-th-actions,
.rep-users-cell-actions {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}

.rep-users-cell-date {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.rep-user-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.rep-user-avatar {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0f172a;
  background: linear-gradient(145deg, #5eead4 0%, #2dd4bf 100%);
  box-shadow: 0 2px 8px rgba(45, 212, 191, 0.25);
}

.rep-user-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #f8fafc;
  line-height: 1.3;
}

.rep-user-code {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.8rem;
  font-weight: 500;
  color: #99f6e4;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.22);
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
}

.rep-user-role-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.rep-user-role-badge.is-super {
  color: #fcd34d;
  background: rgba(252, 211, 77, 0.12);
  border-color: rgba(252, 211, 77, 0.28);
}

.rep-user-role-badge.is-admin {
  color: #5eead4;
  background: rgba(94, 234, 212, 0.12);
  border-color: rgba(94, 234, 212, 0.28);
}

.rep-user-role-badge.is-viewer {
  color: #93c5fd;
  background: rgba(147, 197, 253, 0.12);
  border-color: rgba(147, 197, 253, 0.28);
}

.rep-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
}

.rep-user-badge.is-active {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.14);
  box-shadow: inset 0 0 0 1px rgba(110, 231, 183, 0.25);
}

.rep-user-badge.is-active::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.8);
}

.rep-user-badge.is-inactive {
  color: rgba(203, 213, 225, 0.65);
  background: rgba(148, 163, 184, 0.12);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.rep-user-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.25rem;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(94, 234, 212, 0.4);
  background: rgba(94, 234, 212, 0.08);
  color: #5eead4;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.rep-user-edit-btn:hover {
  background: rgba(94, 234, 212, 0.18);
  border-color: #5eead4;
  color: #99f6e4;
}

.rep-users-loading,
.rep-users-empty {
  padding: 2.5rem 1.25rem !important;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.rep-users-loading.is-error,
.rep-users-empty.is-error {
  color: #fca5a5;
}

.rep-users-toast {
  margin: 0;
  padding: 0.75rem 1.35rem 1rem;
  font-size: 0.88rem;
}

.rep-users-toast:not(:empty) {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.1);
}

.rep-users-roles-panel {
  padding: 1.25rem 1.35rem 1.35rem;
}

.rep-users-roles-title {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
}

.rep-users-roles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (max-width: 900px) {
  .rep-users-roles-grid {
    grid-template-columns: 1fr;
  }
}

.rep-users-role-card {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.rep-users-role-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.26);
}

.rep-users-role-card h4 {
  margin: 0.55rem 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #f8fafc;
}

.rep-users-role-card p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

.rep-users-role-icon {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.rep-users-role-card.is-super .rep-users-role-icon {
  color: #fcd34d;
  background: rgba(252, 211, 77, 0.15);
}

.rep-users-role-card.is-admin .rep-users-role-icon {
  color: #5eead4;
  background: rgba(94, 234, 212, 0.15);
}

.rep-users-role-card.is-viewer .rep-users-role-icon {
  color: #93c5fd;
  background: rgba(147, 197, 253, 0.15);
}

#rep-user-modal .cibil-modal-panel {
  max-width: 28rem;
}

#rep-user-modal .rep-review-form {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

#rep-view-users .report-drawer-msg.is-success,
.rep-users-toast.is-success {
  color: #5eead4;
}

#rep-view-users .report-drawer-msg.is-error,
.rep-users-toast.is-error {
  color: #fca5a5;
}

@media (max-width: 720px) {
  .rep-users-table {
    min-width: 640px;
  }

  .rep-users-table th,
  .rep-users-table td {
    padding: 0.8rem 1rem;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Viewer read-only mode */
.rep-readonly #rep-add-review-btn,
.rep-readonly #rep-add-user-btn,
.rep-readonly #reports-export-csv,
.rep-readonly #settings-clear-filters,
.rep-readonly #settings-refresh-data,
.rep-readonly .rep-settings-card form .rep-btn-teal,
.rep-readonly .rep-settings-card form .btn-outline,
.rep-readonly #report-edit-form [type="submit"],
.rep-readonly #edit-upload-btn,
.rep-readonly .rep-review-edit-btn,
.rep-readonly .rep-user-edit-btn,
.rep-readonly .rep-partner-bank-delete {
  display: none !important;
}

.rep-readonly #report-edit-form input,
.rep-readonly #report-edit-form select,
.rep-readonly #report-edit-form textarea,
.rep-readonly .rep-settings-card form input,
.rep-readonly .rep-settings-card form textarea,
.rep-readonly .rep-settings-card form select {
  pointer-events: none;
  opacity: 0.72;
}
