/* ==========================================================================
   Component Library — Buttons, Cards, Tables, Badges, Forms, Modals, Toast
   ========================================================================== */

/* Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: var(--fs-sm); font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  line-height: 1.2;
  white-space: nowrap;
  min-height: 40px;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--color-primary-500); color: #fff; box-shadow: var(--shadow-xs); }
.btn-primary:hover { background: var(--color-primary-600); }
.btn-secondary { background: var(--bg-surface); color: var(--text-primary); border-color: var(--border-default); }
.btn-secondary:hover { background: var(--color-slate-100); }
.btn-danger { background: var(--color-danger-500); color: #fff; }
.btn-danger:hover { background: var(--color-danger-600); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg-surface-alt); color: var(--text-primary); }
.btn-sm { padding: 6px 12px; min-height: 32px; font-size: var(--fs-xs); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Inputs ----------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-4); }
.field label { font-size: var(--fs-xs); font-weight: 600; color: var(--text-secondary); }
.field .required { color: var(--color-danger-500); }
.input, select.input, textarea.input {
  width: 100%;
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font-size: var(--fs-base);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 44px;
}
.input::placeholder { color: var(--text-muted); }
.input:focus { outline: none; border-color: var(--color-primary-400); box-shadow: 0 0 0 3px var(--color-primary-100); }
.input.has-error { border-color: var(--color-danger-500); }
.field-error { font-size: 11px; color: var(--color-danger-600); }
.field-hint { font-size: 11px; color: var(--text-muted); }
.input-icon-wrap { position: relative; }
.input-icon-wrap .input { padding-left: 42px; }
.input-icon-wrap i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 14px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--text-secondary); }
.checkbox-row input { width: 17px; height: 17px; accent-color: var(--color-primary-500); }

/* Cards -------------------------------------------------------------------- */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.card-pad { padding: var(--space-6); }
.card-header { display:flex; align-items:center; justify-content:space-between; padding: var(--space-5) var(--space-6); border-bottom: 1px solid var(--border-subtle); gap: var(--space-3); flex-wrap: wrap; }
.card-header h2 { font-size: var(--fs-md); font-weight: 700; margin: 0; }
.card-header p { margin: 2px 0 0; font-size: var(--fs-xs); color: var(--text-muted); }
.card-body { padding: var(--space-6); }
.card-link { font-size: var(--fs-xs); font-weight: 600; color: var(--color-primary-500); }

/* KPI Cards ------------------------------------------------------------------ */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); margin-bottom: var(--space-6); }
.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.kpi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.kpi-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }
.kpi-card__icon { width: 42px; height: 42px; border-radius: var(--radius-md); display:flex; align-items:center; justify-content:center; font-size: 17px; }
.kpi-card__icon.blue { background: var(--color-primary-50); color: var(--color-primary-600); }
.kpi-card__icon.green { background: var(--color-success-50); color: var(--color-success-600); }
.kpi-card__icon.amber { background: var(--color-warning-50); color: var(--color-warning-600); }
.kpi-card__icon.teal { background: var(--color-secondary-50); color: var(--color-secondary-600); }
.kpi-card__trend { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: var(--radius-full); }
.kpi-card__trend.up { background: var(--color-success-50); color: var(--color-success-700); }
.kpi-card__trend.down { background: var(--color-danger-50); color: var(--color-danger-700); }
.kpi-card__value { font-size: var(--fs-2xl); font-weight: 800; color: var(--text-primary); letter-spacing: -0.02em; }
.kpi-card__label { font-size: var(--fs-xs); color: var(--text-secondary); margin-top: 4px; font-weight: 500; }

/* Status text — plain colored text, intentionally not a badge/pill */
.status-text { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status-text::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.status-success { color: var(--color-success-700); }
.status-warning { color: var(--color-warning-700); }
.status-danger { color: var(--color-danger-700); }
.status-neutral { color: var(--text-primary); }

/* Mohalla label — plain text, intentionally not a badge/pill */
.mohalla-text { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.mohalla-text i { font-size: 11px; color: var(--text-muted); }

/* Amount display --------------------------------------------------------- */
.amount { font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: -0.01em; }
.amount.positive { color: var(--color-success-600); }
.amount.negative { color: var(--color-danger-600); }
.amount.neutral { color: var(--text-primary); }
.amount-sm { font-size: var(--fs-sm); }
.amount-lg { font-size: var(--fs-xl); }

/* Progress bar ------------------------------------------------------------ */
.progress-track { width: 100%; height: 12px; background: var(--color-slate-100); border-radius: var(--radius-full); overflow: hidden; position: relative; }
.progress-fill { height: 100%; border-radius: var(--radius-full); background: linear-gradient(90deg, var(--color-secondary-500), var(--color-primary-500)); transition: width 700ms ease; }
.progress-legend { display: flex; gap: var(--space-6); margin-top: var(--space-4); flex-wrap: wrap; }
.progress-legend__item { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--text-secondary); }
.progress-legend__dot { width: 10px; height: 10px; border-radius: 3px; }

/* Table -------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); }
table.data-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.data-table thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--bg-surface-alt);
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 700;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}
.data-table tbody td {
  padding: var(--space-4);
  font-size: var(--fs-sm);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}
.data-table tbody tr { transition: background var(--transition-fast); }
.data-table tbody tr:hover { background: var(--bg-surface-alt); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .cell-muted { color: var(--text-muted); }
.row-action-btn { width: 32px; height: 32px; border-radius: var(--radius-sm); border: 1px solid var(--border-subtle); background: var(--bg-surface); color: var(--text-secondary); cursor: pointer; display:inline-flex; align-items:center; justify-content:center; }
.row-action-btn:hover { background: var(--color-slate-100); }

.cell-person { display: flex; align-items: center; gap: 10px; }
.cell-person__meta { line-height: 1.25; }
.cell-person__name { font-weight: 600; }
.cell-person__sub { font-size: 11px; color: var(--text-muted); }

/* Toolbar / Filter bar ------------------------------------------------------ */
.toolbar { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-5); flex-wrap: wrap; }
.toolbar-search { flex: 1; min-width: 220px; display:flex; align-items:center; gap:8px; background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 0 var(--space-3); height: 42px; }
.toolbar-search input { border:none; outline:none; background:transparent; width:100%; font-size: var(--fs-sm); }
.toolbar-search i { color: var(--text-muted); }
.select-filter { border: 1px solid var(--border-default); background: var(--bg-surface); border-radius: var(--radius-md); padding: 0 var(--space-3); height: 42px; font-size: var(--fs-sm); color: var(--text-primary); min-width: 140px; }

/* Custom searchable select ----------------------------------------------------- */
.cs-select { position: relative; display: inline-flex; min-width: 140px; }
.cs-select.input { width: 100%; min-width: 0; }
.cs-select.select-filter,
.cs-select.input {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  height: auto !important;
  min-height: 0 !important;
}
.cs-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; clip: rect(0,0,0,0); }

.cs-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.cs-trigger:hover { border-color: var(--color-primary-300); }
.cs-select.cs-open .cs-trigger { border-color: var(--color-primary-400); box-shadow: 0 0 0 3px var(--color-primary-100); }
.cs-trigger__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; flex: 1; }
.cs-trigger i { font-size: 11px; color: var(--text-muted); transition: transform var(--transition-fast); flex-shrink: 0; }
.cs-select.cs-open .cs-trigger i { transform: rotate(180deg); }

.cs-panel {
  display: none;
  position: absolute; top: calc(100% + 6px); left: 0;
  width: max-content;
  min-width: max(100%, 220px);
  max-width: min(320px, calc(100vw - 32px));
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 70;
  overflow: hidden;
}
.cs-select.cs-open .cs-panel { display: block; }
.cs-panel--up { top: auto; bottom: calc(100% + 6px); }
.cs-panel--right { left: auto; right: 0; }

.cs-search-wrap { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border-subtle); }
.cs-search-wrap i { color: var(--text-muted); font-size: 12px; }
.cs-search { border: none; outline: none; background: transparent; width: 100%; font-size: var(--fs-sm); color: var(--text-primary); }

.cs-options { list-style: none; margin: 0; padding: 6px; max-height: 240px; overflow-y: auto; }
.cs-option { padding: 9px 12px; border-radius: var(--radius-sm); font-size: var(--fs-sm); color: var(--text-primary); cursor: pointer; }
.cs-option:hover { background: var(--bg-surface-alt); }
.cs-option--active { background: var(--color-primary-50); color: var(--color-primary-700); font-weight: 600; }
.cs-option--disabled { opacity: 0.4; cursor: not-allowed; }
.cs-option.hidden { display: none; }
.cs-empty { color: var(--text-muted); cursor: default; }
.cs-empty:hover { background: none; }

/* Pagination ---------------------------------------------------------------- */
.pagination-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--space-2) var(--space-1); flex-wrap: wrap; }
.pagination-info { font-size: var(--fs-xs); color: var(--text-muted); display:flex; align-items:center; gap: var(--space-3); }
.pagination-size { border: 1px solid var(--border-default); border-radius: var(--radius-sm); padding: 4px 8px; font-size: var(--fs-xs); background: var(--bg-surface); }
.pagination-controls { display: flex; align-items: center; gap: 6px; }
.page-btn { min-width: 34px; height: 34px; border-radius: var(--radius-sm); border: 1px solid var(--border-subtle); background: var(--bg-surface); color: var(--text-secondary); font-size: var(--fs-xs); font-weight: 600; cursor: pointer; padding: 0 10px; }
.page-btn:hover { background: var(--color-slate-100); }
.page-btn.active { background: var(--color-primary-500); border-color: var(--color-primary-500); color: #fff; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Mobile data cards ----------------------------------------------------------- */
.mobile-card-list { display: none; flex-direction: column; gap: var(--space-3); }
.data-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-4); box-shadow: var(--shadow-xs); }
.data-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); }
.data-card__name { font-weight: 700; font-size: var(--fs-base); }
.data-card__sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.data-card__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); margin: var(--space-3) 0; }
.data-card__metric { text-align: left; }
.data-card__metric-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.data-card__metric-value { font-size: var(--fs-sm); font-weight: 700; margin-top: 2px; }
.data-card__actions { display: flex; gap: 8px; margin-top: var(--space-3); }
.data-card__actions .btn { flex: 1; }
.data-card__menu-btn { width: 36px; height: 36px; border-radius: var(--radius-md); border: 1px solid var(--border-subtle); background: var(--bg-surface); display:flex; align-items:center; justify-content:center; color: var(--text-secondary); flex-shrink: 0; }

/* Modal ------------------------------------------------------------------------ */
.modal-overlay { position: fixed; inset: 0; background: rgba(11,18,32,0.55); display: none; align-items: center; justify-content: center; z-index: 100; padding: var(--space-4); backdrop-filter: blur(2px); }
.modal-overlay.open { display: flex; animation: fadeIn 180ms ease; }
.modal { background: var(--bg-surface); border-radius: var(--radius-xl); width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: modalIn 220ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.modal.modal-lg { max-width: 720px; }
.modal-header { display:flex; align-items:center; justify-content:space-between; padding: var(--space-5) var(--space-6); border-bottom: 1px solid var(--border-subtle); position: sticky; top:0; background: var(--bg-surface); z-index: 2; }
.modal-header h3 { margin: 0; font-size: var(--fs-lg); font-weight: 700; }
.modal-close { width: 32px; height: 32px; border-radius: var(--radius-md); border: none; background: var(--bg-surface-alt); color: var(--text-secondary); cursor: pointer; }
.modal-body { padding: var(--space-6); }
.modal-footer { display:flex; align-items:center; justify-content:flex-end; gap: var(--space-3); padding: var(--space-5) var(--space-6); border-top: 1px solid var(--border-subtle); position: sticky; bottom: 0; background: var(--bg-surface); }
.modal-danger-icon { width:56px; height:56px; border-radius:50%; background: var(--color-danger-50); color: var(--color-danger-600); display:flex; align-items:center; justify-content:center; font-size:22px; margin: 0 auto var(--space-4); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* Bottom sheet (mobile filters) ------------------------------------------------- */
.sheet-overlay { position: fixed; inset: 0; background: rgba(11,18,32,0.5); z-index: 100; display: none; }
.sheet-overlay.open { display: block; }
.bottom-sheet { position: fixed; left: 0; right: 0; bottom: 0; background: var(--bg-surface); border-radius: 20px 20px 0 0; z-index: 101; max-height: 85vh; overflow-y: auto; transform: translateY(100%); transition: transform 260ms cubic-bezier(0.32, 0.72, 0, 1); padding-bottom: env(safe-area-inset-bottom); }
.bottom-sheet.open { transform: translateY(0); }
.bottom-sheet__handle { width: 40px; height: 4px; background: var(--color-slate-300); border-radius: var(--radius-full); margin: 12px auto 4px; }
.bottom-sheet__header { display:flex; align-items:center; justify-content:space-between; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border-subtle); }
.bottom-sheet__body { padding: var(--space-5); }
.bottom-sheet__footer { padding: var(--space-4) var(--space-5); display:flex; gap: var(--space-3); border-top: 1px solid var(--border-subtle); }
.bottom-sheet__footer .btn { flex: 1; }

/* Toast ------------------------------------------------------------------------- */
.toast-container { position: fixed; top: var(--space-5); right: var(--space-5); z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.toast { display: flex; align-items: flex-start; gap: 10px; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-left: 4px solid var(--color-primary-500); box-shadow: var(--shadow-lg); border-radius: var(--radius-md); padding: 14px 16px; animation: toastIn 220ms cubic-bezier(0.34, 1.56, 0.64, 1); font-size: var(--fs-sm); }
.toast.success { border-left-color: var(--color-success-500); }
.toast.warning { border-left-color: var(--color-warning-500); }
.toast.danger { border-left-color: var(--color-danger-500); }
.toast i { margin-top: 2px; }
.toast.success i { color: var(--color-success-600); }
.toast.warning i { color: var(--color-warning-600); }
.toast.danger i { color: var(--color-danger-600); }
.toast-close { margin-left: auto; cursor: pointer; color: var(--text-muted); background:none; border:none; }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateX(24px); } }
.toast.closing { animation: toastOut 180ms ease forwards; }

/* Empty / Error / Loading states ------------------------------------------------ */
.empty-state { text-align: center; padding: var(--space-12) var(--space-6); }
.empty-state__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--bg-surface-alt); display:flex; align-items:center; justify-content:center; margin: 0 auto var(--space-4); color: var(--text-muted); font-size: 24px; }
.empty-state h3 { margin: 0 0 6px; font-size: var(--fs-base); font-weight: 700; }
.empty-state p { margin: 0 0 var(--space-5); color: var(--text-muted); font-size: var(--fs-sm); }

.skeleton { background: linear-gradient(90deg, var(--color-slate-100) 25%, var(--color-slate-200) 37%, var(--color-slate-100) 63%); background-size: 400% 100%; animation: skeletonWave 1.4s ease infinite; border-radius: var(--radius-sm); }
@keyframes skeletonWave { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.skeleton-line { height: 12px; margin-bottom: 8px; border-radius: 4px; }
.skeleton-kpi { height: 118px; border-radius: var(--radius-lg); }
.skeleton-row { height: 52px; border-radius: var(--radius-sm); margin-bottom: 8px; }
.skeleton-chart { height: 280px; border-radius: var(--radius-lg); }

/* Ledger --------------------------------------------------------------------- */
.ledger-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-bottom: var(--space-6); }
.ledger-summary__item { background: var(--bg-surface-alt); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: var(--space-4); }
.ledger-summary__label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 4px; }
.ledger-tx-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: var(--space-4); margin-bottom: var(--space-3); }
.ledger-tx-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.ledger-tx-card__date { font-size: 11px; color: var(--text-muted); }

/* Tabs ------------------------------------------------------------------------- */
.tabs { display: flex; gap: var(--space-2); border-bottom: 1px solid var(--border-subtle); margin-bottom: var(--space-5); overflow-x: auto; }
.tab-btn { padding: 10px 4px; margin-right: var(--space-5); border: none; background: none; font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab-btn.active { color: var(--color-primary-600); border-bottom-color: var(--color-primary-500); }

/* Mohalla card ------------------------------------------------------------------ */
.mohalla-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-xs); transition: box-shadow var(--transition-fast), transform var(--transition-fast); cursor: pointer; }
.mohalla-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.mohalla-card__icon { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--color-secondary-50); color: var(--color-secondary-600); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: var(--space-4); }
.mohalla-card__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); margin: var(--space-4) 0; }
.mohalla-card__stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-muted); }
.mohalla-card__stat-value { font-size: var(--fs-sm); font-weight: 700; margin-top: 2px; }

/* Misc ------------------------------------------------------------------------- */
.divider { height: 1px; background: var(--border-subtle); border: none; margin: var(--space-5) 0; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.info-grid__item .label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 4px; }
.info-grid__item .value { font-size: var(--fs-sm); font-weight: 600; }
.chart-card canvas { max-width: 100%; }
.section-title { font-size: var(--fs-lg); font-weight: 700; margin: 0 0 var(--space-4); }

/* Global search dropdown ------------------------------------------------------ */
.header-search-wrap { position: relative; }
.search-results-dropdown { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); max-height: 360px; overflow-y: auto; z-index: 60; }
.search-results-dropdown.open { display: block; }
.search-result-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border-subtle); transition: background var(--transition-fast); }
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg-surface-alt); }

