/* ==========================================================================
   Luma Lead - Executive 3D Design System (White / Light Executive Finish)
   Tactile Depth, Studio Lighting, Physical Micro-Bevels & Slate Accents
   Typography: Plus Jakarta Sans & Outfit
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Crisp Executive White Foundation */
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #fcfdfe;
  --bg-sidebar: #ffffff;
  --bg-topbar: #ffffff;
  --bg-dock: rgba(255, 255, 255, 0.95);

  /* 3D Physical Lighting & Bevels */
  --border-card: 1px solid #e2e8f0;
  --border-card-hover: 1px solid #cbd5e1;
  --border-light: #f1f5f9;
  --bevel-top: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --bevel-bottom: inset 0 -1px 0 rgba(0, 0, 0, 0.04);

  /* Studio Multi-Layered Shadows (Physical 3D Depth on White) */
  --shadow-3d-idle:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 2px 4px rgba(15, 23, 42, 0.04),
    0 8px 20px -3px rgba(15, 23, 42, 0.07);

  --shadow-3d-hover:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 6px 12px -2px rgba(15, 23, 42, 0.08),
    0 16px 28px -4px rgba(15, 23, 42, 0.12);

  --shadow-dock:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 15px 35px -5px rgba(15, 23, 42, 0.15);

  /* Dynamic Accent Theme (Injected dynamically from DB) */
  --accent-primary: #2563eb;
  --accent-primary-hover: #1d4ed8;
  --accent-primary-light: rgba(37, 99, 235, 0.12);
  --accent-slate: #64748b;
  --accent-success: #16a34a;
  --accent-warning: #d97706;
  --accent-danger: #dc2626;
  --accent-info: #0284c7;

  /* Typography */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

/* Global Resets & Underline Removal */
*,
*::before,
*::after {
  box-sizing: border-box;
}

a,
a:hover,
a:focus,
a:active,
a:visited {
  text-decoration: none !important;
  color: inherit;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  background-image:
    radial-gradient(at 0% 0%, #ffffff 0px, transparent 50%),
    radial-gradient(at 100% 100%, #e2e8f0 0px, transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  margin: 0;
  padding-bottom: 95px;
  /* Clearance for floating action dock */
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text-main);
}

/* Clean Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* ==========================================================================
   3D Tactile Cards & Panels (White Theme)
   ========================================================================== */
.glass-card {
  background: var(--bg-card);
  border: var(--border-card);
  border-radius: 16px;
  box-shadow: var(--shadow-3d-idle);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.2s ease;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  pointer-events: none;
}

.glass-card:hover {
  border-color: var(--border-card-hover);
}

/* 3D KPI Stat Cards */
.kpi-stat-card {
  background: #ffffff;
  padding: 1.4rem;
  border-radius: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 135px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: var(--border-card);
  box-shadow: var(--shadow-3d-idle);
}

.kpi-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-3d-hover);
  border-color: var(--border-card-hover);
}

.kpi-stat-card .stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kpi-stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.kpi-cyan .stat-icon {
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-primary);
  border-color: rgba(37, 99, 235, 0.2);
}

.kpi-purple .stat-icon {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
  border-color: rgba(124, 58, 237, 0.2);
}

.kpi-emerald .stat-icon {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
  border-color: rgba(22, 163, 74, 0.2);
}

.kpi-amber .stat-icon {
  background: rgba(217, 119, 6, 0.1);
  color: #d97706;
  border-color: rgba(217, 119, 6, 0.2);
}

.kpi-stat-card .stat-value {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  margin: 0.5rem 0 0.1rem;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.kpi-stat-card .stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

/* ==========================================================================
   Tactile 3D Buttons & Controls
   ========================================================================== */
.btn-3d {
  font-weight: 600;
  border-radius: 10px;
  padding: 0.6rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
}

.btn-3d:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.btn-primary,
.btn-primary:focus {
  background: var(--accent-primary) !important;
  border-color: var(--accent-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--accent-primary-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
  color: #ffffff !important;
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-outline-primary {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: #ffffff;
}

.btn-outline-primary:hover {
  background: var(--accent-primary);
  color: #ffffff;
}

.btn-outline-secondary {
  border-color: #cbd5e1;
  color: #475569;
  background: #ffffff;
}

.btn-outline-secondary:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

/* ==========================================================================
   Executive Sidebar Navigation (White Theme)
   ========================================================================== */
.sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid #e2e8f0;
  box-shadow: 2px 0 15px rgba(15, 23, 42, 0.04);
  width: 255px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
}

.sidebar .brand {
  padding: 0.5rem 0.5rem 1.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
  /* display: flex; */
  /* align-items: center; */
  /* gap: 12px; */
  text-align: center;
}

.sidebar .brand-logo-img {
  max-height: 50px;
  max-width: 150px;
  object-fit: contain;
}

.sidebar .brand-badge {
  background: var(--accent-primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 6px 10px;
  border-radius: 9px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar .brand-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.sidebar a {
  padding: 11px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 5px;
  transition: all 0.15s ease;
  position: relative;
}

.sidebar a i {
  font-size: 1.05rem;
  width: 22px;
  text-align: center;
}

.sidebar a:hover {
  color: var(--text-main);
  background: #f8fafc;
  transform: translateX(3px);
}

.sidebar a.active {
  color: var(--accent-primary);
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.sidebar a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  bottom: 25%;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--accent-primary);
}

/* Main Content Area */
.main-content {
  margin-left: 255px;
  padding: 1.75rem 2rem;
}

.navbar-top {
  background: var(--bg-topbar);
  border: var(--border-card);
  border-radius: 14px;
  padding: 0.85rem 1.4rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-3d-idle);
}

.theme-toggle-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04);
}

.theme-toggle-btn:hover {
  color: var(--text-main);
  border-color: #94a3b8;
  transform: translateY(-1px);
}

/* ==========================================================================
   Deal Flow Redesigned Matrix (White Theme)
   ========================================================================== */
.dealflow-container {
  width: 100%;
}

/* Stage Deck Navigator */
.stage-deck-navigator {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 2px 14px 2px;
  margin-bottom: 1.25rem;
}

.stage-deck-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  white-space: nowrap;
  user-select: none;
}

.stage-deck-item:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  background: #fcfdfe;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

.stage-deck-item.active {
  border-color: var(--accent-primary);
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.stage-deck-item.active .deck-dot {
  transform: scale(1.3);
  box-shadow: 0 0 8px currentColor;
}

.deck-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  transition: transform 0.2s ease;
}

.deck-dot-all {
  background: #64748b;
}

.deck-dot-new {
  background: #3b82f6;
}

.deck-dot-contacted {
  background: #818cf8;
}

.deck-dot-followup {
  background: #f59e0b;
}

.deck-dot-quotation {
  background: #0284c7;
}

.deck-dot-converted {
  background: #16a34a;
}

.deck-dot-lost {
  background: #dc2626;
}

.deck-label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-main);
}

.deck-counter {
  font-size: 0.74rem;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 800;
  background: #f1f5f9;
  color: var(--text-muted);
}

.stage-deck-item.active .deck-counter {
  background: var(--accent-primary);
  color: #fff;
}

/* Tactile Deal Matrix Grid */
.deal-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.deal-tactile-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.15rem;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.2s ease;
  box-shadow: var(--shadow-3d-idle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.deal-tactile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
}

.deal-tactile-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-3d-hover);
}

.deal-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.deal-card-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.25;
}

.deal-card-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.deal-card-body {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.deal-card-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stage-advance-select {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--text-main);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  max-width: 135px;
}

.stage-advance-select:focus {
  border-color: var(--accent-primary);
  outline: none;
}

/* ==========================================================================
   Table & Form Controls (White Theme)
   ========================================================================== */
.table-glass {
  width: 100%;
  color: var(--text-main);
  vertical-align: middle;
  border-collapse: separate;
  border-spacing: 0 6px;
}

.table-glass thead th {
  background: transparent;
  color: #64748b;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  padding: 8px 14px;
}

.table-glass tbody tr {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: all 0.15s ease;
}

.table-glass tbody tr:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

.table-glass tbody td {
  border: none;
  padding: 12px 14px;
  font-size: 0.9rem;
}

.table-glass tbody tr td:first-child {
  border-radius: 10px 0 0 10px;
}

.table-glass tbody tr td:last-child {
  border-radius: 0 10px 10px 0;
}

/* Form Controls */
.form-control,
.form-select {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: var(--text-main) !important;
  border-radius: 10px !important;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

.form-control:focus,
.form-select:focus {
  background: #ffffff !important;
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
  color: var(--text-main) !important;
}

.form-control::placeholder {
  color: #94a3b8;
}

/* Status Badges */
.badge-status {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-new {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.badge-contacted {
  background: rgba(129, 140, 248, 0.1);
  color: #4338ca;
  border: 1px solid rgba(129, 140, 248, 0.25);
}

.badge-followup {
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-quotation {
  background: rgba(2, 132, 199, 0.1);
  color: #0369a1;
  border: 1px solid rgba(2, 132, 199, 0.25);
}

.badge-converted {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
  border: 1px solid rgba(22, 163, 74, 0.25);
}

.badge-lost {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
  border: 1px solid rgba(220, 38, 38, 0.25);
}

/* Quick Icon Button */
.btn-icon-xs {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  transition: transform 0.12s ease;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  cursor: pointer;
}

.btn-icon-xs:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

/* 3D Toast Alert */
.toast-3d {
  position: fixed;
  top: 24px;
  right: 24px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: var(--text-main);
  padding: 12px 18px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  transform: translateY(-50px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.toast-3d.show {
  transform: translateY(0);
  opacity: 1;
}

/* Floating 3D Action Dock (White Theme) */
.glass-dock {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-dock);
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-dock);
  z-index: 1030;
  backdrop-filter: blur(14px);
}

.dock-item {
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 58px;
}

.dock-item i {
  font-size: 1.15rem;
}

.dock-item:hover {
  color: var(--text-main);
  background: #f1f5f9;
  transform: translateY(-2px);
}

.dock-item.primary {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.dock-divider {
  width: 1px;
  height: 28px;
  background: #e2e8f0;
}

/* AI Smart Advisor Card (White Executive Aesthetic) */
.ai-advisor-panel {
  background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
  border: 1px solid #ddd6fe;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.08);
  position: relative;
  overflow: hidden;
}

.ai-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124, 58, 237, 0.1);
  color: #6d28d9;
  border: 1px solid rgba(124, 58, 237, 0.25);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ai-insight-item {
  background: #ffffff;
  border: 1px solid #ede9fe;
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.04);
}

.ai-insight-item:hover {
  background: #fdfcff;
  border-color: #c4b5fd;
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.08);
}

/* Theme Color Chooser Chips */
.theme-palette-chip {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 2px solid transparent;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.15);
}

.theme-palette-chip:hover {
  transform: scale(1.1);
}

.theme-palette-chip.active {
  border-color: #0f172a;
  box-shadow: 0 0 12px rgba(15, 23, 42, 0.3);
}

/* Code Snippet Box (White / Dark Syntax Combo) */
.code-snippet-box {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 1rem;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.85rem;
  color: #f1f5f9;
  position: relative;
  overflow-x: auto;
}

.code-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc;
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.code-copy-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

/* Nav Tabs 3D (White Theme) */
.nav-tabs-3d {
  border-bottom: 1px solid #e2e8f0;
  gap: 8px;
}

.nav-tabs-3d .nav-link {
  color: var(--text-muted);
  border: 1px solid transparent;
  border-radius: 10px 10px 0 0;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  background: transparent;
  transition: all 0.15s ease;
}

.nav-tabs-3d .nav-link:hover {
  color: var(--text-main);
  background: #f1f5f9;
}

.nav-tabs-3d .nav-link.active {
  color: var(--accent-primary);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-bottom-color: #ffffff;
  box-shadow: inset 0 2px 0 var(--accent-primary);
}

/* Modals */
.modal-content.glass-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.15) !important;
}

.btn-close-white {
  filter: none !important;
}

/* ==========================================================================
   Slow Executive 3D Fade-In-Up Animations
   ========================================================================== */
@keyframes fadeInUp3D {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
  }
  60% {
    opacity: 0.9;
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.kpi-stat-card,
.glass-card,
.deal-tactile-card,
.ai-advisor-panel,
.auth-container-3d,
.animate-fade-in-up {
  animation: fadeInUp3D 0.95s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Staggered Delay Hierarchy */
.kpi-stat-card:nth-child(1) { animation-delay: 0.08s; }
.kpi-stat-card:nth-child(2) { animation-delay: 0.18s; }
.kpi-stat-card:nth-child(3) { animation-delay: 0.28s; }
.kpi-stat-card:nth-child(4) { animation-delay: 0.38s; }

.deal-matrix-grid .deal-tactile-card:nth-child(3n+1) { animation-delay: 0.08s; }
.deal-matrix-grid .deal-tactile-card:nth-child(3n+2) { animation-delay: 0.18s; }
.deal-matrix-grid .deal-tactile-card:nth-child(3n+3) { animation-delay: 0.28s; }

.table-glass tbody tr {
  animation: fadeInUp3D 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.table-glass tbody tr:nth-child(1) { animation-delay: 0.04s; }
.table-glass tbody tr:nth-child(2) { animation-delay: 0.08s; }
.table-glass tbody tr:nth-child(3) { animation-delay: 0.12s; }
.table-glass tbody tr:nth-child(4) { animation-delay: 0.16s; }
.table-glass tbody tr:nth-child(5) { animation-delay: 0.20s; }
.table-glass tbody tr:nth-child(6) { animation-delay: 0.24s; }

/* Counter Numbers Tabular Easing Polish */
.stat-value,
.counter-number {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.03em;
  display: inline-block;
  font-variant-numeric: tabular-nums;
  transition: transform 0.25s ease, color 0.25s ease;
}