/* ============================================================
   STAR ENTERPRISES — PORTAL & DASHBOARD STYLESHEET
   Clean, modern, high-contrast, responsive financial DSA styling.
   ============================================================ */

/* ---------- Core Portal Layout & Cards ---------- */
.portal-wrap {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding: 32px 20px 60px;
}

.portal-grid-2 {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 32px;
  align-items: start;
}

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

.p-card {
  background: var(--white, #fff);
  border: 1px solid var(--line-2, #cfe3f5);
  border-radius: 18px;
  padding: clamp(20px, 3.2vw, 36px);
  box-shadow: 0 12px 36px -16px rgba(11, 45, 91, 0.12);
  margin-bottom: 24px;
  position: relative;
}

.p-card--hero {
  border-top: 4px solid var(--brand, #0284c7);
}

.p-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line, #e2eef9);
}

.p-title {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  color: var(--ink, #0a2748);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.p-subtitle {
  color: var(--muted, #5b7189);
  font-size: 14px;
  margin-top: 4px;
}

/* ---------- Stepper Wizard Navigation ---------- */
.stepper-nav {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 32px;
  padding: 12px 0 20px;
}

.stepper-nav::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 24px;
  right: 24px;
  height: 3px;
  background: var(--line, #e2eef9);
  z-index: 1;
}

.step-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  cursor: pointer;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white, #fff);
  border: 2px solid var(--muted-2, #7d92a9);
  color: var(--muted, #5b7189);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  transition: all .25s ease;
  margin-bottom: 8px;
}

.step-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted, #5b7189);
  transition: color .25s ease;
}

.step-item.active .step-circle {
  background: var(--brand, #0284c7);
  border-color: var(--brand-d, #025d92);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(2, 132, 199, 0.18);
}

.step-item.active .step-label {
  color: var(--brand-d, #025d92);
}

.step-item.completed .step-circle {
  background: var(--green, #0f9d58);
  border-color: var(--green, #0f9d58);
  color: #fff;
}

.step-item.completed .step-label {
  color: var(--ink, #0a2748);
}

@media (max-width: 640px) {
  .step-label {
    display: none;
  }
}

/* ---------- Form Controls & Fields ---------- */
.portal-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.fg-full {
  grid-column: 1 / -1;
}

.portal-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2, #1d4368);
  margin-bottom: 7px;
}

.portal-field input,
.portal-field select,
.portal-field textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-2, #cfe3f5);
  background: #fff;
  font-size: 14.5px;
  color: var(--ink, #0a2748);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.portal-field input:focus,
.portal-field select:focus,
.portal-field textarea:focus {
  border-color: var(--brand, #0284c7);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.portal-field textarea {
  min-height: 90px;
  resize: vertical;
}

.field-hint {
  font-size: 11.5px;
  color: var(--muted, #5b7189);
  margin-top: 5px;
}

/* Slider Controls */
.range-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.range-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--brand-d, #025d92);
}

input[type=range].portal-range {
  width: 100%;
  accent-color: var(--brand, #0284c7);
  height: 6px;
  border-radius: 4px;
  cursor: pointer;
}

/* Dropzone Upload */
.upload-dropzone {
  border: 2px dashed var(--brand-bd, #b3def7);
  border-radius: 14px;
  background: var(--brand-l, #eaf6fe);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.upload-dropzone:hover {
  background: var(--brand-l2, #cfe9fb);
  border-color: var(--brand, #0284c7);
}

.upload-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--brand, #0284c7);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

.uploaded-docs-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line-2, #cfe3f5);
  border-radius: 8px;
  font-size: 13px;
}

.doc-pill .doc-name {
  font-weight: 600;
  color: var(--ink, #0a2748);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Sidebar Live Summary */
.sidebar-summary {
  position: sticky;
  top: 100px;
}

.summary-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line, #e2eef9);
  font-size: 13.5px;
}

.summary-stat-row:last-child {
  border-bottom: none;
}

.summary-stat-row .stat-label {
  color: var(--muted, #5b7189);
}

.summary-stat-row .stat-val {
  font-weight: 800;
  color: var(--ink, #0a2748);
}

.summary-emi-highlight {
  background: var(--navy, #0b2d5b);
  color: #fff;
  border-radius: 14px;
  padding: 20px;
  margin-top: 20px;
  text-align: center;
}

.summary-emi-highlight .emi-label {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sky, #38bdf8);
  font-weight: 700;
}

.summary-emi-highlight .emi-amount {
  font-size: 32px;
  font-weight: 800;
  margin: 6px 0;
  color: #fff;
}

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.status-pill--review {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.status-pill--verified {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.status-pill--sanctioned {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.status-pill--disbursed {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.status-pill--rejected {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.status-pill--open {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.status-pill--progress {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.status-pill--resolved {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

/* Priority Badges */
.priority-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.priority-urgent {
  background: #dc2626;
  color: #fff;
}

.priority-high {
  background: #ea580c;
  color: #fff;
}

.priority-medium {
  background: #f59e0b;
  color: #fff;
}

.priority-low {
  background: #10b981;
  color: #fff;
}

/* Timeline Stepper for Application Tracking */
.track-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  padding-left: 28px;
  margin-top: 24px;
}

.track-timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 9px;
  width: 2px;
  background: var(--line-2, #cfe3f5);
}

.timeline-node {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand, #0284c7);
  display: grid;
  place-items: center;
}

.timeline-node.done .timeline-dot {
  background: var(--green, #0f9d58);
  border-color: var(--green, #0f9d58);
}

.timeline-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #0a2748);
}

.timeline-time {
  font-size: 11.5px;
  color: var(--muted, #5b7189);
  margin-top: 2px;
}

.timeline-desc {
  font-size: 13.5px;
  color: var(--ink-2, #1d4368);
  margin-top: 4px;
}

/* Support Ticket Chat & Conversation */
.chat-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 480px;
  overflow-y: auto;
  padding: 16px;
  background: var(--tint, #f1f8fe);
  border-radius: 14px;
  border: 1px solid var(--line-2, #cfe3f5);
}

.chat-bubble {
  max-width: 80%;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
  position: relative;
}

.chat-bubble.customer {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line-2, #cfe3f5);
  color: var(--ink, #0a2748);
  border-bottom-left-radius: 4px;
}

.chat-bubble.admin {
  align-self: flex-end;
  background: var(--brand, #0284c7);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-meta {
  font-size: 11px;
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  opacity: .8;
}

.chat-reply-box {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.chat-reply-box textarea {
  flex: 1;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-2, #cfe3f5);
  outline: none;
  font-size: 14px;
  min-height: 60px;
  resize: none;
}

/* ============================================================
   ADMIN DASHBOARD COMPONENT STYLES
   ============================================================ */
.admin-shell {
  min-height: 100vh;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
}

.admin-nav {
  background: var(--navy, #0b2d5b);
  color: #fff;
  padding: 0 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.admin-tabs-bar {
  display: flex;
  background: #fff;
  border-bottom: 1px solid var(--line-2, #cfe3f5);
  padding: 0 24px;
  gap: 8px;
  overflow-x: auto;
}

.admin-tab-btn {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted, #5b7189);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all .2s;
}

.admin-tab-btn:hover {
  color: var(--brand, #0284c7);
}

.admin-tab-btn.active {
  color: var(--brand-d, #025d92);
  border-bottom-color: var(--brand, #0284c7);
}

.admin-tab-badge {
  background: var(--brand-l, #eaf6fe);
  color: var(--brand-d, #025d92);
  padding: 2px 7px;
  border-radius: 100px;
  font-size: 11px;
}

.admin-tab-btn.active .admin-tab-badge {
  background: var(--brand, #0284c7);
  color: #fff;
}

.admin-body {
  padding: 28px 24px 60px;
  max-width: 1400px;
  width: 100%;
  margin-inline: auto;
}

/* Metric / KPI Cards */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.metric-card {
  background: #fff;
  border: 1px solid var(--line-2, #cfe3f5);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 4px 16px rgba(11, 45, 91, 0.05);
  display: flex;
  align-items: center;
  gap: 18px;
}

.metric-ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: none;
}

.metric-ico--blue { background: #e0f2fe; color: #0284c7; }
.metric-ico--green { background: #dcfce7; color: #16a34a; }
.metric-ico--orange { background: #ffedd5; color: #ea580c; }
.metric-ico--purple { background: #f3e8ff; color: #9333ea; }

.metric-data .k {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted, #5b7189);
}

.metric-data .v {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink, #0a2748);
  margin-top: 4px;
  line-height: 1;
}

/* Filter & Search Bar */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.search-input-box {
  position: relative;
  min-width: 280px;
  flex: 1;
  max-width: 420px;
}

.search-input-box input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: 10px;
  border: 1px solid var(--line-2, #cfe3f5);
  font-size: 13.5px;
  outline: none;
}

.search-input-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted, #5b7189);
}

/* Data Tables */
.admin-table-shell {
  background: #fff;
  border: 1px solid var(--line-2, #cfe3f5);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(11, 45, 91, 0.04);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

table.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
  min-width: 840px;
}

table.admin-table th {
  background: var(--tint, #f1f8fe);
  color: var(--navy, #0b2d5b);
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-2, #cfe3f5);
}

table.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line, #e2eef9);
  color: var(--ink-2, #1d4368);
  vertical-align: middle;
}

table.admin-table tr:hover td {
  background: var(--brand-l, #eaf6fe);
}

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

.action-btns {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-mini {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all .2s;
  background: #fff;
  color: var(--ink, #0a2748);
}

.btn-mini--primary {
  background: var(--brand, #0284c7);
  color: #fff;
}
.btn-mini--primary:hover {
  background: var(--brand-d, #025d92);
}

.btn-mini--ghost {
  border-color: var(--line-2, #cfe3f5);
}
.btn-mini--ghost:hover {
  background: var(--tint, #f1f8fe);
  border-color: var(--brand-bd, #b3def7);
}

/* Modals */
.portal-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 26, 47, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

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

.portal-modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  padding: 30px;
  transform: translateY(20px);
  transition: transform .25s ease;
}

.portal-modal-backdrop.open .portal-modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line, #e2eef9);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted, #5b7189);
}

.modal-close-btn:hover {
  color: var(--ink, #0a2748);
}

/* Print Styling */
@media print {
  header, footer, .topbar, .nav, .admin-nav, .admin-tabs-bar, .no-print {
    display: none !important;
  }
  body, .admin-shell {
    background: #fff !important;
    color: #000 !important;
  }
  .p-card, .admin-table-shell {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}

/* ---------- Custom Non-Blocking Portal Toast Notification ---------- */
.portal-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 440px;
  width: calc(100vw - 40px);
}

.portal-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 20px 45px -10px rgba(11, 45, 91, 0.22), 0 0 0 1px rgba(11, 45, 91, 0.08);
  border-left: 5px solid #0284c7;
  animation: toastSlideIn .32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity .25s ease, transform .25s ease;
}

.portal-toast.toast-error {
  border-left-color: #ef4444;
}

.portal-toast.toast-warning {
  border-left-color: #f59e0b;
}

.portal-toast.toast-success {
  border-left-color: #10b981;
}

.portal-toast-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
}

.toast-error .portal-toast-ico {
  background: #fee2e2;
  color: #dc2626;
}

.toast-warning .portal-toast-ico {
  background: #fef3c7;
  color: #d97706;
}

.toast-success .portal-toast-ico {
  background: #d1fae5;
  color: #059669;
}

.portal-toast-body {
  flex: 1;
}

.portal-toast-title {
  font-weight: 800;
  font-size: 13.5px;
  color: #0a2748;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.portal-toast-msg {
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
}

.portal-toast-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
  transition: color .2s;
}

.portal-toast-close:hover {
  color: #0f172a;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastSlideOut {
  to {
    opacity: 0;
    transform: translateY(-15px) scale(0.96);
  }
}

/* Shake invalid input */
.field-invalid {
  border-color: #ef4444 !important;
  background-color: #fffbfa !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16) !important;
  animation: fieldShake .35s ease-in-out;
}

@keyframes fieldShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-3px); }
}

/* ---------- Enhanced Portal Visual Components ---------- */
.portal-hero-enhanced {
  background: #07192e;
  color: #ffffff;
  padding: clamp(48px, 6vw, 76px) 0 40px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.portal-hero-enhanced .eyebrow {
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.portal-hero-enhanced h1 {
  font-size: clamp(30px, 4.2vw, 48px);
  color: #ffffff;
  margin: 12px 0 16px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.portal-hero-enhanced p.lead {
  font-size: clamp(15px, 1.6vw, 17px);
  color: #cfe3f5;
  max-width: 720px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.hero-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-ftag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.hero-ftag svg {
  color: #38bdf8;
  flex-shrink: 0;
}

.live-approval-ticker {
  background: rgba(2, 132, 199, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 10px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #e0f2fe;
  margin-top: 24px;
}

.live-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25);
  animation: pulseGreen 2s infinite;
  flex-shrink: 0;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Category Quick Selector Grid */
.category-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.cat-tile {
  background: #ffffff;
  border: 1.5px solid var(--line-2, #cfe3f5);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all .24s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  user-select: none;
}

.cat-tile:hover {
  transform: translateY(-3px);
  border-color: var(--brand, #0284c7);
  box-shadow: 0 8px 20px -6px rgba(2, 132, 199, 0.18);
}

.cat-tile.active {
  border-color: var(--brand, #0284c7);
  background: #f0f9ff;
  box-shadow: 0 0 0 2px var(--brand, #0284c7);
}

.cat-tile-ico {
  font-size: 26px;
  line-height: 1;
}

.cat-tile-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink, #0a2748);
  line-height: 1.25;
}

.cat-tile-rate {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-d, #0369a1);
  background: rgba(2, 132, 199, 0.1);
  padding: 2px 7px;
  border-radius: 6px;
}

/* Live Lender Quotes Comparison Table */
.lender-quotes-box {
  background: var(--tint, #f4f9fd);
  border: 1px solid var(--line-2, #cfe3f5);
  border-radius: 14px;
  padding: 16px;
  margin-top: 18px;
}

.lender-quote-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-2, #cfe3f5);
}

.lender-quote-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.lender-badge-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lender-circ {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line-2, #cfe3f5);
  font-weight: 800;
  font-size: 11px;
  color: var(--brand, #0284c7);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.lender-name-txt {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink, #0a2748);
}

.lender-rate-txt {
  font-size: 12.5px;
  font-weight: 800;
  color: #059669;
}

.lender-emi-txt {
  font-size: 11.5px;
  color: var(--muted, #5b7189);
  text-align: right;
}

/* Trust Guarantee Badges */
.trust-badges-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line, #e2eef9);
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2, #1e3a5f);
}

.trust-badge-item svg {
  color: var(--brand, #0284c7);
  flex-shrink: 0;
}

/* 4-Step Visual Roadmap */
.roadmap-section {
  margin: 40px 0 20px;
  background: #ffffff;
  border: 1px solid var(--line-2, #cfe3f5);
  border-radius: 18px;
  padding: clamp(24px, 3.5vw, 36px);
  box-shadow: 0 10px 30px -12px rgba(11, 45, 91, 0.08);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
  position: relative;
}

.roadmap-card {
  background: var(--tint, #f4f9fd);
  border: 1px solid var(--line-2, #cfe3f5);
  border-radius: 14px;
  padding: 20px;
  position: relative;
  transition: transform .25s ease, border-color .25s ease;
}

.roadmap-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand, #0284c7);
}

.roadmap-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand, #0284c7);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.roadmap-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink, #0a2748);
  margin-bottom: 6px;
}

.roadmap-desc {
  font-size: 13px;
  color: var(--muted, #5b7189);
  line-height: 1.55;
}

