/* ═══════════════════════════════════════════════════════════════
   InstantBill User Zone — Premium 2026 Enterprise Design System
   ═══════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=Noto+Sans:wght@400;500;600;700&display=swap');

/* ─── ACCESSIBILITY ─── */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--brand); color: #fff;
  padding: 8px 16px; z-index: 10000;
  transition: top .2s; text-decoration: none;
  font-size: .875rem; font-weight: 500;
}
.skip-link:focus { top: 0; }

/* Focus styles for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ─── DESIGN TOKENS ─── */
:root {
  --brand: #6366F1;
  --brand-hover: #818CF8;
  --brand-dark: #4F46E5;
  --brand-light: rgba(99,102,241,.07);
  --brand-glow: rgba(99,102,241,.25);
  --brand-subtle: #EEF2FF;
  --success: #10B981;
  --success-light: rgba(16,185,129,.08);
  --success-subtle: #ECFDF5;
  --warning: #F59E0B;
  --warning-light: rgba(245,158,11,.08);
  --warning-subtle: #FFFBEB;
  --danger: #EF4444;
  --danger-light: rgba(239,68,68,.08);
  --danger-subtle: #FEF2F2;
  --accent: #10B981;
  --bg: #F7F8FC;
  --surface: #FFFFFF;
  --surface-2: #F1F3F9;
  --surface-3: #E8EBF4;
  --elevated: #FFFFFF;
  --muted: #F1F3F9;
  --hover: #F1F3F9;
  --border: #E2E6F0;
  --border-strong: #CBD1E0;
  --border-focus: #6366F1;
  --text: #0F172A;
  --text-0: #1E293B;
  --text-2: #475569;
  --text-3: #64748B;
  --text-4: #94A3B8;
  --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,.18);
  --shadow-glow: 0 0 60px var(--brand-glow);
  --badge-success-text: #059669;
  --badge-warning-text: #D97706;
  --badge-danger-text: #DC2626;
  --badge-info-text: #6366F1;
  --badge-neutral-bg: #F1F3F9;
  --badge-neutral-text: #475569;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'DM Sans', 'Inter', sans-serif;
  --ease: cubic-bezier(.16,1,.3,1);
  --ease-out: cubic-bezier(.33,1,.68,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --glass-bg: rgba(255,255,255,.72);
  --glass-border: rgba(255,255,255,.45);
  --glass-blur: 20px;
  --transition-fast: .12s var(--ease);
  --transition-base: .2s var(--ease);
  --transition-slow: .35s var(--ease);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; transition: background var(--transition-base), color var(--transition-base); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR — Premium Collapsible
   ═══════════════════════════════════════════════════════════════ */
.sidebar {
  position: fixed; top: 0; left: 0; width: 260px; height: 100vh;
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; z-index: 100;
  transition: transform var(--transition-base), background var(--transition-base), border-color var(--transition-base);
}

/* Sidebar Logo */
.sidebar-logo {
  height: 64px; display: flex; align-items: center; gap: 12px;
  padding: 0 20px; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(99,102,241,.3);
  flex-shrink: 0;
}
.sidebar-logo-icon svg { width: 20px; height: 20px; color: white; }
.sidebar-logo-text {
  font-family: var(--font-display); font-weight: 700; font-size: 1.375rem;
  letter-spacing: -.02em; white-space: nowrap;
}
.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 12px; }

/* Sidebar Search */
.sidebar-search {
  padding: 12px 16px; flex-shrink: 0;
}
.sidebar-search-input {
  width: 100%; padding: 8px 12px 8px 36px; font-size: .8125rem;
  background: var(--muted); border: 1px solid transparent; border-radius: 8px;
  color: var(--text); outline: none; transition: all var(--transition-fast);
}
.sidebar-search-input::placeholder { color: var(--text-3); }
.sidebar-search-input:focus { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-sm); }
.sidebar-search-wrap { position: relative; }
.sidebar-search-wrap svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-3); pointer-events: none; }

/* Sidebar Nav */
.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 12px; }
.nav-section { margin-bottom: 8px; }
.nav-label {
  font-size: .6875rem; font-weight: 600; 
  text-transform: uppercase; letter-spacing: .08em;
  padding: 10px 12px 6px; white-space: nowrap;
  transition: opacity var(--transition-base);
}
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: 10px; color: var(--text-2); text-decoration: none;
  font-size: .875rem; font-weight: 500; transition: all var(--transition-fast);
  position: relative; white-space: nowrap; cursor: pointer;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 1.75; }
.nav-item:hover { background: var(--hover); color: var(--text); }
.nav-item.active {
  background: var(--brand-light); color: var(--brand); font-weight: 600;
}
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; background: var(--brand); border-radius: 0 3px 3px 0;
}
.nav-item .nav-badge {
  margin-left: auto; padding: 1px 7px; font-size: .6875rem; font-weight: 600;
  background: var(--danger); color: white; border-radius: 10px;
}

/* Nav Group (collapsible parent) */
.nav-group-toggle {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: 10px; color: var(--text-2); font-size: .875rem; font-weight: 500;
  transition: all var(--transition-fast); position: relative; white-space: nowrap;
  cursor: pointer; user-select: none; width: 100%; border: none; background: none;
  text-align: left;
}
.nav-group-toggle svg { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 1.75; }
.nav-group-toggle:hover { background: var(--hover); color: var(--text); }
.nav-group-toggle .nav-chevron {
  margin-left: auto; transition: transform .2s var(--ease); flex-shrink: 0;
}
.nav-group-toggle[aria-expanded="true"] .nav-chevron { transform: rotate(90deg); }
.nav-group-children {
  overflow: hidden; max-height: 0; transition: max-height .25s var(--ease);
}
.nav-group-children.open { max-height: 500px; }
.nav-group-children .nav-item {
  padding-left: 40px; font-size: .8125rem;
}
.nav-group-children .nav-item.active::before { left: 28px; }

/* Sidebar Footer */
.sidebar-footer {
  padding: 12px 16px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.sidebar-user-avatar {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: .75rem; font-weight: 600; flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(99,102,241,.25);
}
.sidebar-user-info { overflow: hidden; min-width: 0; transition: opacity var(--transition-base); }
.sidebar-user-name { font-size: .8125rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-email { font-size: .6875rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ═══════════════════════════════════════════════════════════════
   MAIN LAYOUT
   ═══════════════════════════════════════════════════════════════ */
.main { margin-left: 260px; min-height: 100vh; overflow-x: hidden; }

/* ═══════════════════════════════════════════════════════════════
   HEADER — Premium Sticky
   ═══════════════════════════════════════════════════════════════ */
.header {
  height: 64px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 90;
  transition: background var(--transition-base), border-color var(--transition-base);
}
.header-left { display: flex; align-items: center; gap: 14px; }
.header-right { display: flex; align-items: center; gap: 6px; }
.hamburger {
  display: none; padding: 8px; border-radius: 10px; border: none;
  background: transparent; color: var(--text-2); cursor: pointer;
  transition: all var(--transition-fast);
}
.hamburger:hover { background: var(--hover); color: var(--text); }
.page-title { font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; }

/* Header Search */
.header-search {
  position: relative; width: 320px;
}
.header-search input {
  width: 100%; padding: 8px 12px 8px 38px; font-size: .8125rem;
  background: var(--muted); border: 1px solid transparent; border-radius: 10px;
  color: var(--text); outline: none; transition: all var(--transition-fast);
}
.header-search input::placeholder { color: var(--text-3); }
.header-search input:focus { background: var(--surface); border-color: var(--border-focus); box-shadow: 0 0 0 3px var(--brand-light); width: 380px; }
.header-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-3); pointer-events: none; }
.header-search-shortcut {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  padding: 2px 6px; font-size: .6875rem; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border); border-radius: 4px;
  color: var(--text-3); pointer-events: none;
}

/* Theme Toggle */
.theme-toggle {
  padding: 8px; border-radius: 10px; border: none; background: transparent;
  color: var(--text-2); cursor: pointer; transition: all var(--transition-fast);
  display: flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { background: var(--hover); color: var(--text); }
.theme-toggle svg { width: 18px; height: 18px; }

/* Notification Button */
.notification-btn {
  position: relative; padding: 8px; border-radius: 10px; border: none;
  background: transparent; color: var(--text-2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-fast);
}
.notification-btn:hover { background: var(--hover); color: var(--text); }
.notification-btn svg { width: 18px; height: 18px; }
.notification-badge {
  position: absolute; top: 4px; right: 4px; width: 8px; height: 8px;
  background: var(--danger); border-radius: 50%; border: 2px solid var(--surface);
}

/* Profile Button */
.profile-btn {
  display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px;
  border-radius: 10px; border: 1px solid transparent; background: transparent;
  cursor: pointer; transition: all var(--transition-fast);
}
.profile-btn:hover { background: var(--hover); border-color: var(--border); }
.avatar {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: .75rem; font-weight: 600; flex-shrink: 0;
}

/* Dropdown */
.dropdown-menu {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 200px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-xl); padding: 6px; z-index: 150;
  animation: dropdownIn .15s var(--ease);
}
@keyframes dropdownIn { from { opacity: 0; transform: translateY(-4px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.dropdown-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  font-size: .8125rem; color: var(--text-2); border-radius: 8px; cursor: pointer;
  border: none; background: none; width: 100%; text-align: left; transition: all var(--transition-fast);
}
.dropdown-item:hover { background: var(--hover); color: var(--text); }
.dropdown-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ═══════════════════════════════════════════════════════════════
   CONTENT
   ═══════════════════════════════════════════════════════════════ */
.content { padding: 28px; max-width: 1440px; margin: 0 auto; min-width: 0; overflow-x: hidden; }

/* ═══════════════════════════════════════════════════════════════
   CARDS — Premium Glass
   ═══════════════════════════════════════════════════════════════ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}
.card:hover { border-color: var(--border-strong); }
.card-glass {
  background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur)); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 24px;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.card-title { font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }
.card-subtitle { font-size: .8125rem; color: var(--text-2); margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════════
   KPI CARDS — Premium
   ═══════════════════════════════════════════════════════════════ */
.kpi {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 24px;
  transition: all var(--transition-base); position: relative; overflow: hidden;
}
.kpi::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-hover));
  opacity: 0; transition: opacity var(--transition-base);
}
.kpi:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.kpi:hover::before { opacity: 1; }
.kpi-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.kpi-icon svg { width: 20px; height: 20px; }
.kpi-icon.brand { background: var(--brand-light); color: var(--brand); }
.kpi-icon.success { background: var(--success-light); color: var(--success); }
.kpi-icon.warning { background: var(--warning-light); color: var(--warning); }
.kpi-icon.danger { background: var(--danger-light); color: var(--danger); }
.kpi-value { font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.kpi-label { font-size: .8125rem; color: var(--text-2); margin-top: 4px; font-weight: 500; }
.kpi-trend {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .75rem; font-weight: 600; margin-top: 8px; padding: 2px 8px;
  border-radius: 6px;
}
.kpi-trend.up { background: var(--success-subtle); color: var(--success); }
.kpi-trend.down { background: var(--danger-subtle); color: var(--danger); }
.kpi-trend svg { width: 12px; height: 12px; }

/* ═══════════════════════════════════════════════════════════════
   TABLES — Premium Enterprise
   ═══════════════════════════════════════════════════════════════ */
.table-wrap {
  overflow-x: auto; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--surface);
}
.table-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border); gap: 12px; flex-wrap: wrap;
}
.table-toolbar-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.table-toolbar-right { display: flex; align-items: center; gap: 8px; }
.table-search {
  position: relative;
}
.table-search input {
  padding: 7px 12px 7px 34px; font-size: .8125rem; background: var(--muted);
  border: 1px solid transparent; border-radius: 8px; color: var(--text);
  outline: none; width: 220px; transition: all var(--transition-fast);
}
.table-search input:focus { background: var(--surface); border-color: var(--border-focus); box-shadow: 0 0 0 3px var(--brand-light); }
.table-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-3); pointer-events: none; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
thead { position: sticky; top: 0; z-index: 2; }
th {
  padding: 12px 18px; text-align: left; font-weight: 600; color: var(--text-2);
  font-size: .75rem; text-transform: uppercase; letter-spacing: .06em;
  white-space: nowrap; background: var(--muted); border-bottom: 1px solid var(--border);
}
td { padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr { transition: background var(--transition-fast); }
tbody tr:hover { background: var(--hover); }
tbody tr:last-child td { border-bottom: none; }
tbody tr.selected { background: var(--brand-light); }
.table-empty {
  padding: 48px 24px; text-align: center; color: var(--text-3);
}
.table-pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; border-top: 1px solid var(--border); font-size: .8125rem; color: var(--text-2);
}
.table-pagination-btns { display: flex; align-items: center; gap: 4px; }
.table-pagination-btn {
  padding: 6px 10px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); cursor: pointer; font-size: .8125rem;
  transition: all var(--transition-fast);
}
.table-pagination-btn:hover { border-color: var(--border-strong); color: var(--text); }
.table-pagination-btn.active { background: var(--brand); color: white; border-color: var(--brand); }
.table-pagination-btn:disabled { opacity: .4; cursor: not-allowed; }
.table-checkbox {
  width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--border-strong);
  appearance: none; cursor: pointer; transition: all var(--transition-fast); background: var(--surface);
}
.table-checkbox:checked { background: var(--brand); border-color: var(--brand); }
.table-checkbox:checked::after { content: ''; display: block; width: 4px; height: 8px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); margin: 1px auto 0; }
.table-row-actions { display: flex; align-items: center; gap: 4px; }
.table-row-actions button {
  padding: 6px; border-radius: 6px; border: none; background: transparent;
  color: var(--text-3); cursor: pointer; transition: all var(--transition-fast);
}
.table-row-actions button:hover { background: var(--hover); color: var(--text); }
.table-row-actions button svg { width: 16px; height: 16px; }

/* ═══════════════════════════════════════════════════════════════
   BUTTONS — Premium
   ═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px; font-family: inherit; font-size: .8125rem; font-weight: 600;
  border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  transition: all var(--transition-fast); white-space: nowrap; text-decoration: none;
  letter-spacing: -.01em;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary {
  background: linear-gradient(135deg, #6366F1, #818CF8); color: white;
  box-shadow: 0 1px 3px rgba(99,102,241,.3), inset 0 1px 0 rgba(255,255,255,.15);
}
.btn-primary:hover { background: linear-gradient(135deg, #5558E6, #7577F5); box-shadow: 0 4px 12px rgba(99,102,241,.35), inset 0 1px 0 rgba(255,255,255,.15); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0) scale(.97); }
.btn-secondary {
  background: var(--surface); color: var(--text); border-color: var(--border);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { border-color: var(--border-strong); background: var(--hover); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--hover); color: var(--text); }
.btn-danger { background: linear-gradient(135deg, #EF4444, #F87171); color: white; box-shadow: 0 1px 3px rgba(239,68,68,.3); }
.btn-danger:hover { background: linear-gradient(135deg, #DC2626, #EF4444); box-shadow: 0 4px 12px rgba(239,68,68,.35); transform: translateY(-1px); }
.btn-success { background: linear-gradient(135deg, #10B981, #34D399); color: white; box-shadow: 0 1px 3px rgba(16,185,129,.3); }
.btn-success:hover { box-shadow: 0 4px 12px rgba(16,185,129,.35); transform: translateY(-1px); }
.btn-sm { padding: 6px 12px; font-size: .75rem; border-radius: 8px; }
.btn-lg { padding: 12px 24px; font-size: .9375rem; border-radius: 12px; }
.btn-icon { padding: 8px; }
.btn-icon.btn-sm { padding: 6px; }

/* ═══════════════════════════════════════════════════════════════
   INPUTS — Premium
   ═══════════════════════════════════════════════════════════════ */
.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-group label { font-size: .8125rem; font-weight: 600; color: var(--text-2); }
.input {
  width: 100%; padding: 10px 14px; font-family: inherit; font-size: .875rem;
  color: var(--text); background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 10px; outline: none; transition: all var(--transition-fast);
}
.input::placeholder { color: var(--text-3); }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.input:hover:not(:focus) { border-color: var(--border-strong); }
.input.error { border-color: var(--danger); }
.input.error:focus { box-shadow: 0 0 0 3px var(--danger-light); }
.input-hint { font-size: .75rem; color: var(--text-3); margin-top: 4px; }
.input-error { font-size: .75rem; color: var(--danger); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.input-error svg { width: 14px; height: 14px; }
.input-icon-wrap { position: relative; }
.input-icon-wrap .input { padding-left: 40px; }
.input-icon-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-3); pointer-events: none; }
.input-icon-right {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  padding: 4px; border-radius: 6px; border: none; background: transparent;
  color: var(--text-3); cursor: pointer; transition: all var(--transition-fast);
}
.input-icon-right:hover { color: var(--text-2); background: var(--hover); }
.input-icon-right svg { width: 16px; height: 16px; position: static; transform: none; pointer-events: auto; }
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 36px; background-color: var(--surface);
}
textarea.input { min-height: 88px; resize: vertical; line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════════
   BADGES — Premium
   ═══════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; font-size: .7rem; font-weight: 600; border-radius: 8px;
  letter-spacing: .01em;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.badge-success { background: var(--success-subtle); color: var(--badge-success-text); }
.badge-success .badge-dot { background: var(--success); }
.badge-warning { background: var(--warning-subtle); color: var(--badge-warning-text); }
.badge-warning .badge-dot { background: var(--warning); }
.badge-danger { background: var(--danger-subtle); color: var(--badge-danger-text); }
.badge-danger .badge-dot { background: var(--danger); }
.badge-info { background: var(--brand-subtle); color: var(--badge-info-text); }
.badge-info .badge-dot { background: var(--brand); }
.badge-neutral { background: var(--badge-neutral-bg); color: var(--badge-neutral-text); }
.badge-neutral .badge-dot { background: var(--text-3); }
.badge-credit { background: #FEF2F2; color: #DC2626; }
.badge-credit .badge-dot { background: #DC2626; }
.badge-debit { background: #FFFBEB; color: #D97706; }
.badge-debit .badge-dot { background: #D97706; }

/* ═══════════════════════════════════════════════════════════════
   MODAL — Premium Glass
   ═══════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 200;
  animation: fadeIn .15s;
}
.modal {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl); width: 100%; max-width: 520px; max-height: 90vh;
  overflow-y: auto; animation: modalIn .25s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 1.0625rem; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px; border-radius: 8px; border: none;
  background: transparent; color: var(--text-3); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-fast);
}
.modal-close:hover { background: var(--hover); color: var(--text); }
.modal-body { padding: 24px; }
.modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 24px; border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════
   TOAST — Premium
   ═══════════════════════════════════════════════════════════════ */
.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 300;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-xl); min-width: 300px; max-width: 420px;
  animation: toastIn .3s var(--ease);
}
@keyframes toastIn { from { opacity: 0; transform: translateX(20px) scale(.95); } to { opacity: 1; transform: translateX(0) scale(1); } }
.toast-icon { width: 20px; height: 20px; flex-shrink: 0; }
.toast-message { font-size: .875rem; font-weight: 500; flex: 1; }
.toast.success { border-left: 3px solid var(--success); }
.toast.success .toast-icon { color: var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.error .toast-icon { color: var(--danger); }
.toast.warning { border-left: 3px solid var(--warning); }
.toast.warning .toast-icon { color: var(--warning); }

/* ═══════════════════════════════════════════════════════════════
   TABS — Premium
   ═══════════════════════════════════════════════════════════════ */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); }
.tab {
  padding: 10px 16px; font-size: .8125rem; font-weight: 500; color: var(--text-2);
  border: none; background: transparent; cursor: pointer; position: relative;
  transition: color var(--transition-fast); white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--brand); font-weight: 600; }
.tab.active::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 2px; background: var(--brand); border-radius: 2px 2px 0 0;
}
.tab-count { margin-left: 6px; padding: 1px 6px; font-size: .6875rem; background: var(--muted); border-radius: 6px; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════
   SKELETON LOADING
   ═══════════════════════════════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg, var(--muted) 25%, var(--surface-2) 50%, var(--muted) 75%);
  background-size: 200% 100%; animation: shimmer 1.8s infinite ease-in-out;
  border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-text:last-child { width: 60%; }
.skeleton-title { height: 20px; width: 40%; margin-bottom: 12px; }
.skeleton-avatar { width: 40px; height: 40px; border-radius: 10px; }
.skeleton-card { height: 120px; border-radius: var(--radius-lg); }

/* ═══════════════════════════════════════════════════════════════
   EMPTY STATE — Premium
   ═══════════════════════════════════════════════════════════════ */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 64px 24px; text-align: center;
}
.empty-state-icon {
  width: 72px; height: 72px; border-radius: 18px; background: var(--muted);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.empty-state-icon svg { width: 32px; height: 32px; color: var(--text-3); }
.empty-state-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 6px; }
.empty-state-text { font-size: .875rem; color: var(--text-2); max-width: 360px; margin-bottom: 20px; line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════════
   SPINNER
   ═══════════════════════════════════════════════════════════════ */
.spinner {
  width: 20px; height: 20px; border: 2.5px solid var(--border);
  border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.spinner-lg { width: 32px; height: 32px; border-width: 3px; }

/* ═══════════════════════════════════════════════════════════════
   FILTER PILLS
   ═══════════════════════════════════════════════════════════════ */
.filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-pill {
  padding: 6px 14px; border-radius: 8px; font-size: .8125rem; font-weight: 500;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  cursor: pointer; transition: all var(--transition-fast);
}
.filter-pill:hover { border-color: var(--border-strong); color: var(--text); }
.filter-pill.active { background: var(--brand); color: white; border-color: var(--brand); box-shadow: 0 1px 3px rgba(99,102,241,.3); }

/* ═══════════════════════════════════════════════════════════════
   TOGGLE
   ═══════════════════════════════════════════════════════════════ */
.toggle-track {
  width: 44px; height: 24px; border-radius: 12px; cursor: pointer;
  background: var(--border-strong); transition: background var(--transition-fast); position: relative;
}
.toggle-track.active { background: var(--brand); }
.toggle-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: white;
  position: absolute; top: 3px; left: 3px; transition: transform var(--transition-fast);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle-track.active .toggle-thumb { transform: translateX(20px); }

/* ═══════════════════════════════════════════════════════════════
   STATUS DOT
   ═══════════════════════════════════════════════════════════════ */
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0;
}
.status-dot.green { background: var(--success); box-shadow: 0 0 0 3px var(--success-light); }
.status-dot.yellow { background: var(--warning); box-shadow: 0 0 0 3px var(--warning-light); }
.status-dot.red { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-light); }

/* ═══════════════════════════════════════════════════════════════
   CHART CONTAINER
   ═══════════════════════════════════════════════════════════════ */
.chart-container {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; margin-bottom: 20px;
}
.chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.chart-title { font-size: 1rem; font-weight: 700; }
.chart-subtitle { font-size: .8125rem; color: var(--text-2); margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════════
   SECTION / STAT CARDS
   ═══════════════════════════════════════════════════════════════ */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; transition: all var(--transition-base);
}
.stat-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.stat-card .label { font-size: .75rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; margin-bottom: 6px; }
.stat-card .value { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.section-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; }
.section-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; color: var(--text); }

/* ═══════════════════════════════════════════════════════════════
   ACTIVITY TIMELINE
   ═══════════════════════════════════════════════════════════════ */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 4px; bottom: 4px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 20px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -24px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; border: 2px solid var(--surface);
}
.timeline-dot.brand { background: var(--brand); }
.timeline-dot.success { background: var(--success); }
.timeline-dot.warning { background: var(--warning); }
.timeline-dot.danger { background: var(--danger); }
.timeline-content { font-size: .875rem; color: var(--text-2); }
.timeline-content strong { color: var(--text); font-weight: 600; }
.timeline-time { font-size: .75rem; color: var(--text-3); margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════════
   PAGE HEADER
   ═══════════════════════════════════════════════════════════════ */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.page-header h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.page-header-sub { font-size: .875rem; color: var(--text-2); margin-top: 2px; }
.page-header-actions { display: flex; align-items: center; gap: 8px; }

/* ═══════════════════════════════════════════════════════════════
   BREADCRUMBS
   ═══════════════════════════════════════════════════════════════ */
.breadcrumbs { display: flex; align-items: center; gap: 6px; margin-bottom: 20px; font-size: .8125rem; }
.breadcrumbs a { color: var(--text-3); transition: color var(--transition-fast); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs .separator { color: var(--text-4); }
.breadcrumbs .current { color: var(--text); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
.animate-fade { animation: fadeIn .4s var(--ease); }
.animate-slide-up { animation: slideUp .4s var(--ease); }
.animate-scale-in { animation: scaleIn .3s var(--ease); }

/* ═══════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════ */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1024px) { .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; } }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }
.mt-4 { margin-top: 16px; }
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }
.p-6 { padding: 24px; }
.w-full { width: 100%; }
.text-sm { font-size: .8125rem; }
.text-xs { font-size: .75rem; }
.text-lg { font-size: 1.125rem; }
.text-muted { color: var(--text-2); }
.text-faint { color: var(--text-3); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cursor-pointer { cursor: pointer; }
.relative { position: relative; }
.hidden { display: none; }
[x-cloak] { display: none !important; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-2xl); }
  .sidebar-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.4); backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px); z-index: 99; display: none;
  }
  .sidebar-overlay.show { display: block; }
  .hamburger { display: flex; }
  .main { margin-left: 0 !important; }
  .header-search { display: none; }
}
@media (max-width: 768px) {
  .content { padding: 16px; }
  .header { padding: 0 16px; }
  .page-title { font-size: 1rem; }
  .kpi-value { font-size: 1.375rem; }
  .page-header h1 { font-size: 1.25rem; }
}

/* ═══════════════════════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════════════════════ */
@media print {
  .sidebar, .header, .hamburger, .sidebar-overlay, .no-print { display: none !important; }
  .main { margin-left: 0 !important; }
  body { background: white; color: black; }
  .card, .kpi, .table-wrap, .section-card { box-shadow: none; border: 1px solid #ddd; }
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR — Premium Go Premium Card
   ═══════════════════════════════════════════════════════════════ */
.sidebar-premium {
  margin: 12px; padding: 16px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  color: white; flex-shrink: 0;
}
.premium-icon { margin-bottom: 10px; }
.premium-icon svg { width: 20px; height: 20px; color: rgba(255,255,255,.9); }
.premium-text { margin-bottom: 12px; }
.premium-title { font-size: .875rem; font-weight: 700; margin-bottom: 4px; }
.premium-desc { font-size: .75rem; color: rgba(255,255,255,.75); line-height: 1.5; }
.premium-btn {
  display: flex; align-items: center; gap: 6px; width: 100%; justify-content: center;
  padding: 8px 16px; background: rgba(255,255,255,.2); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25); border-radius: 8px;
  color: white; font-size: .8125rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition-fast); text-decoration: none;
}
.premium-btn:hover { background: rgba(255,255,255,.3); transform: translateY(-1px); }
.premium-btn svg { width: 14px; height: 14px; }

/* ═══════════════════════════════════════════════════════════════
   HEADER — Premium Enterprise
   ═══════════════════════════════════════════════════════════════ */
.header-search-shortcut {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  padding: 2px 8px; font-size: .6875rem; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border); border-radius: 5px;
  color: var(--text-3); pointer-events: none; font-family: inherit;
}
.header-new-wrap { position: relative; }
.header-new-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
  background: linear-gradient(135deg, #6366F1, #818CF8); color: white;
  border-radius: 10px; font-size: .8125rem; font-weight: 600; cursor: pointer;
  border: none; text-decoration: none; transition: all var(--transition-fast);
  box-shadow: 0 1px 3px rgba(99,102,241,.3);
}
.header-new-btn:hover { background: linear-gradient(135deg, #5558E6, #7577F5); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99,102,241,.35); }
.header-new-btn svg { width: 16px; height: 16px; }
.header-icon-btn {
  position: relative; padding: 8px; border-radius: 10px; border: none;
  background: transparent; color: var(--text-2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-fast);
}
.header-icon-btn:hover { background: var(--hover); color: var(--text); }
.header-icon-btn svg { width: 18px; height: 18px; }
.header-icon-badge {
  position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px;
  padding: 0 4px; font-size: .625rem; font-weight: 700;
  background: var(--danger); color: white; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--surface);
}
.header-profile-wrap { position: relative; }
.header-profile {
  display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px;
  border-radius: 10px; border: 1px solid transparent; background: transparent;
  cursor: pointer; transition: all var(--transition-fast);
}
.header-profile:hover { background: var(--hover); border-color: var(--border); }
.header-avatar {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: .75rem; font-weight: 600; flex-shrink: 0;
}
.header-profile-info { display: flex; flex-direction: column; }
.header-profile-name { font-size: .8125rem; font-weight: 600; line-height: 1.2; text-align: left; }
.header-profile-role { font-size: .6875rem; color: var(--text-3); text-align: left; }
.header-profile svg { width: 14px; height: 14px; color: var(--text-3); flex-shrink: 0; }
.header-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-xl); padding: 6px; z-index: 150;
  display: none;
  animation: dropdownIn .15s var(--ease);
}
.header-dropdown.show { display: block; }
.header-dropdown-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  font-size: .8125rem; color: var(--text-2); border-radius: 8px; cursor: pointer;
  border: none; background: none; width: 100%; text-align: left;
  transition: all var(--transition-fast); text-decoration: none;
}
.header-dropdown-item:hover { background: var(--hover); color: var(--text); }
.header-dropdown-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.header-dropdown-item.danger { color: var(--danger); }
.header-dropdown-item.danger:hover { background: var(--danger-subtle); }
.header-dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD — Welcome Banner
   ═══════════════════════════════════════════════════════════════ */
.welcome-banner {
  background: linear-gradient(135deg, #4F46E5 0%, #6366F1 40%, #818CF8 70%, #A78BFA 100%);
  border-radius: var(--radius-2xl); padding: 32px 36px; color: white;
  position: relative; overflow: hidden; margin-bottom: 24px;
}
.welcome-banner::before {
  content: ''; position: absolute; top: -40%; right: -10%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,.12) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.welcome-banner::after {
  content: ''; position: absolute; bottom: -30%; right: 5%; width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(139,92,246,.3) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.welcome-banner h1 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; position: relative; z-index: 1; }
.welcome-banner p { font-size: .9375rem; color: rgba(255,255,255,.8); position: relative; z-index: 1; }
.welcome-stats {
  display: flex; gap: 32px; margin-top: 20px; position: relative; z-index: 1;
  flex-wrap: wrap;
}
.welcome-stat { display: flex; align-items: center; gap: 8px; }
.welcome-stat svg { width: 16px; height: 16px; color: rgba(255,255,255,.7); }
.welcome-stat-label { font-size: .75rem; color: rgba(255,255,255,.65); }
.welcome-stat-value { font-size: .875rem; font-weight: 600; color: white; margin-left: 4px; }

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD — KPI Cards with Sparklines
   ═══════════════════════════════════════════════════════════════ */
.kpi-sparkline { margin-top: 12px; height: 40px; }
.kpi-sparkline canvas { width: 100% !important; height: 40px !important; }
.kpi-header { display: flex; align-items: center; justify-content: space-between; }
.kpi-sub { font-size: .75rem; color: var(--text-3); margin-top: 2px; }
.kpi-sub .up { color: var(--success); font-weight: 600; }
.kpi-sub .down { color: var(--danger); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD — Quick Actions
   ═══════════════════════════════════════════════════════════════ */
.quick-actions-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.quick-action-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 12px; border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; text-decoration: none;
  transition: all var(--transition-fast); text-align: center;
}
.quick-action-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.quick-action-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.quick-action-icon svg { width: 20px; height: 20px; }
.quick-action-icon.brand { background: var(--brand-light); color: var(--brand); }
.quick-action-icon.success { background: var(--success-light); color: var(--success); }
.quick-action-icon.warning { background: var(--warning-light); color: var(--warning); }
.quick-action-icon.danger { background: var(--danger-light); color: var(--danger); }
.quick-action-card span { font-size: .8125rem; font-weight: 600; color: var(--text); }

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD — Activity Feed
   ═══════════════════════════════════════════════════════════════ */
.activity-feed { display: flex; flex-direction: column; gap: 0; }
.activity-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom: none; }
.activity-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.activity-icon svg { width: 16px; height: 16px; }
.activity-icon.brand { background: var(--brand-light); color: var(--brand); }
.activity-icon.success { background: var(--success-light); color: var(--success); }
.activity-icon.warning { background: var(--warning-light); color: var(--warning); }
.activity-icon.danger { background: var(--danger-light); color: var(--danger); }
.activity-body { flex: 1; min-width: 0; }
.activity-title { font-size: .8125rem; font-weight: 600; color: var(--text); }
.activity-desc { font-size: .75rem; color: var(--text-3); margin-top: 2px; }
.activity-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.activity-time { font-size: .6875rem; color: var(--text-3); }
.activity-amount { font-size: .75rem; font-weight: 600; }
.activity-amount.positive { color: var(--success); }
.activity-amount.negative { color: var(--danger); }

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD — Donut Chart Legend
   ═══════════════════════════════════════════════════════════════ */
.donut-wrap { display: flex; align-items: center; gap: 24px; }
.donut-canvas { width: 160px; height: 160px; flex-shrink: 0; }
.donut-legend { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.legend-item { display: flex; align-items: center; justify-content: space-between; font-size: .8125rem; }
.legend-item-left { display: flex; align-items: center; gap: 8px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.legend-label { color: var(--text-2); }
.legend-value { font-weight: 600; }
.legend-pct { color: var(--text-3); font-size: .75rem; margin-left: 8px; }

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD — Business Health
   ═══════════════════════════════════════════════════════════════ */
.health-score-wrap { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; }
.health-ring { width: 80px; height: 80px; flex-shrink: 0; position: relative; }
.health-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.health-ring-bg { fill: none; stroke: var(--border); stroke-width: 6; }
.health-ring-fill { fill: none; stroke: var(--success); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }
.health-ring-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.125rem; font-weight: 800; }
.health-info h4 { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.health-info p { font-size: .8125rem; color: var(--text-2); margin-top: 2px; }
.health-checks { display: flex; flex-direction: column; gap: 10px; }
.health-check { display: flex; align-items: center; justify-content: space-between; font-size: .8125rem; }
.health-check-label { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.health-check-label svg { width: 16px; height: 16px; }
.health-check-status { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.health-check-status.good { color: var(--success); }
.health-check-status.excellent { color: var(--success); }

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD — Chart Card
   ═══════════════════════════════════════════════════════════════ */
.chart-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.chart-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.chart-card-title { font-size: 1rem; font-weight: 700; }
.chart-card-subtitle { font-size: .8125rem; color: var(--text-2); margin-top: 2px; }
.chart-card-value { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
.chart-card-trend { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.chart-card-trend.up { background: var(--success-subtle); color: var(--success); }
.chart-card-trend.down { background: var(--danger-subtle); color: var(--danger); }
.chart-select {
  padding: 6px 12px; font-size: .75rem; font-weight: 500;
  background: var(--muted); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text-2); cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; padding-right: 28px;
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD — Cash Flow
   ═══════════════════════════════════════════════════════════════ */
.cashflow-row { display: flex; gap: 24px; margin-bottom: 16px; }
.cashflow-item { flex: 1; }
.cashflow-label { font-size: .75rem; color: var(--text-3); margin-bottom: 4px; }
.cashflow-value { font-size: 1.25rem; font-weight: 800; }
.cashflow-value.inflow { color: var(--success); }
.cashflow-value.outflow { color: var(--danger); }

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD — Invoice Status
   ═══════════════════════════════════════════════════════════════ */
.invoice-status-wrap { display: flex; align-items: center; gap: 20px; }
.invoice-status-legend { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.status-legend-item { display: flex; align-items: center; justify-content: space-between; font-size: .8125rem; }
.status-legend-left { display: flex; align-items: center; gap: 8px; }
.status-legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-legend-label { color: var(--text-2); }
.status-legend-count { font-weight: 600; }
.status-legend-pct { color: var(--text-3); font-size: .75rem; margin-left: 8px; }

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD — View All Link
   ═══════════════════════════════════════════════════════════════ */
.view-all-link {
  font-size: .8125rem; font-weight: 600; color: var(--brand);
  text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
  transition: color var(--transition-fast);
}
.view-all-link:hover { color: var(--brand-hover); }
.view-all-link svg { width: 14px; height: 14px; }

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD — Footer
   ═══════════════════════════════════════════════════════════════ */
.dashboard-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; margin-top: 24px; border-top: 1px solid var(--border);
  font-size: .75rem; color: var(--text-3); flex-wrap: wrap; gap: 12px;
}
.dashboard-footer-links { display: flex; gap: 16px; }
.dashboard-footer-links a { color: var(--text-3); text-decoration: none; transition: color var(--transition-fast); }
.dashboard-footer-links a:hover { color: var(--text-2); }

/* ═══════════════════════════════════════════════════════════════
   EMPTY STATE — Coming Soon
   ═══════════════════════════════════════════════════════════════ */
.coming-soon-icon {
  width: 80px; height: 80px; border-radius: 20px;
  background: linear-gradient(135deg, var(--brand-light), rgba(139,92,246,.1));
  display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
}
.coming-soon-icon svg { width: 36px; height: 36px; color: var(--brand); }

/* ═══════════════════════════════════════════════════════════════
   AUTH STYLES — Premium Login/Register
   ═══════════════════════════════════════════════════════════════ */
.auth-layout { display: flex; min-height: 100vh; }
.auth-left {
  flex: 1; display: flex; flex-direction: column; justify-content: space-between;
  padding: 48px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 40%, #312E81 70%, #4338CA 100%);
  color: white;
}
.auth-left::before {
  content: ''; position: absolute; top: -50%; right: -30%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,.3) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.auth-left::after {
  content: ''; position: absolute; bottom: -30%; left: -20%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(139,92,246,.2) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.auth-right {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 48px; position: relative; background: var(--bg);
}
.auth-brand { position: relative; z-index: 2; }
.auth-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 60px; }
.auth-logo-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.2);
}
.auth-logo-icon svg { width: 24px; height: 24px; color: white; }
.auth-logo-text { font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; }
.auth-hero { position: relative; z-index: 2; }
.auth-hero h1 { font-family: var(--font-display); font-size: clamp(2rem,3.5vw,2.75rem); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; margin-bottom: 16px; }
.auth-hero p { color: rgba(255,255,255,.7); font-size: 1.0625rem; line-height: 1.7; max-width: 480px; }
.auth-features { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 16px; margin-top: 48px; }
.auth-feature { display: flex; align-items: flex-start; gap: 14px; }
.auth-feature-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.1);
}
.auth-feature-icon svg { width: 18px; height: 18px; color: #A78BFA; }
.auth-feature-text h4 { font-size: .9375rem; font-weight: 600; margin-bottom: 2px; }
.auth-feature-text p { font-size: .8125rem; color: rgba(255,255,255,.6); line-height: 1.5; }
.auth-security { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; margin-top: 40px; padding: 14px 18px; background: rgba(255,255,255,.06); backdrop-filter: blur(8px); border-radius: 12px; border: 1px solid rgba(255,255,255,.08); }
.auth-security svg { width: 20px; height: 20px; color: #10B981; flex-shrink: 0; }
.auth-security span { font-size: .8125rem; color: rgba(255,255,255,.7); }
.auth-card {
  width: 100%; max-width: 440px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-2xl);
  padding: 40px; box-shadow: var(--shadow-xl);
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.auth-card:hover { box-shadow: var(--shadow-2xl); }
.auth-card-header { margin-bottom: 32px; }
.auth-card-header h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 6px; }
.auth-card-header p { color: var(--text-2); font-size: .9375rem; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: .8125rem; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.form-input-wrapper { position: relative; }
.form-input {
  width: 100%; padding: 12px 16px; font-family: var(--font); font-size: .9375rem;
  color: var(--text); background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); outline: none; transition: all .2s;
}
.form-input::placeholder { color: var(--text-3); }
.form-input:focus { border-color: var(--border-focus); box-shadow: 0 0 0 4px var(--brand-light); }
.form-input:hover:not(:focus) { border-color: #CBD5E1; }
.form-input.error { border-color: var(--danger); }
.form-input.error:focus { box-shadow: 0 0 0 4px rgba(239,68,68,.1); }
.form-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.form-icon svg { width: 18px; height: 18px; }
.form-input.has-icon { padding-left: 42px; }
.form-input.has-icon-right { padding-right: 42px; }
.form-toggle {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-3); cursor: pointer; padding: 2px;
}
.form-toggle:hover { color: var(--text-2); }
.form-error { font-size: .75rem; color: var(--danger); margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.form-error svg { width: 14px; height: 14px; }
.form-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.form-checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.form-checkbox input[type="checkbox"] {
  width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--border);
  appearance: none; cursor: pointer; position: relative; transition: all .15s;
  background: var(--surface);
}
.form-checkbox input[type="checkbox"]:checked { background: var(--brand); border-color: var(--brand); }
.form-checkbox input[type="checkbox"]:checked::after {
  content: ''; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px;
  border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.form-checkbox span { font-size: .8125rem; color: var(--text-2); }
.form-link { font-size: .8125rem; color: var(--brand); font-weight: 500; text-decoration: none; transition: color .15s; }
.form-link:hover { color: var(--brand-hover); }
.btn-full {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px 24px; font-family: var(--font); font-size: .9375rem;
  font-weight: 600; border-radius: var(--radius); border: none; cursor: pointer;
  transition: all .2s var(--ease); text-decoration: none; position: relative;
}
.btn-full:active { transform: scale(.98); }
.btn-full:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn-full.btn-primary {
  background: linear-gradient(135deg, #6366F1, #8B5CF6); color: white;
  box-shadow: 0 2px 8px rgba(99,102,241,.3);
}
.btn-full.btn-primary:hover { box-shadow: 0 4px 16px rgba(99,102,241,.4); transform: translateY(-1px); }
.btn-full.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-google {
  background: var(--surface); color: var(--text); border: 1.5px solid var(--border);
  font-weight: 600;
}
.btn-google:hover { border-color: #CBD5E1; box-shadow: var(--shadow-sm); background: var(--surface-2); }
.btn-google svg { width: 20px; height: 20px; }
.divider { display: flex; align-items: center; gap: 16px; margin: 24px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider span { font-size: .75rem; color: var(--text-3); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.auth-footer { text-align: center; margin-top: 24px; font-size: .8125rem; color: var(--text-3); }
.auth-footer a { color: var(--brand); font-weight: 600; text-decoration: none; }
.auth-footer a:hover { color: var(--brand-hover); }
.auth-privacy { text-align: center; margin-top: 20px; font-size: .6875rem; color: var(--text-3); line-height: 1.6; }
.auth-privacy a { color: var(--text-2); text-decoration: underline; }
.auth-theme-toggle {
  position: fixed; top: 20px; right: 20px; z-index: 100;
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; box-shadow: var(--shadow-sm);
}
.auth-theme-toggle:hover { border-color: var(--brand); color: var(--brand); }
.auth-theme-toggle svg { width: 18px; height: 18px; }
.auth-toast-container { position: fixed; top: 20px; right: 70px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.auth-toast {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); min-width: 300px; animation: slideIn .3s var(--ease);
}
.auth-toast.success { border-left: 3px solid var(--accent); }
.auth-toast.error { border-left: 3px solid var(--danger); }
.toast-icon { width: 20px; height: 20px; flex-shrink: 0; }
.toast-message { font-size: .875rem; font-weight: 500; }
.success-state { text-align: center; padding: 20px 0; }
.success-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px;
  background: rgba(16,185,129,.1); display: flex; align-items: center; justify-content: center;
  animation: scaleIn .4s var(--ease);
}
.success-icon svg { width: 32px; height: 32px; color: var(--accent); }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes shake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-4px); } 40%,80% { transform: translateX(4px); } }
.animate-shake { animation: shake .4s; }
.password-strength { display: flex; gap: 4px; margin-top: 8px; }
.password-strength-bar { flex: 1; height: 3px; border-radius: 2px; background: var(--border); transition: background .3s; }
.password-strength-bar.weak { background: var(--danger); }
.password-strength-bar.medium { background: var(--warning); }
.password-strength-bar.strong { background: var(--accent); }
.password-strength-text { font-size: .6875rem; margin-top: 4px; color: var(--text-3); }
@media (max-width: 1024px) {
  .auth-left { display: none; }
  .auth-right { flex: 1; padding: 24px; }
}
@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; border-radius: var(--radius-lg); }
  .auth-right { padding: 16px; }
}

/* ═══════════════════════════════════════════════════════════════
   USER-SPECIFIC PAGE STYLES
   ═══════════════════════════════════════════════════════════════ */
.customer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.customer-header-left h1 { margin: 0 0 0.5rem 0; font-size: 1.5rem; }
.customer-header-left .meta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; color: var(--text-3); font-size: 0.875rem; }
.customer-header-actions { display: flex; gap: 0.5rem; align-items: center; }
.tab-btn { padding: 10px 16px; font-size: .8125rem; font-weight: 500; color: var(--text-2); border: none; background: transparent; cursor: pointer; position: relative; transition: color .15s; white-space: nowrap; }
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--brand); font-weight: 600; }
.tab-btn.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--brand); border-radius: 2px 2px 0 0; }
.tab-panel { padding: 1.25rem 0; }
.note-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: 0.75rem; }
.note-card .note-meta { font-size: 0.75rem; color: var(--text-3); margin-bottom: 0.35rem; }
.note-card .note-body { font-size: 0.9rem; white-space: pre-wrap; }
.note-form { display: flex; gap: 0.5rem; align-items: flex-start; margin-bottom: 1.25rem; }
.note-form textarea { flex: 1; }
.error-banner { background: var(--danger-subtle); color: var(--badge-danger-text); padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.875rem; display: flex; align-items: center; gap: 8px; }
.aging-header { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.aging-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem; }
.aging-card .period { font-size: 0.8rem; color: var(--text-3); margin-bottom: 0.3rem; font-weight: 500; }
.aging-card .total { font-size: 1.2rem; font-weight: 700; }
.aging-card .total.warn { color: var(--warning); }
.aging-card .total.danger { color: var(--danger); }
.date-filters { display: flex; gap: 1rem; align-items: flex-end; margin-bottom: 1.5rem; flex-wrap: wrap; }
.date-filters label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.85rem; color: var(--text-3); font-weight: 500; }
.date-filters input { padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 0.9rem; }
.gst-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.gst-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.gst-card h3 { font-size: 0.8rem; color: var(--text-3); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.gst-card .amount { font-size: 1.6rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.gst-card .amount.cgst { color: #3b82f6; }
.gst-card .amount.sgst { color: #8b5cf6; }
.gst-card .amount.igst { color: #f59e0b; }
.export-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 2rem; }
.current-plan-card { background: linear-gradient(135deg, var(--brand), #6d28d9); color: #fff; border-radius: var(--radius-2xl); padding: 2rem; margin-bottom: 2rem; }
.current-plan-card .plan-name { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.5rem; }
.current-plan-card .plan-meta { display: flex; gap: 2rem; margin-top: 1rem; flex-wrap: wrap; }
.current-plan-card .meta-item { font-size: 0.9rem; opacity: 0.9; }
.current-plan-card .meta-item strong { display: block; font-size: 0.75rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.2rem; }
.features-list { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.feature-tag { background: rgba(255,255,255,0.2); border-radius: 20px; padding: 0.35rem 0.85rem; font-size: 0.8rem; }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.plan-card { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius-xl); padding: 1.75rem; transition: all 0.2s; position: relative; }
.plan-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.plan-card.current { border-color: var(--brand); }
.plan-card.current::after { content: 'Current'; position: absolute; top: 1rem; right: 1rem; background: var(--brand); color: #fff; padding: 0.25rem 0.75rem; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }
.plan-card .plan-title { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.plan-card .price { font-size: 2rem; font-weight: 800; color: var(--brand); margin-bottom: 0.25rem; letter-spacing: -.02em; }
.plan-card .price span { font-size: 0.9rem; font-weight: 400; color: var(--text-3); }
.plan-card .period { font-size: 0.85rem; color: var(--text-3); margin-bottom: 1rem; }
.plan-card .plan-features { list-style: none; padding: 0; margin: 0 0 1.5rem 0; }
.plan-card .plan-features li { padding: 0.4rem 0; font-size: 0.85rem; color: var(--text-2); display: flex; align-items: center; gap: 0.5rem; }
.plan-card .plan-features li::before { content: '\2713'; color: #16a34a; font-weight: 700; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { background: var(--hover); }
.btn-disabled { opacity: 0.5; pointer-events: none; }

/* Bulk Actions Bar */
.inv-bulk-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--brand), #6d28d9);
  border-radius: var(--radius-lg); color: #fff;
}
.inv-bulk-info { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .875rem; }
.inv-bulk-clear { background: rgba(255,255,255,.2); border: none; color: #fff; padding: 4px 12px; border-radius: 6px; cursor: pointer; font-size: .8125rem; }
.inv-bulk-clear:hover { background: rgba(255,255,255,.3); }
.inv-bulk-actions { display: flex; gap: 8px; }
.inv-btn-sm { padding: 6px 14px !important; font-size: .8125rem !important; border-radius: 8px !important; }
.inv-btn-primary { background: var(--brand); color: #fff; border: none; }
.inv-btn-primary:hover { background: var(--brand-600); }
.inv-btn-secondary { background: rgba(255,255,255,.2); color: #fff; border: none; }
.inv-btn-secondary:hover { background: rgba(255,255,255,.3); }
.inv-btn-danger { background: #ef4444; color: #fff; border: none; }
.inv-btn-danger:hover { background: #dc2626; }

/* Notification Dropdown */
.notif-wrap { position: relative; }
.notif-dropdown {
  position: absolute; top: 100%; right: 0; margin-top: 8px;
  width: 380px; max-height: 480px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
  display: none; z-index: 100; overflow: hidden;
}
.notif-dropdown.show { display: block; }
.notif-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.notif-title { font-weight: 600; font-size: .9375rem; color: var(--text); }
.notif-mark-read {
  background: none; border: none; color: var(--brand); font-size: .8125rem;
  cursor: pointer; font-weight: 500;
}
.notif-mark-read:hover { text-decoration: underline; }
.notif-list { max-height: 360px; overflow-y: auto; }
.notif-item {
  display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .15s;
}
.notif-item:hover { background: var(--hover); }
.notif-item.unread { background: var(--brand-50, rgba(99,102,241,.05)); }
.notif-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem;
}
.notif-icon.invoice { background: rgba(99,102,241,.1); color: var(--brand); }
.notif-icon.payment { background: rgba(16,185,129,.1); color: #10b981; }
.notif-icon.alert { background: rgba(245,158,11,.1); color: #f59e0b; }
.notif-icon.info { background: rgba(59,130,246,.1); color: #3b82f6; }
.notif-content { flex: 1; min-width: 0; }
.notif-content .notif-msg { font-size: .875rem; color: var(--text); line-height: 1.4; }
.notif-content .notif-time { font-size: .75rem; color: var(--text-3); margin-top: 2px; }
.notif-dismiss {
  background: none; border: none; color: var(--text-3); cursor: pointer;
  padding: 4px; border-radius: 6px; flex-shrink: 0;
}
.notif-dismiss:hover { background: var(--hover); color: var(--danger); }
.notif-empty { padding: 32px; text-align: center; color: var(--text-3); font-size: .875rem; }
.notif-view-all {
  display: block; text-align: center; padding: 12px; border-top: 1px solid var(--border);
  color: var(--brand); font-size: .875rem; font-weight: 500; text-decoration: none;
}
.notif-view-all:hover { background: var(--hover); }
.page-divider { height: 1px; background: var(--border); margin: 2rem 0; }

/* Mobile FAB */
.mobile-fab {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--brand);
  color: #fff;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(79,70,229,.4);
  z-index: 1000;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.mobile-fab:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(79,70,229,.5); }
@media (max-width: 768px) {
  .mobile-fab { display: flex; }
  .main-content { padding-bottom: 80px !important; }
}
