body { background: #f8f9fa; font-size: 14px; padding-bottom: 80px; }

/* Bottom Navigation */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 1px solid #dee2e6;
  display: flex; z-index: 1000;
}
.bottom-nav button {
  flex: 1; border: none; background: transparent;
  padding: 10px 4px 8px; display: flex; flex-direction: column;
  align-items: center; gap: 2px; font-size: 10px; color: #6c757d;
  cursor: pointer; transition: color .15s;
}
.bottom-nav button i { font-size: 20px; }
.bottom-nav button.active { color: #0d6efd; }
.bottom-nav button.active i { font-weight: 700; }

/* Panels */
.panel { display: none; }
.panel.active { display: block; }

/* Metric Cards */
.metric-card {
  background: #fff; border-radius: 10px;
  border: 1px solid #e9ecef; padding: 12px 14px;
}
.metric-label { font-size: 11px; color: #6c757d; margin-bottom: 2px; }
.metric-value { font-size: 18px; font-weight: 600; word-break: break-word; }
.metric-sub { font-size: 10px; color: #adb5bd; margin-top: 2px; }

/* Cards & Tables */
.card { border: 1px solid #e9ecef; border-radius: 10px; }
.table { font-size: 13px; }
.table th { font-size: 11px; color: #6c757d; font-weight: 500; border-bottom: 1px solid #e9ecef; }
.table td { vertical-align: middle; border-bottom: 1px solid #f1f3f5; }
.table tbody tr:last-child td { border-bottom: none; }

/* Badges */
.badge-paid    { background: #d1fae5; color: #065f46; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-expense { background: #fee2e2; color: #991b1b; }

/* Empty State */
.empty-state { text-align: center; padding: 2.5rem 1rem; color: #adb5bd; }
.empty-state i { font-size: 32px; display: block; margin-bottom: 8px; }

/* Chart Legend */
.chart-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; color: #6c757d; margin-bottom: 8px; }
.swatch { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-right: 3px; vertical-align: middle; }

/* Cash Input */
.cash-input { width: 100px; text-align: right; font-size: 12px; }
input[type=number]::-webkit-inner-spin-button { opacity: 1; }

/* Misc */
.action-btn  { padding: 3px 7px; font-size: 12px; }
.today-row   { background: #f0f7ff !important; }
.subtab-row  { display: flex; gap: 6px; margin-bottom: 12px; }
.subtab      { padding: 5px 14px; border-radius: 20px; font-size: 12px; border: 1px solid #dee2e6; background: transparent; color: #6c757d; cursor: pointer; }
.subtab.active { background: #0d6efd; color: #fff; border-color: #0d6efd; }
.net-pos { color: #16a34a; }
.net-neg { color: #dc2626; }

/* ── Lock Screen ── */
#lock-screen {
  position: fixed; inset: 0;
  background: linear-gradient(145deg, #0d6efd 0%, #0a4fc4 100%);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity .35s ease, visibility .35s ease;
}
#lock-screen.unlocking {
  opacity: 0; visibility: hidden; pointer-events: none;
}
#lock-box {
  text-align: center; padding: 40px 32px 36px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 20px; backdrop-filter: blur(12px);
  width: 300px;
}
#lock-icon {
  font-size: 40px; color: #fff;
  margin-bottom: 10px;
  transition: transform .3s ease;
}
#lock-icon.open { transform: rotate(-20deg); }
#lock-title    { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 4px; }
#lock-subtitle { font-size: 12px; color: rgba(255,255,255,.7); margin-bottom: 24px; }
#lock-input {
  width: 100%; border: none; border-radius: 12px;
  background: rgba(255,255,255,.2); color: #fff;
  font-size: 22px; letter-spacing: 6px; text-align: center;
  padding: 10px 16px; outline: none;
  transition: background .2s;
}
#lock-input::placeholder { color: rgba(255,255,255,.4); letter-spacing: 2px; font-size: 16px; }
#lock-input:focus { background: rgba(255,255,255,.3); }
#lock-dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 14px;
}
#lock-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.3);
  transition: background .15s, transform .15s;
}
#lock-dots span.filled { background: #fff; transform: scale(1.15); }
#lock-error {
  margin-top: 14px; font-size: 12px; color: #ffd6d6;
  min-height: 18px; font-weight: 500;
}
@keyframes shake {
  0%,100%{transform:translateX(0)}
  20%{transform:translateX(-8px)}
  40%{transform:translateX(8px)}
  60%{transform:translateX(-5px)}
  80%{transform:translateX(5px)}
}
.shake { animation: shake .4s ease; }
