/* Monvelio Design System — Authentic Apple macOS & iOS Aesthetic */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", Menlo, Monaco, Consolas, monospace;

  /* Color Palette - Deep macOS Dark Mode */
  --bg-page: #08090d;
  --bg-surface: #0e1118;
  --bg-window: #131722;
  --bg-sidebar: #0f131c;
  --bg-card: rgba(26, 32, 46, 0.7);
  --bg-card-hover: rgba(35, 44, 64, 0.85);
  --bg-card-active: rgba(10, 132, 255, 0.15);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-glow: rgba(10, 132, 255, 0.35);

  --text-primary: #ffffff;
  --text-secondary: #9aa3b2;
  --text-muted: #647082;

  /* Native Apple & Monvelio Accents */
  --accent-blue: #0a84ff;
  --accent-blue-hover: #0070e0;
  --accent-green: #34d399;
  --accent-green-app: #339E4C;
  --accent-orange: #fb923c;
  --accent-red: #f87171;
  --accent-purple: #c084fc;
  --accent-teal: #2dd4bf;

  --nav-height: 68px;
  --container-max: 1220px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;

  /* Precision Apple Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.7);
  --shadow-window: 0 25px 70px -10px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  --shadow-glow: 0 0 50px rgba(10, 132, 255, 0.18);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(10, 132, 255, 0.14), transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 25%, rgba(99, 102, 241, 0.08), transparent 60%);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Typography & Badges */
.text-gradient {
  background: linear-gradient(180deg, #ffffff 40%, #9ba3b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #60a5fa 0%, #0a84ff 60%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #c7d2fe;
}

.badge-pill .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
}

/* Navigation Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(8, 9, 13, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent-blue);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(10, 132, 255, 0.35);
}

.btn-primary:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(10, 132, 255, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 4px 0;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: 0.3s;
}

/* Hero Section */
.hero-section {
  padding: 60px 0 50px;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto 36px;
}

.hero-title {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 18px 0 20px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 680px;
  margin: 0 auto 30px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.store-badge-link {
  transition: transform 0.2s ease, opacity 0.2s ease;
  display: inline-block;
}

.store-badge-link:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 500;
  flex-wrap: wrap;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* INTERACTIVE macOS APP INTERFACE CONTAINER */
.interactive-app-container {
  max-width: 1180px;
  margin: 28px auto 0;
  position: relative;
}

/* Quick Navigation Pills above Window */
.app-quick-switch,
.showcase-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.quick-tab-btn,
.showcase-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  background: transparent;
  border: none;
  cursor: pointer;
}

.quick-tab-btn:hover,
.showcase-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.quick-tab-btn.active,
.showcase-tab.active {
  color: #ffffff;
  background: var(--accent-blue);
  box-shadow: 0 2px 10px rgba(10, 132, 255, 0.4);
}

/* Authentic macOS Sequoia Window Frame */
.macos-window {
  background: var(--bg-window);
  border-radius: 14px;
  box-shadow: var(--shadow-window), var(--shadow-glow);
  overflow: hidden;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
}

/* macOS Titlebar / Toolbar */
.macos-titlebar {
  background: linear-gradient(180deg, #181d29 0%, #121620 100%);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: 48px;
}

.macos-traffic-lights {
  display: flex;
  gap: 8px;
  width: 70px;
  align-items: center;
}

.macos-traffic-lights span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}

.light-red { background: #ff5f56; border: 1px solid rgba(0,0,0,0.25); }
.light-yellow { background: #ffbd2e; border: 1px solid rgba(0,0,0,0.25); }
.light-green { background: #27c93f; border: 1px solid rgba(0,0,0,0.25); }

.macos-titlebar-center {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.macos-titlebar-center .window-title {
  color: var(--text-primary);
  font-weight: 600;
}

.entity-select-wrap {
  position: relative;
}

.entity-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #93c5fd;
  transition: all 0.2s ease;
}

.entity-picker-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.macos-titlebar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.toolbar-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.toolbar-btn.active-tool {
  background: rgba(10, 132, 255, 0.2);
  border-color: var(--accent-blue);
  color: #70baff;
}

.period-stepper-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

/* macOS SplitView Layout (Sidebar + Detail Content) */
.macos-splitview {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 640px;
  max-height: 740px;
  background: #111520;
}

.macos-sidebar::-webkit-scrollbar,
.macos-detail-content::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.macos-sidebar::-webkit-scrollbar-track,
.macos-detail-content::-webkit-scrollbar-track {
  background: transparent;
}

.macos-sidebar::-webkit-scrollbar-thumb,
.macos-detail-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

.macos-sidebar::-webkit-scrollbar-thumb:hover,
.macos-detail-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Authentic macOS Translucent Sidebar */
.macos-sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  padding: 12px 8px;
  overflow-y: auto;
  user-select: none;
}

.sidebar-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 10px 10px 4px;
}

.sidebar-tab-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
  margin-bottom: 2px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.sidebar-tab-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.sidebar-tab-item.active {
  background: var(--accent-blue);
  color: #ffffff;
  font-weight: 600;
}

.sidebar-tab-item .tab-icon {
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.9;
}

.sidebar-badge {
  margin-left: auto;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
}

.sidebar-tab-item.active .sidebar-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.sidebar-badge.badge-pro {
  background: rgba(10, 132, 255, 0.2);
  color: #70baff;
}

.sidebar-tab-item.active .sidebar-badge.badge-pro {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* Detail Workspace Content Area */
.macos-detail-content {
  overflow-y: auto;
  padding: 22px 24px;
  background: #111520;
  position: relative;
}

/* Interactive View Panels */
.interactive-view {
  display: none;
  animation: fadeIn 0.2s ease-out;
}

.interactive-view.active {
  display: block;
}

/* View Header */
.view-header-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.view-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.view-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(10, 132, 255, 0.15);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.view-title-main {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.view-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.view-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.view-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.view-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.view-action-btn.btn-accent {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #ffffff;
}

/* Segmented Scope Controls */
.segmented-control {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  padding: 2px;
  border-radius: 6px;
}

.segment-btn {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.segment-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 600;
}

/* In-App Alerts & Cards */
.app-alert-card {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.app-alert-warning {
  background: rgba(251, 146, 60, 0.1);
  border: 1px solid rgba(251, 146, 60, 0.25);
  color: #fdba74;
}

.app-alert-action {
  margin-left: auto;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.app-greeting-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-greeting-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.app-greeting-sub {
  font-size: 0.76rem;
  color: var(--accent-orange);
  margin-top: 2px;
}

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

.kpi-tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.kpi-tile:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.kpi-tile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.kpi-tile-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.kpi-chip {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}

.kpi-chip-positive {
  background: rgba(52, 211, 153, 0.15);
  color: #6ee7b7;
}

.kpi-chip-negative {
  background: rgba(248, 113, 113, 0.15);
  color: #fca5a5;
}

.kpi-tile-value {
  font-size: 1.35rem;
  font-weight: 750;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.kpi-tile-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.sparkline-svg {
  width: 100%;
  height: 28px;
  margin-top: 6px;
}

/* Swift Charts Visual Containers */
.charts-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.chart-card-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.chart-card-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.chart-card-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
}

.chart-legend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
  margin-right: 4px;
}

.dot-income { background: var(--accent-green-app); }
.dot-expense { background: #db3d38; }

.chart-svg-main {
  width: 100%;
  height: 140px;
}

.chart-readout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.2);
  padding: 6px 10px;
  border-radius: 6px;
  margin-top: 10px;
  font-size: 0.75rem;
}

/* In-App Table Styles */
.native-table-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.native-table-header {
  display: grid;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.native-table-row {
  display: grid;
  padding: 9px 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  align-items: center;
  transition: background 0.15s ease;
}

.native-table-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.native-table-row.row-selected {
  background: rgba(10, 132, 255, 0.12);
  color: #ffffff;
}

.font-mono {
  font-family: var(--font-mono);
}

.text-right {
  text-align: right;
}

.text-green { color: var(--accent-green); }
.text-red { color: var(--accent-red); }
.text-orange { color: var(--accent-orange); }

/* Status Badges */
.status-pill {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
}

.status-paid { background: rgba(52, 211, 153, 0.15); color: #6ee7b7; }
.status-unpaid { background: rgba(251, 146, 60, 0.15); color: #fdba74; }
.status-overdue { background: rgba(248, 113, 113, 0.15); color: #fca5a5; }

/* Interactive Simulator Slider in Cashflow View */
.simulator-box {
  background: rgba(10, 132, 255, 0.06);
  border: 1px solid rgba(10, 132, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 18px;
}

.slider-group {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.simulator-slider {
  flex: 1;
  accent-color: var(--accent-blue);
  cursor: pointer;
}

/* Privacy Mode Masking */
.privacy-active .maskable-money {
  filter: blur(5px);
  user-select: none;
  transition: filter 0.2s ease;
}

/* Transactions Table Toolbar & Filter Chips */
.table-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.filter-chips-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.filter-chip.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #ffffff;
  font-weight: 600;
}

.table-search-input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.76rem;
  color: var(--text-primary);
  width: 200px;
  outline: none;
  transition: border-color 0.2s ease;
}

.table-search-input:focus {
  border-color: var(--accent-blue);
}

/* Bank Reconciliation Formula & Checklist */
.recon-calc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.recon-calc-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.recon-calc-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 4px;
}

.recon-calc-val {
  font-size: 1.25rem;
  font-weight: 750;
  font-family: var(--font-mono);
}

.recon-checkbox {
  width: 15px;
  height: 15px;
  accent-color: var(--accent-blue);
  cursor: pointer;
}

/* Donut & Pie Chart Styles */
.donut-grid-split {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: center;
}

.donut-chart-wrap {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto;
}

.donut-center-readout {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.donut-center-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.donut-center-val {
  font-size: 1.15rem;
  font-weight: 750;
  font-family: var(--font-mono);
  color: var(--text-primary);
  margin-top: 2px;
}

.donut-legend-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.donut-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-size: 0.8rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.donut-legend-item:hover, .donut-legend-item.highlight {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.donut-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.donut-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* Native iPhone Companion Frame */
.iphone-mockup-wrapper {
  max-width: 380px;
  margin: 10px auto;
  background: #090b10;
  border: 5px solid #232a3b;
  border-radius: 46px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  position: relative;
}

.iphone-notch-bar {
  display: flex;
  justify-content: center;
  padding-top: 10px;
  background: #090b10;
}

.dynamic-island {
  width: 120px;
  height: 28px;
  background: #000000;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 0.65rem;
  color: #ffffff;
}

.iphone-screen-content {
  padding: 16px;
  min-height: 440px;
}

.iphone-ocr-card {
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.15) 0%, rgba(20, 24, 38, 0.7) 100%);
  border: 1px solid rgba(10, 132, 255, 0.3);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
  position: relative;
}

.vision-scan-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(10, 132, 255, 0.25);
  color: #70baff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.iphone-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #090b10;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.iphone-nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-muted);
  cursor: pointer;
}

.iphone-nav-tab.active {
  color: var(--accent-blue);
  font-weight: 600;
}

/* Bento Grid Showcase */
.section {
  padding: 90px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-title {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  margin: 14px 0 16px;
  line-height: 1.2;
}

.section-desc {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.bento-col-8 { grid-column: span 8; }
.bento-col-4 { grid-column: span 4; }
.bento-col-6 { grid-column: span 6; }
.bento-col-12 { grid-column: span 12; }

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--bg-card-hover);
}

.bento-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-blue);
  margin-bottom: 10px;
}

.bento-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.bento-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
}

.bento-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 14px;
}

.bento-bullets li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.bento-bullets li strong {
  color: var(--text-primary);
}

.bento-bullet-icon {
  color: var(--accent-blue);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}

/* 35 Features Hub Section */
.features-tabs-container {
  margin-top: 36px;
}

.feature-group-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.group-nav-btn {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.group-nav-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.group-nav-btn.active {
  color: #ffffff;
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  box-shadow: 0 2px 12px rgba(10, 132, 255, 0.4);
}

.feature-group-panel {
  display: none;
}

.feature-group-panel.active {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  animation: fadeIn 0.2s ease;
}

.feature-item-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.2s ease;
}

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

.feature-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(10, 132, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #70baff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.feature-item-name {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.feature-item-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Architecture & Security */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.arch-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 18px;
}

.arch-card-header {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  margin-bottom: 6px;
}

.arch-card-val {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.arch-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Pricing Section */
.pricing-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.billing-toggle-btn {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.billing-toggle-btn.active {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 880px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(20, 26, 40, 0.9) 0%, rgba(14, 18, 28, 0.9) 100%);
  border-color: rgba(10, 132, 255, 0.4);
  box-shadow: 0 0 50px rgba(10, 132, 255, 0.15);
}

.featured-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-blue);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(10, 132, 255, 0.4);
}

.plan-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.plan-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.plan-price {
  font-size: 2.85rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.plan-period {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.plan-subtext {
  font-size: 0.78rem;
  color: var(--accent-green);
  font-weight: 500;
  margin-bottom: 24px;
  min-height: 20px;
}

.plan-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 32px;
}

.plan-features-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features-list li.pro-highlight {
  color: var(--text-primary);
  font-weight: 600;
}

.plan-btn {
  margin-top: auto;
  width: 100%;
  text-align: center;
  padding: 12px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 10px;
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.02rem;
  font-weight: 600;
  text-align: left;
  color: var(--text-primary);
}

.faq-chevron {
  transition: transform 0.25s ease;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-blue);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 22px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

/* Site Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #06070a;
  padding: 56px 0 36px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .brand {
  margin-bottom: 12px;
}

.footer-nav-col h4 {
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-nav-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-nav-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.78rem;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .macos-splitview {
    grid-template-columns: 200px 1fr;
  }
  .bento-col-8, .bento-col-4, .bento-col-6 {
    grid-column: span 12;
  }
  .arch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .charts-split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .macos-splitview {
    grid-template-columns: 1fr;
    max-height: none;
  }
  .macos-sidebar {
    display: none;
  }
  .site-header .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #0b0f17;
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border-subtle);
    gap: 18px;
  }
  .site-header .nav-links.mobile-open {
    display: flex;
  }
  .mobile-toggle {
    display: flex;
  }
  .nav-actions .btn-sm {
    display: none;
  }
  .arch-grid {
    grid-template-columns: 1fr;
  }
  .macos-titlebar-actions .period-stepper-control {
    display: none;
  }
}

@media (max-width: 640px) {
  .macos-titlebar {
    height: auto;
    padding: 8px 12px;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .macos-titlebar-center .window-title {
    display: none;
  }
  .entity-picker-btn {
    font-size: 0.72rem;
    padding: 2px 7px;
  }
  .toolbar-btn {
    font-size: 0.72rem;
    padding: 0 6px;
    height: 24px;
  }
  .kpi-tiles-grid {
    grid-template-columns: 1fr;
  }
  .recon-calc-grid {
    grid-template-columns: 1fr;
  }
  .donut-grid-split {
    grid-template-columns: 1fr;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   LEVEL 2: ADVANCED INTERACTIVE MACOS SEQUOIA SUITE STYLES
   ========================================================================== */

/* Traffic Light Glyphs on Hover */
.macos-traffic-lights {
  position: relative;
  cursor: pointer;
}

.macos-traffic-lights:hover .light-red::after {
  content: "✕";
  font-size: 8px;
  color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 12px;
  font-weight: 900;
}

.macos-traffic-lights:hover .light-yellow::after {
  content: "−";
  font-size: 9px;
  color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 12px;
  font-weight: 900;
}

.macos-traffic-lights:hover .light-green::after {
  content: "⤢";
  font-size: 8px;
  color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 12px;
  font-weight: 900;
}

/* Expansive Full-Width Window Mode */
.macos-window.macos-expanded {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.macos-window.macos-expanded .macos-splitview {
  min-height: 750px;
  max-height: 850px;
}

/* Spotlight Command Palette Button in Titlebar */
.toolbar-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.76rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.toolbar-search-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

.toolbar-search-btn kbd {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 0.66rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

/* Spotlight Command Palette Modal */
.spotlight-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
  animation: fadeIn 0.15s ease-out;
}

.spotlight-overlay.active {
  display: flex;
}

.spotlight-dialog {
  width: 90%;
  max-width: 580px;
  background: #151924;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  animation: slideDownModal 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownModal {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.spotlight-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.spotlight-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.05rem;
  color: #ffffff;
  font-family: inherit;
}

.spotlight-input::placeholder {
  color: var(--text-muted);
}

.spotlight-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
}

.spotlight-group-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 8px 10px 4px;
}

.spotlight-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.spotlight-item:hover, .spotlight-item.active {
  background: var(--accent-blue);
  color: #ffffff;
}

.spotlight-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spotlight-kbd {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  opacity: 0.8;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.25);
}

/* Sheet Modal (Quick Entry) */
.macos-sheet-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
}

.macos-sheet-overlay.active {
  display: flex;
}

.macos-sheet-dialog {
  width: 90%;
  max-width: 520px;
  background: #171c28;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: none;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  padding: 20px 24px;
  animation: sheetSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.sheet-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.sheet-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.sheet-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.sheet-field-full {
  grid-column: span 2;
}

.sheet-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.sheet-input, .sheet-select {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 0.82rem;
  color: #ffffff;
  outline: none;
  font-family: inherit;
}

.sheet-input:focus, .sheet-select:focus {
  border-color: var(--accent-blue);
}

.sheet-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Transaction Inspector Drawer */
.inspector-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 360px;
  background: #141824;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.5);
  z-index: 90;
  display: none;
  flex-direction: column;
  animation: slideInRight 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.inspector-drawer.active {
  display: flex;
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

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

.drawer-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
}

.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
}

.journal-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
}

.journal-header {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.journal-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* Dynamic Island macOS HUD Toast */
.macos-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  background: #181d29;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 18px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #ffffff;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.macos-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Scenario 1-Click Preset Chips */
.scenario-presets-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.scenario-preset-chip {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.scenario-preset-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.scenario-preset-chip.active {
  background: rgba(10, 132, 255, 0.2);
  border-color: var(--accent-blue);
  color: #70baff;
}

/* Tax Sub-Panels */
.tax-subpanel {
  display: none;
  animation: fadeIn 0.2s ease-out;
}

.tax-subpanel.active {
  display: block;
}

/* Invoice PDF Preview Sheet Modal */
.pdf-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pdf-modal-overlay.active {
  display: flex;
}

.pdf-sheet-frame {
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  background: #ffffff;
  color: #0f172a;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  overflow-y: auto;
  position: relative;
  padding: 36px 42px;
  animation: slideDownModal 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pdf-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
}

.pdf-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}
