/* FiscMoney - Mobile-First Modern Design System */
:root {
  --bg-main: #0b0f19;
  --bg-card: rgba(22, 30, 49, 0.75);
  --bg-card-hover: rgba(30, 41, 67, 0.85);
  --accent-primary: #3b82f6;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --border-color: rgba(255, 255, 255, 0.08);
  --radius-lg: 16px;
  --radius-md: 12px;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(30, 58, 138, 0.3) 0%, transparent 60%),
    radial-gradient(circle at 90% 30%, rgba(99, 102, 241, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 10% 70%, rgba(56, 189, 248, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px)); /* Safe space for Mobile Bottom Nav */
}

/* Mobile-First Layout Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.3px;
}

.brand-logo span {
  color: var(--accent-primary);
}

/* Executive Mode Switcher */
.header-mode-switcher {
  display: flex;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.mode-switch-btn {
  text-decoration: none;
  border-radius: 16px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mode-switch-btn.active-admin {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.mode-switch-btn.active-finance {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #000;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.4);
}

@media (max-width: 480px) {
  .mode-switch-btn .mode-text {
    display: none;
  }
  .mode-switch-btn {
    padding: 4px 8px;
    font-size: 0.85rem;
  }
}

/* User Profile Avatar Pill & Dropdown */
.header-profile-btn {
  background: rgba(30, 41, 67, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #fff;
  border-radius: 24px;
  padding: 4px 10px 4px 5px;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-profile-btn:hover, .header-profile-btn:focus {
  background: rgba(30, 41, 67, 0.95);
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
}

.header-avatar-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(99, 102, 241, 0.3));
  border: 1px solid rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.header-username-text {
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 360px) {
  .header-username-text {
    display: none;
  }
}

.header-chevron {
  font-size: 0.65rem;
  color: var(--text-muted);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 1px rgba(255, 255, 255, 0.2);
  z-index: 10001;
  padding: 12px;
  animation: slideInDropdown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInDropdown {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.profile-dropdown-header {
  padding: 4px 4px 8px 4px;
}

.profile-dropdown-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.plan-badge-pro {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(99, 102, 241, 0.2));
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}
.plan-badge-lifetime {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.3));
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.plan-badge-free {
  background: rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
}

.profile-dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.15s ease;
}
.profile-dropdown-item:hover {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  transform: translateX(3px);
}
.profile-dropdown-item.active {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}
.dropdown-item-icon {
  font-size: 1.1rem;
}
.dropdown-item-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.dropdown-item-text strong {
  font-size: 0.8rem;
}
.dropdown-item-text small {
  font-size: 0.68rem;
  color: var(--text-muted);
}
.dropdown-logout-btn:hover {
  background: rgba(239, 68, 68, 0.15) !important;
}

.badge-tag {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-primary);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ======================================================== */
/* ULTRA-PREMIUM FLOATING GLASS ISLAND BOTTOM NAVIGATION    */
/* ======================================================== */
.bottom-nav {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 520px;
  height: 64px;
  padding: 5px 8px;
  background: rgba(15, 23, 42, 0.84);
  backdrop-filter: blur(28px) saturate(210%);
  -webkit-backdrop-filter: blur(28px) saturate(210%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1.5px solid rgba(255, 255, 255, 0.26);
  border-radius: 32px;
  box-shadow: 0 20px 45px -5px rgba(0, 0, 0, 0.8),
              0 0 25px -2px rgba(56, 189, 248, 0.25),
              inset 0 1px 1px 0 rgba(255, 255, 255, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.62rem;
  font-weight: 700;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 5px 2px;
  border-radius: 20px;
  position: relative;
  flex: 1;
  min-width: 0;
  height: 52px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-icon {
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-label {
  letter-spacing: -0.2px;
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-item:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
}

.nav-item:active {
  transform: scale(0.92);
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  background-color: color-mix(in srgb, var(--tab-accent, #38bdf8) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--tab-accent, #38bdf8) 55%, transparent);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--tab-accent, #38bdf8) 35%, transparent),
              inset 0 1px 1px rgba(255, 255, 255, 0.28);
}

.nav-item.active .nav-icon {
  transform: translateY(-2px) scale(1.15);
  filter: drop-shadow(0 2px 10px color-mix(in srgb, var(--tab-accent, #38bdf8) 85%, transparent));
}

.nav-item.active .nav-label {
  color: var(--tab-accent, #38bdf8);
  font-weight: 800;
  text-shadow: 0 0 10px color-mix(in srgb, var(--tab-accent, #38bdf8) 60%, transparent);
}

/* Glowing Micro-Indicator Dot */
.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--tab-accent, #38bdf8);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--tab-accent, #38bdf8), 0 0 14px var(--tab-accent, #38bdf8);
}

/* Page bottom breathing space for floating dock */
body {
  padding-bottom: calc(85px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Main Container */
.container {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  padding: 20px 16px;
}


/* Glassmorphic Cards */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Workspace Selector */
.workspace-selector {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.ws-btn {
  flex: 1;
  padding: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.ws-btn.active {
  background: var(--accent-primary);
  color: #fff;
}

/* Auth Pages */
.auth-container {
  max-width: 420px;
  margin: 60px auto;
  padding: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--accent-primary);
}

.btn {
  width: 100%;
  padding: 14px;
  background: var(--accent-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.9;
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--accent-danger);
}

.alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-success);
}

/* Profile Pills Filter Bar */
.profile-bar-container {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  scrollbar-width: none; /* Hide scrollbar Firefox */
}
.profile-bar-container::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

.profile-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-pill:hover {
  background: var(--bg-card-hover);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.profile-pill.active {
  background: linear-gradient(135deg, var(--accent-primary), #2563eb);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.profile-pill.add-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--border-color);
  color: var(--text-main);
  cursor: pointer;
}

.profile-pill.add-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Member Breakdown Cards */
.member-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.member-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s, border-color 0.2s;
}

.member-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(16, 185, 129, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* Buttons */
.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 8px;
  width: auto;
  cursor: pointer;
  border: none;
}

.btn-danger-icon {
  background: transparent;
  color: var(--accent-danger);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}

.btn-danger-icon:hover {
  background: rgba(239, 68, 68, 0.15);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 99999;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-overlay.open {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.modal-card {
  background: #121826;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 100000;
}

.modal-overlay.open .modal-card {
  transform: none;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: #fff;
}

/* KPI Cards Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
}

.kpi-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.kpi-value {
  font-size: 1.3rem;
  font-weight: 800;
  margin-top: 4px;
}

/* Drag & Drop Upload Zone */
.dropzone {
  border: 2px dashed rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.04);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 16px;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.1);
  transform: scale(1.01);
}

.dropzone-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

/* Category Filter Bar */
.category-pills-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  scrollbar-width: none;
}
.category-pills-bar::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}

.cat-pill:hover, .cat-pill.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* Transactions Table & Item Cards */
.tx-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tx-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.2s, transform 0.15s;
}

.tx-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.tx-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tx-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tx-desc {
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.tx-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 3px;
  flex-wrap: wrap;
}

.tx-right {
  text-align: right;
  flex-shrink: 0;
}

.tx-amount {
  font-size: 1rem;
  font-weight: 800;
}

.amount-income {
  color: var(--accent-success);
}

.amount-expense {
  color: #f87171;
}

/* Tag Chips */
.tag-chip {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.tag-fiscal {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.tag-transfer {
  background: rgba(20, 184, 166, 0.15);
  color: #2dd4bf;
  border: 1px solid rgba(20, 184, 166, 0.3);
}

/* Interactive Chart Legend Toggle Buttons */
.btn-chart-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.btn-chart-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-chart-toggle.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.btn-chart-toggle.inactive {
  background: rgba(0, 0, 0, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.04) !important;
  color: #64748b !important;
  opacity: 0.4;
  text-decoration: line-through;
  transform: none !important;
}

.btn-chart-toggle.inactive .indicator {
  filter: grayscale(100%);
  opacity: 0.3;
}

/* Missing Tag & Missing Category Row Badges */
.tag-missing-btn {
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1px dashed rgba(245, 158, 11, 0.5) !important;
  color: #fbbf24 !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  padding: 3px 8px !important;
  border-radius: 12px !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tag-missing-btn:hover {
  background: rgba(245, 158, 11, 0.25) !important;
  border-color: #f59e0b !important;
  transform: translateY(-1px);
}

.cat-missing-btn {
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px dashed rgba(239, 68, 68, 0.5) !important;
  color: #f87171 !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  padding: 3px 8px !important;
  border-radius: 12px !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-missing-btn:hover {
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: #ef4444 !important;
  transform: translateY(-1px);
}

/* Custom Interactive HTML Tooltip with Close Button */
.fisc-chart-tooltip {
  position: absolute;
  z-index: 1050;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  border-radius: 12px;
  padding: 10px 14px;
  color: #cbd5e1;
  font-family: inherit;
  font-size: 0.82rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(56, 189, 248, 0.2);
  pointer-events: auto;
  transition: opacity 0.15s ease-out;
  min-width: 220px;
  max-width: 290px;
}

.fisc-tt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fisc-tt-title {
  font-weight: 700;
  color: #ffffff;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.fisc-tt-close {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f87171;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: bold;
  line-height: 1;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.fisc-tt-close:hover, .fisc-tt-close:active {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  transform: scale(1.1);
}

.fisc-tt-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fisc-tt-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.fisc-tt-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 4px rgba(0,0,0,0.4);
}

.fisc-tt-footer {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* ======================================================== */
/* MACRO ADVISOR EXECUTIVE INSIGHTS                         */
/* ======================================================== */
.advisor-insight-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 10px;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.advisor-insight-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.advisor-icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.advisor-content {
  flex: 1;
  min-width: 0;
}

.advisor-title {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 3px;
}

.advisor-text {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.advisor-text strong {
  color: #ffffff;
  font-weight: 700;
}

.advisor-success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-left: 4px solid #10b981;
}
.advisor-success .advisor-title {
  color: #34d399;
}

.advisor-info {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-left: 4px solid #38bdf8;
}
.advisor-info .advisor-title {
  color: #7dd3fc;
}

.advisor-purple {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-left: 4px solid #a855f7;
}
.advisor-purple .advisor-title {
  color: #c084fc;
}

.advisor-amber {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-left: 4px solid #f59e0b;
}
.advisor-amber .advisor-title {
  color: #fcd34d;
}

.advisor-warning {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-left: 4px solid #ef4444;
}
.advisor-warning .advisor-title {
  color: #f87171;
}

/* ======================================================== */
/* FORECAST STRIP & MONTHLY ADVISOR CARDS                   */
/* ======================================================== */
.forecast-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.forecast-box {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.forecast-box:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.forecast-box.highlight-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.forecast-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.forecast-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  margin: 2px 0 4px 0;
}

.forecast-box.highlight-box .forecast-val {
  color: #c084fc;
}

.forecast-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.3;
}

/* ========================================================= */
/* MONTH FILTER PILLS & CATEGORY BREAKDOWN CARDS             */
/* ========================================================= */
.month-pills-bar-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px 2px;
  margin-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(59, 130, 246, 0.3) transparent;
}

.month-pills-bar-container::-webkit-scrollbar {
  height: 5px;
}
.month-pills-bar-container::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.3);
  border-radius: 4px;
}

.month-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #cbd5e1;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.month-filter-pill:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
  color: #fff;
  transform: translateY(-1px);
}

.month-filter-pill.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.3));
  border-color: var(--accent-primary);
  color: #60a5fa;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
}

.month-filter-pill.current-month-pill {
  border-color: rgba(56, 189, 248, 0.4);
}

.month-filter-pill.current-month-pill.active {
  border-color: #38bdf8;
  color: #38bdf8;
}

.pill-badge {
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 800;
}

.cat-breakdown-card:hover {
  border-color: rgba(59, 130, 246, 0.4) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  transform: translateY(-1px);
}

/* Quick Categorization Popover */
.quick-popover {
  position: absolute;
  z-index: 1050;
  background: #0f172a;
  border: 1.5px solid rgba(59, 130, 246, 0.5);
  border-radius: 14px;
  padding: 14px;
  width: 320px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
  animation: popoverFadeIn 0.15s ease-out;
}

@keyframes popoverFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.quick-cat-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}

.quick-cat-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--accent-primary);
  transform: translateX(2px);
}

/* Month Workbench Tab Buttons */
.month-tab-btn {
  display: flex;
  flex-direction: column;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.month-tab-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
  color: #fff;
}

.month-tab-btn.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(30, 41, 67, 0.9));
  border-color: var(--accent-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
}

.month-tab-btn.is-current {
  border-color: rgba(56, 189, 248, 0.35);
}
.month-tab-btn.is-current.active {
  border-color: #38bdf8;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.3);
}

/* Workbench Subtabs */
.workbench-subtab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}

.workbench-subtab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.workbench-subtab.active {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--accent-primary);
  color: #60a5fa;
}

.workbench-subtab.active-warning {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #f87171;
}

.workbench-subtab.active-success {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--accent-success);
  color: #86efac;
}

.subtab-badge {
  font-size: 0.68rem;
  padding: 1px 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 800;
}

/* Workbench Action Tools (Differentiated from filter subtabs) */
.workbench-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.workbench-action-btn.game-mode {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.workbench-action-btn.game-mode:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.55);
}

.workbench-action-btn.rules-btn {
  background: rgba(59, 130, 246, 0.12);
  border: 1.5px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}

.workbench-action-btn.rules-btn:hover {
  background: rgba(59, 130, 246, 0.24);
  border-color: #60a5fa;
  color: #fff;
  transform: translateY(-1px);
}

/* Live Instant Search Glowing Expansion Box - High Prominence */
.workbench-search-box {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.85));
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: 22px;
  padding: 6px 14px;
  gap: 8px;
  min-width: 250px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 12px rgba(56, 189, 248, 0.18);
  backdrop-filter: blur(8px);
}

.workbench-search-box:hover {
  border-color: rgba(56, 189, 248, 0.75);
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}

.workbench-search-box:focus-within {
  min-width: 310px;
  border-color: #38bdf8;
  background: #0f172a;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.55), 0 0 0 1.5px #38bdf8;
  transform: translateY(-1px);
}

.workbench-search-box .search-icon {
  color: #38bdf8;
  font-size: 0.9rem;
  transition: transform 0.25s ease, color 0.25s ease;
  user-select: none;
}

.workbench-search-box:focus-within .search-icon {
  transform: scale(1.15) rotate(-6deg);
  color: #7dd3fc;
}

.workbench-search-box input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.82rem;
  outline: none;
  width: 100%;
  font-weight: 500;
}

.workbench-search-box input::placeholder {
  color: rgba(148, 163, 184, 0.8);
  font-size: 0.78rem;
}

.search-submit-badge {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 7px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.search-submit-badge:hover {
  background: rgba(56, 189, 248, 0.35);
  color: #fff;
  border-color: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

@media (max-width: 640px) {
  .workbench-search-box {
    width: 100%;
    min-width: 100%;
  }
  .workbench-search-box:focus-within {
    width: 100%;
    min-width: 100%;
  }
}

/* Inline Category Select */
.inline-cat-select:focus {
  border-color: var(--accent-primary) !important;
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

/* ======================================================== */
/* UNIFIED CATEGORIZATION BUTTON & SMART BADGE              */
/* ======================================================== */
.unified-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  background: transparent;
  text-align: left;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.unified-cat-btn.missing {
  background: rgba(239, 68, 68, 0.12);
  border: 1.5px dashed rgba(239, 68, 68, 0.6);
  color: #f87171;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.1);
}

.unified-cat-btn.missing:hover, .unified-cat-btn.missing:active {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.unified-cat-btn.categorized {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

.unified-cat-btn.categorized:hover, .unified-cat-btn.categorized:active {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--cat-color, var(--accent-primary));
  color: #fff;
  transform: translateY(-1px);
}

.unified-cat-btn .cat-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.unified-cat-btn .cat-name {
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.unified-cat-btn .cat-subtag {
  color: var(--cat-color, #94a3b8);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
  opacity: 0.9;
}

.unified-cat-btn .badge-tag-mini.fiscal {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #86efac;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ======================================================== */
/* TRANSACTIONS LIST & ADAPTIVE RESPONSIVE ROW CARDS       */
/* ======================================================== */
.tx-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.tx-item {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) minmax(140px, auto) auto;
  grid-template-areas: "lead info cat right";
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.tx-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(56, 189, 248, 0.25);
}

.tx-lead {
  grid-area: lead;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tx-row-check {
  width: 17px;
  height: 17px;
  accent-color: var(--accent-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.tx-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: monospace;
  white-space: nowrap;
}

.tx-info {
  grid-area: info;
  min-width: 0;
  overflow: hidden;
}

.tx-desc {
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  white-space: nowrap;
  margin-top: 2px;
}

.tx-profile-name {
  color: var(--accent-primary);
  font-weight: 600;
}

.tx-cat-wrapper {
  grid-area: cat;
  min-width: 0;
  max-width: 300px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.tx-right {
  grid-area: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
  min-width: 120px;
}

.tx-amount {
  font-size: 0.95rem;
  min-width: 75px;
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tx-amount.tx-income {
  color: var(--accent-success);
}

.tx-amount.tx-expense {
  color: #f87171;
}

.tx-actions {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

/* SMARTPHONE & TABLET FINTECH CARD (< 768px) */
@media (max-width: 768px) {
  .tx-item {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "lead right"
      "info info"
      "cat  cat";
    gap: 8px 10px;
    padding: 11px 12px;
    border-radius: 12px;
    background: rgba(22, 30, 49, 0.45);
  }

  .tx-lead {
    grid-area: lead;
    align-self: center;
    gap: 8px;
  }

  .tx-right {
    grid-area: right;
    margin-left: auto;
    align-self: center;
    gap: 8px;
    min-width: auto;
  }

  .tx-amount {
    font-size: 1rem;
    min-width: auto;
  }

  .tx-info {
    grid-area: info;
    margin-top: 2px;
  }

  .tx-desc {
    white-space: normal;
    word-break: break-word;
    font-size: 0.88rem;
    line-height: 1.35;
  }

  .tx-cat-wrapper {
    grid-area: cat;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 2px;
  }

  .tx-cat-wrapper .unified-cat-btn {
    width: 100%;
    box-sizing: border-box;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .tx-cat-wrapper .unified-cat-btn .cat-name {
    max-width: 160px;
  }

  .tx-cat-wrapper .unified-cat-btn .cat-subtag {
    max-width: 140px;
  }

  #txTableSection {
    padding: 12px 10px !important;
  }
}

/* ======================================================== */
/* SMART TRAY & FAST TRIAGE GAME MODE MODALS                */
/* ======================================================== */
.smart-tray-card {
  max-width: 520px;
  width: 95%;
  background: #0f172a;
  border: 1.5px solid rgba(59, 130, 246, 0.35);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.category-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (max-width: 480px) {
  .category-choice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .smart-tray-card {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 88vh;
    animation: slideUpMobile 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

@keyframes slideUpMobile {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cat-select-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  user-select: none;
}

.cat-select-card:hover, .cat-select-card:active {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--card-color, var(--accent-primary));
  transform: translateY(-2px) scale(1.02);
}

.cat-select-card.active {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--card-color, var(--accent-primary));
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.3);
}

.cat-select-card .card-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.cat-select-card .card-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}

/* Speed Triage Game Card */
.speed-game-card {
  background: linear-gradient(135deg, rgba(30, 41, 67, 0.95), rgba(15, 23, 42, 0.98));
  border: 2px solid rgba(59, 130, 246, 0.4);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  margin-bottom: 16px;
  text-align: center;
  transition: all 0.25s ease;
}

.speed-game-amount {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin: 6px 0;
}

.speed-game-desc {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}

/* Speed Triage Navigation Arrows */
.speed-nav-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.speed-nav-arrow:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.speed-nav-arrow:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
  border-color: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   AI Assistant Selector Modal & Persona Cards
   ========================================================================== */
.btn-change-persona {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #c7d2fe;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-change-persona:hover {
  background: rgba(99, 102, 241, 0.35);
  border-color: #818cf8;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.assistant-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 29, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 16px;
  animation: fadeInModalBackdrop 0.25s ease-out;
}

@keyframes fadeInModalBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

.assistant-modal-container {
  background: linear-gradient(145deg, rgba(20, 27, 45, 0.98), rgba(11, 16, 30, 0.99));
  border: 1.5px solid rgba(99, 102, 241, 0.35);
  border-radius: 22px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(99, 102, 241, 0.15);
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 24px;
  position: relative;
  animation: scaleInModal 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleInModal {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.assistant-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.assistant-modal-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.assistant-modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
  transform: rotate(90deg);
}

.assistant-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.persona-select-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.persona-select-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--card-accent, rgba(99, 102, 241, 0.6));
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 0 20px var(--card-accent, rgba(99, 102, 241, 0.2));
}

.persona-select-card.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border-color: var(--card-accent, #38bdf8);
  box-shadow: 0 0 25px -3px var(--card-accent, rgba(56, 189, 248, 0.35));
}

.persona-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.persona-avatar-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.persona-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.persona-title-group {
  flex: 1;
  min-width: 0;
}

.persona-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.persona-active-badge {
  font-size: 0.68rem;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 2px 8px;
  border-radius: 12px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.persona-role-title {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.persona-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0 0 16px 0;
  flex: 1;
}

.persona-card-footer {
  margin-top: auto;
}

.persona-action-btn {
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

.persona-action-btn:hover {
  background: var(--card-accent, rgba(99, 102, 241, 0.25));
  border-color: var(--card-accent, #818cf8);
  color: #fff;
}

.persona-action-btn.active {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  cursor: default;
}

@media (max-width: 640px) {
  .assistant-modal-container {
    padding: 16px;
    max-height: 92vh;
  }
  .assistant-modal-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .persona-avatar-wrapper {
    width: 46px;
    height: 46px;
  }
}

/* ==========================================================================
   12-Category Instant Action Touchpad & Category Guide
   ========================================================================== */
.category-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (max-width: 900px) {
  .category-choice-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

@media (max-width: 540px) {
  .category-choice-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
}

.cat-select-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  user-select: none;
}

.cat-select-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--card-color, #38bdf8);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.5), 0 0 14px var(--card-color, rgba(56, 189, 248, 0.25));
}

.cat-select-card:active {
  transform: scale(0.96);
}

.cat-select-card .card-icon {
  font-size: 1.45rem;
  line-height: 1;
}

.cat-select-card .card-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.2;
}

/* Category Guide Modal Styling */
.btn-guide-preset {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #c7d2fe;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-guide-preset:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: #818cf8;
  color: #fff;
  transform: translateY(-1px);
}

.guide-cat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  transition: all 0.2s ease;
}

.guide-cat-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.guide-subcat-badge {
  font-size: 0.68rem;
  color: #cbd5e1;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.guide-result-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  transition: all 0.2s ease;
}

.guide-result-card:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(3px);
}

.guide-pill-cat {
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
}

.guide-pill-subcat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 600;
}

.guide-pill-tag {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 600;
}

/* ======================================================== */
/* MERCHANT TRIAGE & FREQUENCY GROUP PANEL STYLING          */
/* ======================================================== */
.merchant-triage-card {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.triage-view-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.triage-view-btn.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(59, 130, 246, 0.4));
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(99, 102, 241, 0.5);
}

.triage-view-btn:hover:not(.active) {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.merchant-row:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  transform: translateY(-1px);
}

.merchant-chip-btn:hover {
  background: rgba(99, 102, 241, 0.2) !important;
  border-color: rgba(99, 102, 241, 0.5) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.merchant-cat-select:focus {
  outline: none;
  border-color: #6366f1 !important;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.triage-state-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.triage-state-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.triage-state-tab.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(59, 130, 246, 0.35));
  border-color: rgba(99, 102, 241, 0.6);
  color: #fff;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.25);
}

.triage-state-tab .tab-badge {
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 10px;
}

@keyframes goldenGlowPulse {
  0% {
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4), 0 0 45px rgba(217, 119, 6, 0.25), inset 0 0 15px rgba(245, 158, 11, 0.08);
  }
  50% {
    border-color: #fbbf24;
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.85), 0 0 70px rgba(217, 119, 6, 0.45), inset 0 0 25px rgba(245, 158, 11, 0.15);
  }
  100% {
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4), 0 0 45px rgba(217, 119, 6, 0.25), inset 0 0 15px rgba(245, 158, 11, 0.08);
  }
}

.golden-triage-highlight {
  border: 2px solid #f59e0b !important;
  animation: goldenGlowPulse 2.5s infinite ease-in-out !important;
  scroll-margin-top: 90px;
}

/* ==========================================================================
   CATEGORY FOLDERS / ACCORDION TRANSACTIONS VIEW
   ========================================================================== */

.tx-main-view-switcher {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tx-view-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tx-view-btn:hover:not(.active) {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.tx-view-btn.active {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
}

.category-folder-card {
  background: linear-gradient(135deg, rgba(22, 30, 49, 0.7), rgba(15, 23, 42, 0.85));
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}

.category-folder-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.category-folder-card.is-open {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.category-folder-header {
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.15s ease;
}

.category-folder-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.category-folder-chevron {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}

.category-folder-card.is-open .category-folder-chevron {
  transform: rotate(90deg);
  color: #38bdf8;
}

.category-folder-body {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.18);
}

.category-merchant-subblock {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 10px;
  transition: all 0.15s ease;
}

.category-merchant-subblock:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.12);
}

.folder-tx-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.15s ease;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.folder-tx-row:last-child {
  border-bottom: none;
}

.folder-tx-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* ======================================================== */
/* 📅 ULTRA-PREMIUM MONTH SELECTOR SYSTEM (HEADER & CARDS)   */
/* ======================================================== */
.month-selector-badge-wrap {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
  border: 1.5px solid rgba(59, 130, 246, 0.5);
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 3px 5px;
  gap: 5px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  position: relative;
}

.month-selector-badge-wrap:hover {
  border-color: rgba(99, 102, 241, 0.85);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.month-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.month-nav-btn:hover:not(.disabled) {
  background: rgba(59, 130, 246, 0.25);
  color: #fff;
  border-color: rgba(59, 130, 246, 0.6);
  transform: scale(1.08);
}

.month-nav-btn.disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

.month-select-input {
  background: transparent;
  color: #f8fafc;
  border: none;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 5px 8px;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  border-radius: 6px;
  transition: background 0.2s ease;
  letter-spacing: -0.01em;
}

.month-select-input:focus {
  background: rgba(255, 255, 255, 0.08);
}

.month-select-input option {
  background: #0f172a;
  color: #f8fafc;
  font-weight: 600;
  padding: 8px;
}

/* Card Inline Month Selector */
.card-month-select-pill {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
  border: 1.5px solid rgba(99, 102, 241, 0.45);
  border-radius: 10px;
  padding: 2px 5px;
  gap: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
}

.card-month-select-pill:hover {
  border-color: rgba(129, 140, 248, 0.85);
  box-shadow: 0 3px 14px rgba(99, 102, 241, 0.35);
}

.card-month-select-pill .month-select-input {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 6px;
  color: #e2e8f0;
}

.card-month-select-pill .month-nav-btn {
  width: 24px;
  height: 24px;
  font-size: 0.8rem;
}

/* ======================================================== */
/* 🛡️ PRIVACY MODE (MODALITÀ RISERVATA / DISCRETA)          */
/* ======================================================== */
.privacy-toggle-btn {
  background: rgba(30, 41, 67, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  border-radius: 20px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.privacy-toggle-btn:hover {
  background: rgba(45, 60, 95, 0.95);
  color: #fff;
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-1px);
}

body.privacy-mode-active .privacy-toggle-btn {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
}

body.privacy-mode-active .privacy-icon-unmasked {
  display: none !important;
}

body.privacy-mode-active .privacy-icon-masked {
  display: inline-block !important;
}

/* Privacy Blur rules for sensitive amounts & figures */
body.privacy-mode-active .privacy-mask,
body.privacy-mode-active .privacy-blur,
body.privacy-mode-active .sensitive-val,
body.privacy-mode-active .account-balance-val,
body.privacy-mode-active .paystub-net-val,
body.privacy-mode-active .forecast-val,
body.privacy-mode-active .advisor-text strong,
body.privacy-mode-active .advisor-insight-item strong {
  filter: blur(8px) !important;
  opacity: 0.8;
  user-select: none !important;
  transition: filter 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  cursor: pointer;
}

/* Quick peek on hover when privacy is active */
body.privacy-mode-active .privacy-mask:hover,
body.privacy-mode-active .privacy-blur:hover,
body.privacy-mode-active .sensitive-val:hover,
body.privacy-mode-active .account-balance-val:hover,
body.privacy-mode-active .paystub-net-val:hover,
body.privacy-mode-active .forecast-val:hover,
body.privacy-mode-active .advisor-text strong:hover,
body.privacy-mode-active .advisor-insight-item strong:hover {
  filter: blur(0px) !important;
  opacity: 1 !important;
}

/* Mobile Responsive compact icon-only button */
@media (max-width: 640px) {
  .privacy-toggle-btn {
    padding: 0 !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    justify-content: center !important;
    font-size: 1rem !important;
    flex-shrink: 0;
  }
  .privacy-toggle-btn .privacy-btn-text {
    display: none !important;
  }
}

/* Privacy Dropdown Switch Active State */
body.privacy-mode-active .privacy-switch-indicator {
  background: #10b981 !important;
  border-color: #10b981 !important;
}

body.privacy-mode-active .privacy-switch-dot {
  left: 17px !important;
}













