/* ============================================================
   SortMe — Components CSS: Buttons, Cards, Inputs, Badges, Nav
   ============================================================ */

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px var(--space-6);
  font-size: var(--fs-base);
  font-weight: var(--fw-semi);
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--gradient-primary);
  color: var(--clr-white);
  box-shadow: 0 4px 16px rgba(59,91,219,0.35);
}
.btn-primary:hover:not(:disabled) {
  box-shadow: 0 6px 24px rgba(59,91,219,0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--clr-bg);
  color: var(--clr-primary);
  border: 1.5px solid var(--clr-primary);
}
.btn-secondary:hover:not(:disabled) { background: rgba(59,91,219,0.06); }

.btn-ghost {
  background: transparent;
  color: var(--clr-primary);
}
.btn-ghost:hover:not(:disabled) { background: rgba(59,91,219,0.06); }

.btn-danger {
  background: var(--clr-danger);
  color: var(--clr-white);
  box-shadow: 0 4px 16px rgba(239,68,68,0.30);
}

.btn-success {
  background: var(--gradient-success);
  color: var(--clr-white);
  box-shadow: 0 4px 16px rgba(34,197,94,0.30);
}

.btn-full { width: 100%; }
.btn-sm { padding: 10px var(--space-5); font-size: var(--fs-sm); }
.btn-xs { padding: 7px var(--space-4); font-size: var(--fs-xs); border-radius: var(--radius-md); }

.btn-icon {
  width: 44px; height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

/* Loading spinner inside button */
.btn .spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--clr-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '\20B5';
  position: absolute;
  right: -5px;
  bottom: -15px;
  font-size: 5rem;
  font-weight: 900;
  color: var(--clr-primary);
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 0;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card-sm { padding: var(--space-4) var(--space-5); border-radius: var(--radius-lg); }
.card-xs { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); }

.card-primary {
  background: var(--gradient-card);
  color: var(--clr-white);
  box-shadow: var(--shadow-xl);
}

.card-primary p,
.card-primary .label { color: rgba(255,255,255,0.75); }
.card-primary .amount { color: var(--clr-white); }

/* ── Loan Limit Card ─────────────────────────────────────── */
.loan-limit-card {
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  color: var(--clr-text);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-top: -80px;
  z-index: 10;
}

.loan-limit-card::before { display: none; }
.loan-limit-card::after { display: none; }

/* ── Stat Cards ───────────────────────────────────────────── */
.stat-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-sm);
  flex: 0 0 auto;
  min-width: 140px;
  scroll-snap-align: start;
}

.stat-card .stat-label {
  font-size: var(--fs-xs);
  color: var(--clr-muted);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-1);
}

.stat-card .stat-value {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--clr-text);
}

/* ── Menu List Items ─────────────────────────────────────── */
.menu-list { display: flex; flex-direction: column; gap: 2px; }

.menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  border: 1px solid transparent;
}

.menu-item:hover {
  background: var(--clr-bg-alt);
  border-color: var(--clr-border);
  transform: translateX(2px);
}

.menu-item:active { transform: scale(0.99); }

.menu-item .menu-icon {
  width: 44px; height: 44px;
  background: var(--clr-bg);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--clr-primary);
}

.menu-item .menu-text { flex: 1; }
.menu-item .menu-title { font-weight: var(--fw-semi); color: var(--clr-text); font-size: var(--fs-base); }
.menu-item .menu-sub   { font-size: var(--fs-xs); color: var(--clr-muted); margin-top: 2px; }

.menu-item .menu-chevron { color: var(--clr-muted); flex-shrink: 0; }

/* ── Form Inputs ──────────────────────────────────────────── */
.form-group { margin-bottom: var(--space-4); }

.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-text-2);
  margin-bottom: var(--space-2);
}

.form-control {
  width: 100%;
  padding: 14px var(--space-4);
  font-size: var(--fs-base);
  font-family: var(--font);
  color: var(--clr-text);
  background: var(--clr-bg-alt);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  -webkit-appearance: none;
}

.form-control::placeholder { color: var(--clr-muted); }

.form-control:focus {
  border-color: var(--clr-primary);
  background: var(--clr-white);
  box-shadow: 0 0 0 3px rgba(59,91,219,0.12);
}

.form-control.error { border-color: var(--clr-danger); }
.form-control.error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,0.12); }

.form-error {
  font-size: var(--fs-xs);
  color: var(--clr-danger);
  margin-top: var(--space-1);
}

/* Input with icon */
.input-wrap {
  position: relative;
}
.input-wrap .input-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--clr-muted);
  pointer-events: none;
}
.input-wrap .form-control { padding-left: 44px; }

.input-wrap .input-icon-right {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--clr-muted);
  cursor: pointer;
}
.input-wrap.has-right .form-control { padding-right: 44px; }

/* ── OTP Input ────────────────────────────────────────────── */
.otp-group {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
}

.otp-input {
  width: 48px; height: 56px;
  text-align: center;
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-md);
  background: var(--clr-bg-alt);
  outline: none;
  transition: all var(--dur-fast) var(--ease);
  caret-color: var(--clr-primary);
}

.otp-input:focus {
  border-color: var(--clr-primary);
  background: var(--clr-white);
  box-shadow: 0 0 0 3px rgba(59,91,219,0.12);
}

.otp-input.filled {
  border-color: var(--clr-primary);
  background: rgba(59,91,219,0.06);
  color: var(--clr-primary);
}

/* ── Range Slider ─────────────────────────────────────────── */
.range-wrap { position: relative; padding: var(--space-2) 0; }

.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--clr-border);
  outline: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--clr-primary);
  box-shadow: 0 2px 8px rgba(59,91,219,0.4);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease);
}

.range-slider::-webkit-slider-thumb:active { transform: scale(1.2); }

/* ── Toggle Buttons ───────────────────────────────────────── */
.toggle-group {
  display: flex;
  background: var(--clr-bg);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 4px;
}

.toggle-btn {
  flex: 1;
  padding: 10px var(--space-4);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-muted);
  transition: all var(--dur-base) var(--ease);
  text-align: center;
  cursor: pointer;
}

.toggle-btn.active {
  background: var(--clr-primary);
  color: var(--clr-white);
  box-shadow: 0 2px 8px rgba(59,91,219,0.35);
}

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
}

.badge-pending  { background: var(--clr-warning-bg); color: var(--clr-warning); }
.badge-active   { background: rgba(59,91,219,0.1);   color: var(--clr-primary); }
.badge-verified { background: var(--clr-success-bg); color: var(--clr-success); }
.badge-rejected { background: var(--clr-danger-bg);  color: var(--clr-danger); }
.badge-paid     { background: var(--clr-success-bg); color: var(--clr-success); }
.badge-overdue  { background: var(--clr-danger-bg);  color: var(--clr-danger); }
.badge-completed{ background: var(--clr-success-bg); color: var(--clr-success); }
.badge-defaulted{ background: var(--clr-danger-bg);  color: var(--clr-danger); }

/* ── Bottom Navigation ────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-w);
  height: var(--nav-h);
  background: var(--clr-white);
  border-top: 1px solid var(--clr-border-light);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 var(--space-4);
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--space-2) var(--space-4);
  cursor: pointer;
  color: var(--clr-muted);
  transition: color var(--dur-fast) var(--ease);
  min-width: 60px;
}

.nav-item.active { color: var(--clr-primary); }

.nav-item svg { transition: transform var(--dur-fast) var(--ease); }
.nav-item.active svg { transform: translateY(-2px); }

.nav-label {
  font-size: 10px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.3px;
}

.nav-dot {
  width: 5px; height: 5px;
  background: var(--clr-primary);
  border-radius: 50%;
  position: absolute;
  top: 2px; right: 2px;
}

/* ── Page Header ──────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-5) var(--space-4);
  background: var(--clr-white);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--clr-border-light);
  overflow: hidden;
}

.page-header::after {
  content: '\20B5';
  position: absolute;
  right: -10px;
  bottom: -20px;
  font-size: 8rem;
  font-weight: 900;
  color: var(--clr-primary);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 0;
}

.page-header > * {
  position: relative;
  z-index: 1;
}

.page-header h3 { flex: 1; text-align: center; }
.page-header .back-btn { color: var(--clr-text); }
.page-header .spacer { width: 44px; }

/* ── Upload Zone ──────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  background: var(--clr-bg-alt);
}

.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--clr-primary);
  background: rgba(59,91,219,0.04);
}

.upload-zone.uploaded {
  border-color: var(--clr-success);
  background: rgba(34,197,94,0.04);
}

.upload-preview {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-top: var(--space-3);
}

/* ── Camera Preview ───────────────────────────────────────── */
.camera-wrap {
  position: relative;
  width: 200px; height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--space-4);
  background: var(--clr-bg);
  border: 3px solid var(--clr-primary);
  box-shadow: 0 0 0 6px rgba(59,91,219,0.1);
}

.camera-feed {
  width: 100%; height: 100%;
  object-fit: cover;
}

.selfie-preview {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ── Disbursement Option ─────────────────────────────────── */
.disbursement-option {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--clr-white);
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  margin-bottom: var(--space-3);
}

.disbursement-option:hover { border-color: var(--clr-primary-light); }
.disbursement-option.selected {
  border-color: var(--clr-primary);
  background: rgba(59,91,219,0.04);
}

.disbursement-option .option-icon {
  width: 48px; height: 48px;
  background: var(--clr-bg);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--clr-primary);
  flex-shrink: 0;
}

.disbursement-option.selected .option-icon {
  background: rgba(59,91,219,0.1);
}

.disbursement-option .option-text { flex: 1; }
.disbursement-option .option-title { font-weight: var(--fw-semi); color: var(--clr-text); }
.disbursement-option .option-sub   { font-size: var(--fs-sm); color: var(--clr-muted); }

.disbursement-option .radio-dot {
  width: 20px; height: 20px;
  border: 2px solid var(--clr-border);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-fast) var(--ease);
}

.disbursement-option.selected .radio-dot {
  border-color: var(--clr-primary);
}

.disbursement-option.selected .radio-dot::after {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--clr-primary);
}

/* ── Summary Table ────────────────────────────────────────── */
.summary-table { display: flex; flex-direction: column; gap: 0; }

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--clr-border-light);
}

.summary-row:last-child { border-bottom: none; }
.summary-row .s-label { color: var(--clr-muted); font-size: var(--fs-sm); }
.summary-row .s-value { font-weight: var(--fw-semi); color: var(--clr-text); }
.summary-row.highlight .s-value { color: var(--clr-primary); font-size: var(--fs-md); font-weight: var(--fw-bold); }

/* ── Schedule Table ───────────────────────────────────────── */
.schedule-list { display: flex; flex-direction: column; gap: var(--space-2); }

.schedule-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.schedule-item .week-num {
  width: 36px; height: 36px;
  background: var(--clr-bg);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  color: var(--clr-primary);
  flex-shrink: 0;
}

.schedule-item.paid .week-num {
  background: var(--clr-success-bg);
  color: var(--clr-success);
}

.schedule-item.overdue .week-num {
  background: var(--clr-danger-bg);
  color: var(--clr-danger);
}

.schedule-item .week-info { flex: 1; }
.schedule-item .week-label  { font-weight: var(--fw-semi); font-size: var(--fs-sm); }
.schedule-item .week-date   { font-size: var(--fs-xs); color: var(--clr-muted); }
.schedule-item .week-amount { font-weight: var(--fw-bold); color: var(--clr-text); }

/* ── Success Screen ───────────────────────────────────────── */
.success-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-12) var(--space-6);
  gap: var(--space-5);
  flex: 1;
}

.success-icon {
  width: 96px; height: 96px;
  background: var(--clr-success-bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--clr-success);
  animation: checkPop var(--dur-slow) var(--ease) both;
}

/* ── Alert Banner ─────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}

.alert-warning {
  background: var(--clr-warning-bg);
  color: #92400e;
}

.alert-info {
  background: rgba(59,91,219,0.08);
  color: var(--clr-primary-dark);
}

.alert-danger {
  background: var(--clr-danger-bg);
  color: #991b1b;
}

/* ── Checkbox ─────────────────────────────────────────────── */
.checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
}

.checkbox-wrap input[type="checkbox"] { display: none; }

.checkbox-box {
  width: 20px; height: 20px;
  min-width: 20px;
  border: 2px solid var(--clr-border);
  border-radius: 5px;
  background: var(--clr-white);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-fast) var(--ease);
  margin-top: 2px;
}

.checkbox-wrap input:checked + .checkbox-box {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: white;
}

.checkbox-label { font-size: var(--fs-sm); color: var(--clr-muted); line-height: 1.5; }
.checkbox-label a { color: var(--clr-primary); font-weight: var(--fw-medium); }

/* ── Toast Notification ───────────────────────────────────── */
.toast-container {
  position: fixed;
  top: var(--space-5);
  left: 50%; transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: calc(var(--max-w) - 32px);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  box-shadow: var(--shadow-lg);
  animation: slideInRight var(--dur-base) var(--ease) both;
  pointer-events: all;
}

.toast-success { background: var(--clr-success); color: white; }
.toast-error   { background: var(--clr-danger);  color: white; }
.toast-info    { background: var(--clr-primary);  color: white; }
.toast-warning { background: var(--clr-warning);  color: white; }

/* ── Loader Overlay ───────────────────────────────────────── */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  backdrop-filter: blur(4px);
}

.loader {
  width: 44px; height: 44px;
  border: 3px solid var(--clr-border);
  border-top-color: var(--clr-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  display: flex; align-items: center; gap: var(--space-3);
  margin: var(--space-4) 0;
}
.divider::before, .divider::after {
  content: ''; flex: 1;
  height: 1px; background: var(--clr-border);
}
.divider span { font-size: var(--fs-xs); color: var(--clr-muted); white-space: nowrap; }

/* ── KYC Step Indicator ───────────────────────────────────── */
.kyc-steps {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) 0;
}

.kyc-step {
  width: 32px; height: 4px;
  border-radius: var(--radius-full);
  background: var(--clr-border);
  transition: background var(--dur-base) var(--ease);
}

.kyc-step.active  { background: var(--clr-primary); width: 48px; }
.kyc-step.done    { background: var(--clr-success); }

/* ── Modal ────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(26,29,46,0.5);
  z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
  backdrop-filter: blur(2px);
  animation: fadeIn var(--dur-base) var(--ease);
}

.modal-sheet {
  background: var(--clr-white);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  padding: var(--space-6);
  width: 100%;
  max-width: var(--max-w);
  animation: slideUp var(--dur-base) var(--ease);
}

.modal-handle {
  width: 40px; height: 4px;
  background: var(--clr-border);
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-5);
}

.modal-content {
  background: var(--clr-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-xl);
  animation: slideUp var(--dur-base) var(--ease);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}
.modal-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* ── Theme Toggle ─────────────────────────────────────────── */
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  background: transparent;
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity var(--dur-fast) var(--ease);
}
.theme-toggle-btn:hover {
  opacity: 0.8;
}
.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
}
[data-theme="dark"] .theme-toggle-btn .icon-moon { display: none; }
[data-theme="light"] .theme-toggle-btn .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle-btn .icon-sun { display: block; }
[data-theme="light"] .theme-toggle-btn .icon-moon { display: block; }

/* ── Toggle Switch ──────────────────────────────────────────── */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--clr-border);
  border-radius: 26px;
  transition: background var(--dur-fast) var(--ease);
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform var(--dur-fast) var(--ease);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--clr-primary);
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}
