/* ============================================================
   FinWise AI — app.css
   Dark financial theme with "fw-" prefix classes
   ============================================================ */

:root {
  --fw-bg:       #0f0f1a;
  --fw-surface:  #1a1a2e;
  --fw-surface2: #252540;
  --fw-border:   #2a2a45;
  --fw-text:     #e2e8f0;
  --fw-muted:    #64748b;
  --fw-accent:   #6366f1;
  --fw-accent2:  #8b5cf6;
  --fw-gold:     #f59e0b;
  --fw-success:  #10b981;
  --fw-danger:   #ef4444;
  --fw-warn:     #f59e0b;
  --fw-info:     #06b6d4;
  --fw-sidebar-w: 240px;
  --fw-navbar-h:  60px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body.fw-app {
  background: var(--fw-bg);
  color: var(--fw-text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 14px;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--fw-surface); }
::-webkit-scrollbar-thumb { background: var(--fw-border); border-radius: 3px; }

/* ============================================================
   LAYOUT
   ============================================================ */
.fw-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ── Navbar ── */
.fw-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--fw-navbar-h);
  background: var(--fw-surface);
  border-bottom: 1px solid var(--fw-border);
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  z-index: 1030;
  gap: 1rem;
}

.fw-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fw-text);
  text-decoration: none;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.fw-brand:hover { color: var(--fw-accent); }
.fw-brand .bi { color: var(--fw-gold); }

.fw-navbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Sidebar ── */
.fw-sidebar {
  position: fixed;
  top: var(--fw-navbar-h);
  left: 0;
  bottom: 0;
  width: var(--fw-sidebar-w);
  background: var(--fw-surface);
  border-right: 1px solid var(--fw-border);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1020;
  transition: transform .25s ease;
}

@media (max-width: 991px) {
  .fw-sidebar {
    transform: translateX(calc(-1 * var(--fw-sidebar-w)));
  }
  .fw-sidebar.show {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,.5);
  }
}

.fw-sidenav { padding: 1rem 0; }

.fw-nav-section {
  padding: 0.5rem 1rem 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--fw-muted);
  margin-top: 0.5rem;
}

.fw-navlist { list-style: none; padding: 0; margin: 0; }

.fw-navlink {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.6rem 1rem;
  color: var(--fw-muted);
  text-decoration: none;
  border-radius: 0;
  transition: all .2s;
  font-size: 0.875rem;
  border-left: 3px solid transparent;
}
.fw-navlink:hover {
  color: var(--fw-text);
  background: var(--fw-surface2);
  border-left-color: var(--fw-accent);
}
.fw-navlink.active {
  color: var(--fw-accent);
  background: rgba(99,102,241,.1);
  border-left-color: var(--fw-accent);
}
.fw-navlink .bi { font-size: 1rem; width: 1.25rem; text-align: center; }

/* Upgrade card in sidebar */
.fw-upgrade-card {
  margin: 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99,102,241,.2), rgba(139,92,246,.2));
  border: 1px solid rgba(99,102,241,.3);
  padding: 1rem;
  text-align: center;
}
.fw-upgrade-card h6 { font-size: .8rem; margin-bottom: .5rem; }
.fw-upgrade-card p { font-size: .7rem; color: var(--fw-muted); margin-bottom: .75rem; }

/* ── Main Content ── */
.fw-main {
  margin-left: var(--fw-sidebar-w);
  margin-top: var(--fw-navbar-h);
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: calc(100vh - var(--fw-navbar-h));
}

@media (max-width: 991px) {
  .fw-main { margin-left: 0; }
}

.fw-page-content {
  padding: 1.5rem;
  max-width: 1400px;
}

.fw-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.fw-page-header h4 { margin-bottom: 0; font-size: 1.25rem; font-weight: 700; }

/* ============================================================
   CARDS
   ============================================================ */
.fw-card {
  background: var(--fw-surface);
  border: 1px solid var(--fw-border);
  border-radius: 12px;
}

.fw-card-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--fw-muted);
}

/* KPI Cards */
.fw-kpi-card {
  background: var(--fw-surface);
  border: 1px solid var(--fw-border);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .375rem;
  transition: transform .2s, box-shadow .2s;
}
.fw-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}

.fw-kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.fw-kpi-value {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--fw-text);
}

.fw-kpi-label {
  font-size: .75rem;
  color: var(--fw-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.fw-kpi-change {
  font-size: .75rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.fw-btn-primary {
  background: var(--fw-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .5rem 1.25rem;
  font-weight: 600;
  font-size: .875rem;
  transition: all .2s;
}
.fw-btn-primary:hover {
  background: #5254e0;
  color: #fff;
  box-shadow: 0 4px 12px rgba(99,102,241,.4);
  transform: translateY(-1px);
}

.fw-btn-ai {
  background: linear-gradient(135deg, var(--fw-accent), var(--fw-accent2));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .5rem 1.25rem;
  font-weight: 600;
  font-size: .875rem;
  transition: all .2s;
}
.fw-btn-ai:hover {
  opacity: .9;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99,102,241,.4);
}

/* ============================================================
   INPUTS
   ============================================================ */
.fw-input,
.fw-input.form-control,
.fw-input.form-select {
  background: var(--fw-surface2) !important;
  border: 1px solid var(--fw-border) !important;
  color: var(--fw-text) !important;
  border-radius: 8px;
}
.fw-input:focus,
.fw-input.form-control:focus,
.fw-input.form-select:focus {
  border-color: var(--fw-accent) !important;
  box-shadow: 0 0 0 .2rem rgba(99,102,241,.25) !important;
  background: var(--fw-surface2) !important;
  color: var(--fw-text) !important;
}
.fw-input::placeholder { color: var(--fw-muted) !important; }
.fw-input option { background: var(--fw-surface2); }

.input-group-text {
  background: var(--fw-surface2) !important;
  border-color: var(--fw-border) !important;
  color: var(--fw-muted) !important;
}

/* ============================================================
   AUTH PAGES
   ============================================================ */
.fw-auth-body {
  background: var(--fw-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fw-auth-wrapper {
  width: 100%;
  max-width: 960px;
  display: flex;
  min-height: 100vh;
}

.fw-auth-left {
  flex: 1;
  background: linear-gradient(160deg, #1a1a3e 0%, #0f0f2a 100%);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--fw-border);
}

@media (max-width: 767px) {
  .fw-auth-left { display: none; }
}

.fw-auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.fw-auth-card {
  background: var(--fw-surface);
  border: 1px solid var(--fw-border);
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 380px;
}

.fw-auth-features { list-style: none; padding: 0; margin: 0; }
.fw-auth-features li {
  padding: .5rem 0;
  color: #a0aec0;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.fw-auth-features li .bi { color: var(--fw-gold); font-size: 1.1rem; }

/* OTP inputs */
.fw-otp-inputs {
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin: 1rem 0;
}
.fw-otp-digit {
  width: 44px;
  height: 52px;
  background: var(--fw-surface2);
  border: 1px solid var(--fw-border);
  border-radius: 8px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fw-text);
  transition: all .2s;
}
.fw-otp-digit:focus {
  border-color: var(--fw-accent);
  box-shadow: 0 0 0 .2rem rgba(99,102,241,.3);
  outline: none;
}

.fw-timer { font-size: .8rem; color: var(--fw-muted); margin-top: .5rem; }

/* ============================================================
   TABLES
   ============================================================ */
.fw-table th {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--fw-muted);
  border-color: var(--fw-border);
  font-weight: 600;
  white-space: nowrap;
}
.fw-table td { border-color: var(--fw-border); vertical-align: middle; }
.fw-table tbody tr:hover { background: rgba(255,255,255,.03); }

/* ============================================================
   TRANSACTION LIST
   ============================================================ */
.fw-txn-list { display: flex; flex-direction: column; gap: 0; }
.fw-txn-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--fw-border);
  transition: background .15s;
}
.fw-txn-item:last-child { border-bottom: none; }
.fw-txn-item:hover { background: rgba(255,255,255,.02); padding-left: .5rem; border-radius: 8px; }

.fw-txn-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: .9rem;
}
.fw-txn-detail { flex: 1; min-width: 0; }
.fw-txn-name { font-weight: 500; font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fw-txn-meta { font-size: .75rem; color: var(--fw-muted); }
.fw-txn-amount { font-weight: 700; font-size: .875rem; white-space: nowrap; }

/* ============================================================
   AI ADVISOR / CHAT
   ============================================================ */
.fw-advisor-page {
  height: calc(100vh - var(--fw-navbar-h));
  display: flex;
  flex-direction: column;
}

.fw-chat-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  gap: 0;
}

.fw-chat-history {
  width: 260px;
  background: var(--fw-surface);
  border-right: 1px solid var(--fw-border);
  overflow-y: auto;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .fw-chat-history { display: none; }
}

.fw-chat-window {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.fw-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.fw-msg {
  display: flex;
  gap: .75rem;
  max-width: 80%;
}
.fw-msg-user { align-self: flex-end; flex-direction: row-reverse; }

.fw-msg-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  background: var(--fw-surface2);
}
.fw-msg-ai .fw-msg-avatar {
  background: linear-gradient(135deg, var(--fw-accent), var(--fw-accent2));
  color: #fff;
}
.fw-msg-user .fw-msg-avatar { background: var(--fw-surface2); color: var(--fw-text); }

.fw-msg-content {
  background: var(--fw-surface2);
  border: 1px solid var(--fw-border);
  border-radius: 12px;
  padding: .875rem 1rem;
  font-size: .875rem;
  line-height: 1.6;
}
.fw-msg-user .fw-msg-content {
  background: rgba(99,102,241,.15);
  border-color: rgba(99,102,241,.3);
}

.fw-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: .25rem 0;
}
.fw-typing span {
  width: 7px; height: 7px;
  background: var(--fw-accent);
  border-radius: 50%;
  animation: fw-bounce .9s infinite;
}
.fw-typing span:nth-child(2) { animation-delay: .2s; }
.fw-typing span:nth-child(3) { animation-delay: .4s; }

@keyframes fw-bounce {
  0%, 100% { transform: translateY(0); opacity: .7; }
  50% { transform: translateY(-5px); opacity: 1; }
}

.fw-chat-input-area {
  padding: 1rem 1.5rem;
  background: var(--fw-surface);
  border-top: 1px solid var(--fw-border);
}
.fw-chat-input-wrapper {
  display: flex;
  gap: .5rem;
  align-items: flex-end;
}
.fw-chat-input {
  flex: 1;
  background: var(--fw-surface2) !important;
  border: 1px solid var(--fw-border) !important;
  color: var(--fw-text) !important;
  border-radius: 10px;
  resize: none;
  font-size: .875rem;
  padding: .625rem 1rem;
  min-height: 44px;
  max-height: 120px;
}
.fw-chat-input:focus {
  border-color: var(--fw-accent) !important;
  box-shadow: 0 0 0 .2rem rgba(99,102,241,.2) !important;
  outline: none;
}
.fw-chat-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.fw-chat-footer-note { font-size: .7rem; color: var(--fw-muted); text-align: center; margin-top: .5rem; }

/* Conversation history list */
.fw-conv-list { padding: .75rem 0; }
.fw-conv-item {
  padding: .75rem 1rem;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all .15s;
}
.fw-conv-item:hover { background: var(--fw-surface2); }
.fw-conv-item.active { border-left-color: var(--fw-accent); background: rgba(99,102,241,.1); }
.fw-conv-title { font-size: .8rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Query counter */
.fw-queries-exhausted {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem;
  text-align: center;
}

.fw-advisor-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 1rem 1.5rem;
  background: var(--fw-bg);
}
.fw-advisor-suggestions button {
  background: var(--fw-surface2);
  border: 1px solid var(--fw-border);
  color: var(--fw-text);
  border-radius: 20px;
  padding: .375rem .875rem;
  font-size: .75rem;
  transition: all .2s;
  white-space: nowrap;
}
.fw-advisor-suggestions button:hover {
  border-color: var(--fw-accent);
  color: var(--fw-accent);
}

/* AI Response (in cards) */
.fw-ai-response {
  font-size: .875rem;
  line-height: 1.7;
  color: #c9d1d9;
}
.fw-ai-response strong { color: var(--fw-text); }

/* ============================================================
   TAX PLANNER
   ============================================================ */
.fw-regime-card {
  background: var(--fw-surface2);
  border: 2px solid var(--fw-border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all .25s;
}
.fw-regime-best {
  border-color: var(--fw-success);
  box-shadow: 0 0 16px rgba(16,185,129,.15);
}
.fw-regime-badge {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: .25rem .625rem;
  border-radius: 20px;
}
.fw-regime-select { cursor: pointer; }

.fw-calc-display {
  background: var(--fw-surface);
  border: 1px solid var(--fw-border);
  border-radius: 10px;
  padding: 1rem;
  font-size: .85rem;
}
.fw-calc-row {
  display: flex;
  justify-content: space-between;
  padding: .3rem 0;
  border-bottom: 1px dashed var(--fw-border);
}
.fw-calc-row:last-child { border-bottom: none; }
.fw-calc-total {
  font-weight: 700;
  font-size: 1rem;
  border-top: 2px solid var(--fw-border) !important;
  margin-top: .25rem;
  padding-top: .5rem;
}
.fw-calc-highlight { color: var(--fw-gold); font-weight: 700; }

.fw-tip-list { list-style: none; padding: 0; margin: 0; }
.fw-tip {
  padding: .5rem;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .8rem;
  margin-bottom: .375rem;
}
.fw-tip .bi { font-size: 1rem; flex-shrink: 0; margin-top: .1rem; }

/* ============================================================
   STOCK IDEAS
   ============================================================ */
.fw-stock-idea-card {
  background: var(--fw-surface);
  border: 1px solid var(--fw-border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: transform .2s, box-shadow .2s;
  height: 100%;
}
.fw-stock-idea-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  border-color: rgba(99,102,241,.3);
}
.fw-stock-symbol {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: .5px;
  color: var(--fw-text);
}
.fw-stock-rationale {
  font-size: .75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   GOALS
   ============================================================ */
.fw-goal-card {
  background: var(--fw-surface);
  border: 1px solid var(--fw-border);
  border-radius: 12px;
  padding: 1.25rem;
  position: relative;
  height: 100%;
  transition: transform .2s;
}
.fw-goal-card:hover { transform: translateY(-2px); }

.fw-goal-achieved { opacity: .8; }
.fw-goal-achieved-badge {
  position: absolute;
  top: -8px;
  right: 12px;
  font-size: .75rem;
  font-weight: 700;
  background: var(--fw-success);
  color: #fff;
  padding: .25rem .75rem;
  border-radius: 20px;
}

.fw-goal-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ============================================================
   NOTIFICATIONS
   ============================================================ */
.fw-dropdown-notif {
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
}
.fw-notif-header {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--fw-muted);
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--fw-border);
}
.fw-notif-list { padding: 0; }
.fw-notif-badge {
  position: absolute;
  top: -2px; right: -2px;
  background: var(--fw-danger);
  color: #fff;
  border-radius: 50%;
  width: 16px; height: 16px;
  font-size: .6rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* ============================================================
   AVATAR
   ============================================================ */
.fw-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fw-accent), var(--fw-accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  cursor: pointer;
}
.fw-avatar-lg {
  width: 48px; height: 48px;
  font-size: 1rem;
}

/* User name in nav */
.fw-user-name { font-size: .8rem; color: var(--fw-muted); }
.fw-plan-badge { font-size: .6rem; }

/* ============================================================
   HEALTH SCORE
   ============================================================ */
.fw-health-ring {
  width: 100px; height: 100px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  position: relative;
}

/* ============================================================
   SUBSCRIPTION / PRICING
   ============================================================ */
.fw-plan-card {
  background: var(--fw-surface);
  border: 2px solid var(--fw-border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all .25s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.fw-plan-card.featured {
  border-color: var(--fw-accent);
  box-shadow: 0 0 30px rgba(99,102,241,.2);
}
.fw-plan-card.current-plan {
  border-color: var(--fw-success);
}
.fw-plan-price {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}
.fw-plan-period { font-size: .85rem; color: var(--fw-muted); }
.fw-plan-features { list-style: none; padding: 0; margin: 0; flex: 1; }
.fw-plan-features li {
  padding: .4rem 0;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
}
.fw-plan-features li .bi-check2-circle { color: var(--fw-success); }
.fw-plan-features li .bi-x-circle { color: var(--fw-muted); }

/* ============================================================
   ADMIN
   ============================================================ */
.fw-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem 0;
  border-bottom: 1px solid var(--fw-border);
}
.fw-stat-row:last-child { border-bottom: none; }
.fw-value { font-size: 1.25rem; font-weight: 700; }

/* GST Deadline */
.fw-deadline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem;
  border-radius: 8px;
  background: var(--fw-surface2);
  margin-bottom: .5rem;
}

/* Sticky card */
.fw-sticky-card {
  position: sticky;
  top: 1rem;
}

/* ============================================================
   WELCOME BANNER
   ============================================================ */
.fw-welcome-banner {
  background: linear-gradient(135deg, rgba(99,102,241,.15) 0%, rgba(139,92,246,.1) 100%);
  border: 1px solid rgba(99,102,241,.3);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.fw-welcome-banner::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(99,102,241,.15), transparent 70%);
  pointer-events: none;
}

/* ============================================================
   MISCELLANEOUS
   ============================================================ */
.fw-stock-card {
  background: var(--fw-surface);
  border: 1px solid var(--fw-border);
  border-radius: 10px;
  padding: 1rem;
  transition: transform .15s;
}
.fw-stock-card:hover { transform: translateY(-2px); }

/* Modal overrides */
.modal-content {
  background: var(--fw-surface);
  border: 1px solid var(--fw-border);
}
.modal-header { border-bottom-color: var(--fw-border); }
.modal-footer { border-top-color: var(--fw-border); }
.btn-close { filter: invert(1) grayscale(1) brightness(1.5); }

/* Toast/Alert polish */
.alert { border-radius: 10px; }

/* Chart.js canvas */
canvas { max-width: 100%; }

/* Form check */
.form-check-input:checked { background-color: var(--fw-accent); border-color: var(--fw-accent); }
.form-check-input { background-color: var(--fw-surface2); border-color: var(--fw-border); }

/* Badge polish */
.badge { font-weight: 600; }

/* Datalist/Option */
datalist { background: var(--fw-surface2); color: var(--fw-text); }

/* Progress bars */
.progress { background: var(--fw-surface2); }

/* ── Mobile Sidebar Overlay ── */
.fw-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1015;
  display: none;
}
.fw-sidebar-overlay.show { display: block; }

/* ── Print ── */
@media print {
  .fw-navbar, .fw-sidebar, .fw-page-header button { display: none !important; }
  .fw-main { margin: 0 !important; }
}
