/* ==========================================
   R CAPITAL - MICROFINANZAS
   Design System & Global Styles
   ========================================== */

:root {
  /* Colors - Light Theme */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-input: #ffffff;
  --border: #e2e8f0;
  --border-active: #2563eb;

  /* Brand */
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  --accent-glow: rgba(37, 99, 235, 0.1);
  --success: #10b981;
  --success-soft: rgba(16, 185, 129, 0.1);
  --warning: #f59e0b;
  --warning-soft: rgba(245, 158, 11, 0.1);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.1);
  --info: #0ea5e9;
  --info-soft: rgba(14, 165, 233, 0.1);

  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  /* Sizing */
  --sidebar-width: 260px;
  --header-height: 64px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.08);
}

/* ==========================================
   RESET & BASE
   ========================================== */

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

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

/* Gradient background */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 20% 50%, rgba(37, 99, 235, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(14, 165, 233, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(16, 185, 129, 0.02) 0%, transparent 50%);
  z-index: -1;
  animation: subtleMove 30s ease-in-out infinite;
}

@keyframes subtleMove {

  0%,
  100% {
    transform: translate(0, 0);
  }

  33% {
    transform: translate(-2%, 1%);
  }

  66% {
    transform: translate(1%, -2%);
  }
}

/* ==========================================
   SCROLLBAR
   ========================================== */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* ==========================================
   SIDEBAR
   ========================================== */

.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  box-shadow: 1px 0 4px rgba(0, 0, 0, 0.04);
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 32px;
  filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.3));
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nav-menu {
  list-style: none;
  padding: 16px 12px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  margin-bottom: 4px;
  position: relative;
}

.nav-item:hover {
  background: #f1f5f9;
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--accent);
  border-radius: 0 4px 4px 0;
}

.nav-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

.sync-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }

  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
}

/* ==========================================
   MAIN CONTENT
   ========================================== */

.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-header {
  height: var(--header-height);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}

.page-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.header-date {
  font-size: 13px;
  color: var(--text-muted);
}

.views-container {
  flex: 1;
  padding: 28px 32px;
}

/* ==========================================
   VIEWS
   ========================================== */

.view {
  display: none;
  animation: fadeIn 0.3s ease;
}

.view.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   KPI CARDS
   ========================================== */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.kpi-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.kpi-card:nth-child(1)::before {
  background: var(--accent);
}

.kpi-card:nth-child(2)::before {
  background: var(--info);
}

.kpi-card:nth-child(3)::before {
  background: var(--success);
}

.kpi-card:nth-child(4)::before {
  background: var(--warning);
}

.kpi-card:nth-child(5)::before {
  background: var(--danger);
}

.kpi-card:nth-child(6)::before {
  background: var(--success);
}

.kpi-card:nth-child(7)::before {
  background: var(--warning);
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow);
}

.kpi-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.kpi-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.kpi-value.currency {
  font-size: 22px;
}

.kpi-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 24px;
  opacity: 0.4;
}

/* ==========================================
   CARDS
   ========================================== */

.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: #cbd5e1;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.card-header h3 {
  font-size: 15px;
  font-weight: 600;
}

.card-body {
  padding: 20px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ==========================================
   TOOLBAR & FILTERS
   ========================================== */

.view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  transition: border-color 0.2s;
  flex: 1;
  max-width: 400px;
}

.search-box:focus-within {
  border-color: var(--accent);
}

.search-icon {
  font-size: 16px;
  margin-right: 8px;
}

.search-input {
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  padding: 10px 0;
  width: 100%;
  outline: none;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.filter-group {
  display: flex;
  gap: 8px;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  color: white;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: #f1f5f9;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-large {
  padding: 14px 36px;
  font-size: 16px;
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #059669);
  color: white;
}

/* ==========================================
   TABLES
   ========================================== */

.table-responsive {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-secondary);
}

.data-table tr {
  transition: background 0.15s;
}

.data-table tbody tr:hover {
  background: #f8fafc;
}

.data-table td:first-child {
  color: var(--text-primary);
  font-weight: 500;
}

/* ==========================================
   BADGES
   ========================================== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-activo {
  background: var(--success-soft);
  color: var(--success);
}

.badge-completado {
  background: var(--info-soft);
  color: var(--info);
}

.badge-pendiente {
  background: var(--warning-soft);
  color: var(--warning);
}

.badge-pagado {
  background: var(--success-soft);
  color: var(--success);
}

.badge-vencido {
  background: var(--danger-soft);
  color: var(--danger);
}

/* ==========================================
   PROGRESS BAR
   ========================================== */

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent), #60a5fa);
  transition: width 0.5s ease;
}

.progress-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================
   MODALS
   ========================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalSlide 0.3s ease;
}

.modal-large {
  max-width: 800px;
}

@keyframes modalSlide {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.modal-close:hover {
  background: #f1f5f9;
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
}

/* ==========================================
   FORMS
   ========================================== */

.form-group {
  margin-bottom: 16px;
  flex: 1;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 60px;
}

.input-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ==========================================
   LOAN PREVIEW
   ========================================== */

.loan-preview {
  background: var(--accent-soft);
  border: 1px solid var(--accent-glow);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 16px;
}

.loan-preview h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--accent);
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.preview-item {
  display: flex;
  flex-direction: column;
}

.preview-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.preview-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.preview-value.highlight {
  color: var(--accent);
}

/* ==========================================
   SYNC PAGE
   ========================================== */

.sync-page {
  max-width: 600px;
  margin: 0 auto;
}

.sync-card {
  text-align: center;
  padding: 40px;
  margin-bottom: 20px;
}

.sync-icon-large {
  font-size: 56px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 15px rgba(37, 99, 235, 0.2));
}

.sync-card h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.sync-card p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.sync-result {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
}

.sync-result.success {
  background: var(--success-soft);
  color: var(--success);
}

.sync-result.error {
  background: var(--danger-soft);
  color: var(--danger);
}

.columns-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.column-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
}

.col-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

/* ==========================================
   PAYMENT LIST (Dashboard)
   ========================================== */

.payment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.payment-item:last-child {
  border-bottom: none;
}

.payment-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.payment-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.payment-detail {
  font-size: 12px;
  color: var(--text-muted);
}

.payment-amount {
  font-weight: 700;
  font-size: 16px;
}

.payment-amount.danger {
  color: var(--danger);
}

.payment-amount.warning {
  color: var(--warning);
}

.empty-state {
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
  font-size: 14px;
}

.empty-state-icon {
  font-size: 36px;
  margin-bottom: 8px;
  opacity: 0.5;
}

.loading {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
}

/* ==========================================
   DETAIL VIEW (inside modal)
   ========================================== */

.detail-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.detail-value.accent {
  color: var(--accent);
}

/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  animation: toastIn 0.3s ease;
  min-width: 280px;
}

.toast.success {
  border-left: 4px solid var(--success);
}

.toast.error {
  border-left: 4px solid var(--danger);
}

.toast.info {
  border-left: 4px solid var(--info);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .menu-toggle {
    display: block;
  }

  .views-container {
    padding: 16px;
  }

  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
  }

  .detail-header {
    grid-template-columns: 1fr;
  }

  .view-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    max-width: 100%;
  }

  .auth-container {
    padding: 24px 16px;
  }
}

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

  .preview-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   AUTH SCREEN
   ========================================== */

.auth-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
}

.auth-screen.active { display: flex; }

/* ---- Brand Panel (Left) ---- */
.auth-brand-panel {
  width: 45%;
  min-width: 340px;
  background: linear-gradient(145deg, #0F172A 0%, #1E1B4B 40%, #312E81 70%, #1E40AF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.auth-brand-panel::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(99,102,241,0.3) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(6,182,212,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.auth-brand-inner { position: relative; z-index: 1; max-width: 360px; width: 100%; }

.auth-brand-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; margin-bottom: 48px;
}

.auth-brand-mark {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #6366F1, #818CF8);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 15px;
  font-family: 'Outfit', sans-serif;
}

.auth-brand-name { font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 700; color: white; }

.auth-brand-content { margin-bottom: 40px; }

.auth-brand-headline {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(26px, 2.5vw, 36px);
  font-weight: 800; color: white;
  line-height: 1.2; letter-spacing: -1px; margin-bottom: 14px;
}

.auth-brand-headline em {
  font-style: normal;
  background: linear-gradient(135deg, #A5B4FC, #67E8F9);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.auth-brand-desc { font-size: 15px; color: rgba(255,255,255,0.6); line-height: 1.7; margin-bottom: 28px; }

.auth-brand-bullets { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }

.auth-brand-bullets li {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; color: rgba(255,255,255,0.8); font-family: 'Outfit', sans-serif;
}

.auth-bullet-check {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(16,185,129,0.2); color: #34D399;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}

.auth-brand-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px; padding: 24px 28px;
  backdrop-filter: blur(10px);
}

.auth-brand-card-label {
  font-size: 12px; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px;
}

.auth-brand-card-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 36px; font-weight: 800; color: white;
  letter-spacing: -1.5px; margin-bottom: 4px;
}

.auth-brand-card-sub { font-size: 13px; color: rgba(255,255,255,0.45); }

/* ---- Form Panel (Right) ---- */
.auth-form-panel {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 48px 40px;
  overflow-y: auto;
  background: #F8FAFC;
}

.auth-form-container { width: 100%; max-width: 440px; }

.auth-form-top { margin-bottom: 32px; }

.auth-back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500; color: #64748B;
  text-decoration: none; transition: color 0.2s;
  font-family: 'Outfit', sans-serif;
}
.auth-back-link:hover { color: #4F46E5; }

.auth-form-header { margin-bottom: 28px; }

.auth-form-title {
  font-family: 'Outfit', sans-serif;
  font-size: 28px; font-weight: 800; color: #0F172A;
  letter-spacing: -0.8px; margin-bottom: 6px;
}

.auth-form-subtitle { font-size: 15px; color: #64748B; font-family: 'Outfit', sans-serif; }

.auth-form {
  background: white; border: 1px solid #E2E8F0;
  border-radius: 20px; padding: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.auth-form .form-group { margin-bottom: 16px; }

.auth-form .form-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: #334155; margin-bottom: 6px; font-family: 'Outfit', sans-serif;
}

/* Icon Input Wrapper */
.auth-input-wrap { position: relative; }

.auth-input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: #94A3B8; display: flex; align-items: center; pointer-events: none;
}

.auth-input-group input {
  width: 100%; padding: 12px 14px 12px 42px;
  border: 1.5px solid #E2E8F0; border-radius: 12px;
  font-size: 14px; font-family: 'Outfit', sans-serif;
  color: #0F172A; background: #F8FAFC;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-input-group input:focus {
  border-color: #4F46E5; background: white;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.auth-input-group input::placeholder { color: #CBD5E1; }

.auth-error {
  color: #EF4444; font-size: 13px; text-align: center;
  min-height: 20px; margin-bottom: 8px; font-family: 'Outfit', sans-serif;
}

.btn-auth-primary {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, #4F46E5, #6366F1);
  color: white; border: none; border-radius: 12px;
  font-size: 15px; font-weight: 700; font-family: 'Outfit', sans-serif;
  cursor: pointer; transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(79,70,229,0.3); margin-top: 4px;
}

.btn-auth-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(79,70,229,0.4); }
.btn-auth-primary:active { transform: translateY(0); }

.auth-toggle {
  text-align: center; font-size: 14px; color: #64748B;
  margin-top: 18px; font-family: 'Outfit', sans-serif;
}

.auth-toggle a { color: #4F46E5; text-decoration: none; font-weight: 600; transition: color 0.2s; }
.auth-toggle a:hover { color: #3730A3; }

.btn-full { width: 100%; justify-content: center; }

@media (max-width: 900px) {
  .auth-brand-panel { display: none; }
  .auth-form-panel { padding: 32px 20px; background: white; }
}
@media (max-width: 480px) {
  .auth-form { padding: 24px 20px; }
  .auth-form-panel { padding: 24px 16px; }
}

/* ==========================================
   APP PANEL LAYOUT
   ========================================== */

.app-panel {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ==========================================
   USER INFO (Sidebar footer)
   ========================================== */

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.user-avatar {
  font-size: 24px;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================
   CLIENT PORTAL - PRESTAMO CARDS
   ========================================== */

.prestamo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.prestamo-card:hover {
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.prestamo-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.prestamo-card-header h3 {
  font-size: 16px;
  font-weight: 700;
  margin-right: 10px;
}

.prestamo-monto {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.prestamo-details {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 12px;
}

.prestamo-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  color: var(--text-secondary);
}

.prestamo-detail .detail-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================
   CLIENT PORTAL - SOLICITUD CARDS
   ========================================== */

.solicitud-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
}

.solicitud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.solicitud-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 10px;
}

.solicitud-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ==========================================
   BLOCKED STATE (Solicitar)
   ========================================== */

.alert-blocked {
  text-align: center;
  padding: 40px 20px;
}

.blocked-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.alert-blocked h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--warning);
}

.alert-blocked p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==========================================
   BUTTON VARIANTS
   ========================================== */

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #dc2626);
  color: white;
}

.btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

/* ==========================================
   RESPONSIVE - CLIENT PORTAL
   ========================================== */

@media (max-width: 768px) {
  .prestamo-details {
    grid-template-columns: 1fr 1fr;
  }

  .prestamo-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .prestamo-details {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   CLIENT PORTAL — VANA-INSPIRED
   ========================================== */

/* App wrapper */
.client-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  background: #f0f2f5;
}

/* ── TOPBAR ── */
.client-topbar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 24px;
  height: 56px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}

.client-topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: 32px;
}

.client-logo-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
  font-family: 'Outfit', sans-serif;
}

.client-logo-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
}

.client-topbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.client-nav-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.client-nav-tab:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.client-nav-tab.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.client-nav-tab svg {
  flex-shrink: 0;
}

.client-topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.client-user-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
}

.client-user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.client-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.client-logout-btn:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

/* ── MAIN AREA ── */
.client-main {
  flex: 1;
  overflow-y: auto;
}

.client-views {
  min-height: 100%;
}

.client-view {
  display: none;
  padding: 32px 24px 48px;
  max-width: 780px;
  margin: 0 auto;
  width: 100%;
}

.client-view.active {
  display: block;
}

/* ── PAGE HEADER ── */
.client-page-header {
  margin-bottom: 28px;
}

.client-page-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  margin-bottom: 4px;
}

.client-page-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

/* ── CARDS ── */
.client-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

/* ── LOADING ── */
.client-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 60px 0;
  color: var(--text-muted);
  font-size: 14px;
}

.client-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── EMPTY STATE ── */
.client-empty-card {
  background: white;
  border-radius: 16px;
  padding: 48px 28px;
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.client-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.client-empty-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-family: 'Outfit', sans-serif;
}

.client-empty-card p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 340px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.btn-client-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-client-cta:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

/* ── LOAN BANK CARDS ── */
.loan-bank-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
}

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

.loan-bank-card-top {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #3b82f6 100%);
  padding: 20px 24px 22px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.loan-bank-card-top.completed {
  background: linear-gradient(135deg, #065f46, #059669);
}

.loan-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.loan-card-badge.green {
  background: rgba(16, 185, 129, 0.3);
}

.loan-card-id {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
}

.loan-card-amount {
  font-size: 28px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.5px;
}

.loan-card-cuota-label {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}

.loan-bank-card-bottom {
  padding: 16px 24px 18px;
}

.loan-card-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.loan-card-meta-item {}
.loan-card-meta-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.loan-card-meta-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.loan-card-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.loan-card-progress-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.loan-card-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #3b82f6);
  border-radius: 999px;
  transition: width 0.5s ease;
}

.loan-card-progress-fill.green {
  background: linear-gradient(90deg, var(--success), #34d399);
}

/* ── SOLICITUD STATUS CARDS ── */
.solicitud-status-card {
  background: white;
  border-radius: 14px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.15s ease;
}

.solicitud-status-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #c7d2fe;
}

.solicitud-status-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.solicitud-status-body {
  flex: 1;
}

.solicitud-status-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.solicitud-status-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.client-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.client-status-badge.pendiente {
  background: var(--warning-soft);
  color: #92400e;
}

.client-status-badge.aceptada {
  background: var(--info-soft);
  color: #0c4a6e;
}

.client-status-badge.aprobada {
  background: var(--success-soft);
  color: #064e3b;
}

.client-status-badge.rechazada {
  background: var(--danger-soft);
  color: #7f1d1d;
}

/* ── WIZARD STEPS ── */
.wizard-steps {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
  padding: 0 4px;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.wizard-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  background: var(--border);
  color: var(--text-muted);
  transition: all 0.3s ease;
  font-family: 'Outfit', sans-serif;
}

.wizard-step.active .wizard-step-num {
  background: var(--accent);
  color: white;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.wizard-step.done .wizard-step-num {
  background: var(--success);
  color: white;
}

.wizard-step-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.wizard-step.active .wizard-step-label {
  color: var(--accent);
  font-weight: 600;
}

.wizard-step.done .wizard-step-label {
  color: var(--success);
}

.wizard-step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 8px;
  margin-bottom: 22px;
  transition: background 0.3s ease;
}

.wizard-step-line.done {
  background: var(--success);
}

/* ── WIZARD PANELS ── */
.wizard-panel {
  display: none;
  animation: fadeSlideIn 0.25s ease;
}

.wizard-panel.active {
  display: block;
}

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

.wizard-panel-title {
  font-size: 22px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.wizard-panel-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.wizard-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  gap: 12px;
}

.btn-wizard-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: auto;
}

.btn-wizard-next:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.btn-wizard-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: none;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-wizard-back:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.btn-wizard-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-wizard-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* ── SIMULATOR (wizard) ── */
.sim-amount-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 28px;
}

.sim-currency {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-muted);
}

.sim-amount-value {
  font-size: 52px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  line-height: 1;
  letter-spacing: -2px;
}

.sim-slider-group {
  margin-bottom: 24px;
}

.sim-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-weight: 500;
}

.sim-slider {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent) 25%, var(--border) 25%, var(--border) 100%);
  outline: none;
  cursor: pointer;
}

.sim-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  border: 2.5px solid var(--accent);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  cursor: pointer;
  transition: all 0.15s ease;
}

.sim-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.sim-slider-bounds {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

.sim-result-card {
  background: #f8faff;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  padding: 18px;
  margin-top: 8px;
}

.sim-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e0e7ff;
}

.sim-result-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sim-result-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.sim-result-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.sim-result-value.accent {
  font-size: 18px;
  color: var(--accent);
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
}

/* ── CONFIRM SUMMARY ── */
.confirm-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.confirm-item {
  background: #f8faff;
  border: 1px solid #e0e7ff;
  border-radius: 10px;
  padding: 14px 16px;
}

.confirm-item-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.confirm-item-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
}

.confirm-item-value.accent {
  color: var(--accent);
  font-size: 20px;
}

.confirm-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: var(--info-soft);
  border-radius: 10px;
  font-size: 13px;
  color: #0369a1;
  line-height: 1.5;
}

.confirm-notice svg {
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── FORM INPUTS (wizard) ── */
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: white;
  color: var(--text-primary);
  transition: all 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .client-topbar {
    padding: 0 16px;
  }
  .client-logo-name,
  .client-user-name {
    display: none;
  }
  .client-nav-tab {
    padding: 7px 10px;
    font-size: 13px;
  }
  .client-view {
    padding: 20px 16px 40px;
  }
  .client-page-title {
    font-size: 22px;
  }
  .wizard-form-grid {
    grid-template-columns: 1fr;
  }
  .confirm-summary {
    grid-template-columns: 1fr;
  }
  .loan-card-meta {
    grid-template-columns: 1fr 1fr;
  }
  .sim-amount-value {
    font-size: 38px;
  }
}