/* ==========================================================================
   MFD GROWTH OS — 2026 ULTRA-MODERN GLASSMORPHIC & LIQUID MOTION DESIGN SYSTEM
   Deep Navy Obsidian (#040711) + Liquid Aurora Mesh + Frosted Glass Depth
   ========================================================================== */

:root {
  --bg-obsidian: #040711;
  --bg-surface: rgba(10, 17, 40, 0.7);
  --bg-surface-elevated: rgba(15, 27, 60, 0.8);
  --bg-card: rgba(14, 24, 52, 0.55);
  --bg-card-hover: rgba(22, 38, 80, 0.75);

  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-bright: rgba(255, 255, 255, 0.2);
  --border-gold-glow: rgba(245, 158, 11, 0.4);
  --border-blue-glow: rgba(56, 189, 248, 0.4);

  --gold-primary: #f59e0b;
  --gold-hover: #d97706;
  --gold-glow: rgba(245, 158, 11, 0.25);
  --navy-deep: #0a1128;
  --navy-accent: #1e3a8a;
  --cyan-accent: #06b6d4;
  --blue-neon: #38bdf8;
  --emerald-growth: #10b981;
  --rose-alert: #f43f5e;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  --text-gold: #fbbf24;

  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --glass-blur: blur(14px);
  --glass-shadow: 0 12px 40px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --glass-shadow-hover: 0 20px 50px -10px rgba(6, 182, 212, 0.15), 0 0 30px rgba(245, 158, 11, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-obsidian);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Background Liquid Mesh & Ambient Glow */
.ambient-background-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: radial-gradient(circle at 15% 20%, var(--mesh-1, rgba(30, 58, 138, 0.4)) 0%, transparent 45%),
              radial-gradient(circle at 85% 15%, var(--mesh-2, rgba(245, 158, 11, 0.15)) 0%, transparent 40%),
              radial-gradient(circle at 50% 80%, var(--mesh-3, rgba(6, 182, 212, 0.2)) 0%, transparent 50%),
              radial-gradient(circle at 75% 70%, var(--mesh-4, rgba(16, 185, 129, 0.12)) 0%, transparent 45%),
              var(--bg-obsidian);
  animation: auroraMeshPulse 20s ease-in-out infinite alternate;
}

@keyframes auroraMeshPulse {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.05) translate(-10px, 15px); }
  100% { transform: scale(1) translate(10px, -10px); }
}

/* Particle Canvas Overlay */
#mfd-particle-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.75;
}

/* Glassmorphism Containers */
.glass-panel {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  box-shadow: var(--glass-shadow);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}

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

.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-bright);
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-4px) scale(1.008);
}

/* Shimmer Border Beam */
.border-beam {
  position: relative;
}
.border-beam::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, transparent 30%, var(--gold-primary) 50%, var(--blue-neon) 70%, transparent 90%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
  animation: beamRotate 8s linear infinite;
}

@keyframes beamRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Layout Framework */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Floating Glass Sidebar */
.glass-sidebar {
  width: 270px;
  height: calc(100vh - 28px);
  margin: 14px 0 14px 14px;
  position: fixed;
  background: rgba(8, 14, 32, 0.75);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  z-index: 50;
  box-shadow: var(--glass-shadow);
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-glass);
}

.brand-logo-gem {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-gradient, linear-gradient(135deg, #1e3a8a, #f59e0b));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--gold-glow);
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #ffffff, #e2e8f0, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-primary);
  font-weight: 600;
}

/* Navigation Links */
.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
}

.nav-item a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-item a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(4px);
}

.nav-item.active a {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(30, 58, 138, 0.5), rgba(245, 158, 11, 0.15));
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}

.nav-item.active a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-primary);
}

.nav-icon {
  font-size: 1.15rem;
  width: 22px;
  text-align: center;
}

/* Collapsible groups in the sidebar menu */
.nav-group-head {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 8px 12px; border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: var(--text-muted); font: inherit; font-weight: 600; font-size: 0.88rem; cursor: pointer; text-align: left;
  transition: var(--transition-smooth);
}
.nav-group-head > span:not(.nav-icon):not(.nav-badge):not(.nav-caret) { flex: 1; min-width: 0; line-height: 1.25; }
.nav-group-head:hover { color: #ffffff; background: rgba(255, 255, 255, 0.06); }
.nav-group.open > .nav-group-head { color: #ffffff; }
.nav-caret { margin-left: auto; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; transition: transform .2s ease; flex-shrink: 0; }
.nav-group.open > .nav-group-head .nav-caret { transform: rotate(225deg) translateY(-2px); }
/* the group's own badge only shows while it is closed, so a waiting item is never hidden */
.nav-group.open > .nav-group-head .nav-group-badge { display: none; }
.nav-sub-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s ease; }
.nav-group.open > .nav-sub-wrap { grid-template-rows: 1fr; }
.nav-sub { list-style: none; overflow: hidden; margin: 0 0 0 18px; padding: 0 0 0 6px; border-left: 1px solid var(--border-glass); display: flex; flex-direction: column; gap: 0; min-height: 0; }
.nav-group.open > .nav-sub-wrap > .nav-sub { margin-top: 2px; margin-bottom: 3px; }
.nav-sub .nav-item a { padding: 6px 10px; font-size: 0.84rem; gap: 10px; }
.nav-sub .nav-item a:hover { transform: none; }
.nav-sub .nav-icon { font-size: 1rem; }
.nav-sub .nav-item.active a::before { left: -9px; }
/* The group holding the current page starts open with a gold accent on its rail; it can still be collapsed */
.nav-group.current > .nav-sub-wrap > .nav-sub { border-left-color: rgba(245, 158, 11, 0.35); }
html[data-theme="light"] .nav-group-head { color: var(--text-muted); }
html[data-theme="light"] .nav-group-head:hover, html[data-theme="light"] .nav-group.open > .nav-group-head { color: var(--text-main); background: rgba(15, 23, 42, 0.06); }

/* User Profile Card inside Sidebar */
.sidebar-profile {
  margin-top: auto;
  padding: 14px;
  background: rgba(14, 24, 52, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid var(--gold-primary);
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--gold-primary);
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arn-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold-primary);
  background: rgba(245, 158, 11, 0.12);
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

/* Main Viewport */
.main-viewport {
  margin-left: 298px;
  flex: 1;
  padding: 20px 28px 40px 14px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Top Glass Navigation Bar */
.glass-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: rgba(10, 17, 40, 0.7);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

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

.domain-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  animation: pulseLight 2s infinite;
}

@keyframes pulseLight {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px #34d399; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sla-countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(30, 58, 138, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-neon);
}

/* Glass Buttons */
.btn-glass-primary {
  background: var(--btn-primary-gradient, linear-gradient(135deg, #1e3a8a, #d97706));
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px var(--gold-glow, rgba(245, 158, 11, 0.25));
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-glass-primary:hover {
  background: var(--btn-primary-hover, linear-gradient(135deg, #2563eb, #f59e0b));
  box-shadow: 0 6px 25px var(--gold-glow, rgba(245, 158, 11, 0.4));
  transform: translateY(-2px);
}

.btn-glass-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-glass-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-glass-bright);
}

.btn-glass-whatsapp {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 9px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
  transition: var(--transition-smooth);
}

.btn-glass-whatsapp:hover {
  background: linear-gradient(135deg, #10b981, #34d399);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
  transform: translateY(-2px);
}

/* Bento Grid KPI Ribbon */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.kpi-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

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

.kpi-icon-bubble {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
}

.kpi-value {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.kpi-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
}

.badge-growth {
  color: #34d399;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Priority Badges */
.badge-priority {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-hot {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.4);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.25);
}

.badge-warm {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-cold {
  background: rgba(71, 85, 105, 0.2);
  color: #94a3b8;
  border: 1px solid rgba(71, 85, 105, 0.4);
}

/* Kanban Board Architecture */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  min-height: 600px;
}

.kanban-column {
  background: rgba(10, 18, 42, 0.45);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  padding: 14px;
  gap: 12px;
}

.column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-glass);
}

.column-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.column-count {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.column-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 450px;
}

.lead-card {
  padding: 16px;
  cursor: grab;
  user-select: none;
}

.lead-card:active {
  cursor: grabbing;
}

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

.lead-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.lead-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.lead-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border-glass);
}

.drip-indicator {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--cyan-accent);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* AI Copilot Studio */
.copilot-modal {
  max-width: 760px;
  margin: 0 auto;
  padding: 30px;
}

.copilot-header {
  text-align: center;
  margin-bottom: 24px;
}

.copilot-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: linear-gradient(90deg, rgba(30, 58, 138, 0.4), rgba(245, 158, 11, 0.2));
  border: 1px solid var(--border-gold-glow);
  border-radius: 30px;
  color: var(--text-gold);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.glass-input, .glass-textarea, .glass-select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(8, 14, 34, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition-smooth);
}

.glass-input:focus, .glass-textarea:focus, .glass-select:focus {
  border-color: var(--blue-neon);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
  background: rgba(14, 24, 52, 0.8);
}

.copilot-result-box {
  padding: 20px;
  background: rgba(6, 11, 26, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 14px;
  margin-top: 20px;
  position: relative;
}

.compliance-check-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  color: #34d399;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 14px;
}

/* Media Studio Grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.creative-preview-card {
  display: flex;
  flex-direction: column;
}

.creative-canvas-mockup {
  height: 280px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 14px 14px 0 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
}

.creative-watermark-band {
  background: rgba(4, 7, 17, 0.85);
  backdrop-filter: blur(8px);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.creative-disclaimer-strip {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.8);
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1.2;
}

/* Regulatory Mandatory Footer */
.regulatory-footer {
  margin-top: auto;   /* sits at the bottom of the screen on short pages, after the content on long ones */
  padding: 20px 24px;
  background: rgba(6, 10, 24, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  font-size: 0.78rem;
  color: var(--text-faint);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}
/* ==========================================================================
   COLOR PALETTES ENGINE (4 Supported Preset Schemes)
   - DeepNavyGold (Default)
   - ObsidianEmerald
   - RoyalBlueNeon
   - SlateProfessional
   ========================================================================== */

/* 1. Deep Navy Gold (Default) */
[data-palette=DeepNavyGold],
[data-palette=NavyGold],
.palette-deepnavygold,
.palette-navygold {
  --gold-primary: #f59e0b;
  --gold-hover: #d97706;
  --gold-glow: rgba(245, 158, 11, 0.25);
  --border-gold-glow: rgba(245, 158, 11, 0.4);
  --navy-accent: #1e3a8a;
  --blue-neon: #38bdf8;
  --brand-gradient: linear-gradient(135deg, #1e3a8a, #f59e0b);
  --btn-primary-gradient: linear-gradient(135deg, #1e3a8a, #d97706);
  --btn-primary-hover: linear-gradient(135deg, #2563eb, #f59e0b);
  --badge-growth-bg: rgba(245, 158, 11, 0.15);
  --badge-growth-color: #f59e0b;
  --card-border-glow: rgba(245, 158, 11, 0.4);
  --mesh-1: rgba(30, 58, 138, 0.4);
  --mesh-2: rgba(245, 158, 11, 0.15);
  --mesh-3: rgba(6, 182, 212, 0.2);
  --mesh-4: rgba(16, 185, 129, 0.12);
  --bg-obsidian: #040711;
  --bg-surface: rgba(10, 17, 40, 0.7);
  --bg-card: rgba(14, 24, 52, 0.55);
}

/* 2. Obsidian Emerald (Growth & Wealth Milestones) */
[data-palette=ObsidianEmerald],
.palette-obsidianemerald {
  --gold-primary: #10b981;
  --gold-hover: #059669;
  --gold-glow: rgba(16, 185, 129, 0.25);
  --border-gold-glow: rgba(16, 185, 129, 0.4);
  --navy-accent: #064e3b;
  --blue-neon: #34d399;
  --brand-gradient: linear-gradient(135deg, #064e3b, #10b981);
  --btn-primary-gradient: linear-gradient(135deg, #047857, #10b981);
  --btn-primary-hover: linear-gradient(135deg, #059669, #34d399);
  --badge-growth-bg: rgba(16, 185, 129, 0.15);
  --badge-growth-color: #10b981;
  --card-border-glow: rgba(16, 185, 129, 0.4);
  --mesh-1: rgba(6, 78, 59, 0.45);
  --mesh-2: rgba(16, 185, 129, 0.2);
  --mesh-3: rgba(52, 211, 153, 0.15);
  --mesh-4: rgba(4, 120, 87, 0.25);
  --bg-obsidian: #020d09;
  --bg-surface: rgba(4, 24, 16, 0.75);
  --bg-card: rgba(6, 32, 22, 0.6);
}

/* 3. Royal Blue Neon (Electric Tech & Modern SIP) */
[data-palette=RoyalBlueNeon],
.palette-royalblueneon {
  --gold-primary: #38bdf8;
  --gold-hover: #0284c7;
  --gold-glow: rgba(56, 189, 248, 0.25);
  --border-gold-glow: rgba(56, 189, 248, 0.4);
  --navy-accent: #1e40af;
  --blue-neon: #60a5fa;
  --brand-gradient: linear-gradient(135deg, #1d4ed8, #38bdf8);
  --btn-primary-gradient: linear-gradient(135deg, #1e40af, #0284c7);
  --btn-primary-hover: linear-gradient(135deg, #2563eb, #38bdf8);
  --badge-growth-bg: rgba(56, 189, 248, 0.15);
  --badge-growth-color: #38bdf8;
  --card-border-glow: rgba(56, 189, 248, 0.4);
  --mesh-1: rgba(29, 78, 216, 0.45);
  --mesh-2: rgba(56, 189, 248, 0.2);
  --mesh-3: rgba(99, 102, 241, 0.2);
  --mesh-4: rgba(14, 165, 233, 0.18);
  --bg-obsidian: #030712;
  --bg-surface: rgba(15, 23, 42, 0.75);
  --bg-card: rgba(20, 30, 58, 0.6);
}

/* 4. Slate Professional (HNI & Institutional Advisory) */
[data-palette=SlateProfessional],
.palette-slateprofessional {
  --gold-primary: #e2e8f0;
  --gold-hover: #cbd5e1;
  --gold-glow: rgba(226, 232, 240, 0.2);
  --border-gold-glow: rgba(148, 163, 184, 0.4);
  --navy-accent: #334155;
  --blue-neon: #94a3b8;
  --brand-gradient: linear-gradient(135deg, #334155, #94a3b8);
  --btn-primary-gradient: linear-gradient(135deg, #334155, #64748b);
  --btn-primary-hover: linear-gradient(135deg, #475569, #94a3b8);
  --badge-growth-bg: rgba(148, 163, 184, 0.15);
  --badge-growth-color: #e2e8f0;
  --card-border-glow: rgba(148, 163, 184, 0.4);
  --mesh-1: rgba(71, 85, 105, 0.4);
  --mesh-2: rgba(148, 163, 184, 0.18);
  --mesh-3: rgba(51, 65, 85, 0.3);
  --mesh-4: rgba(100, 116, 139, 0.15);
  --bg-obsidian: #090d16;
  --bg-surface: rgba(17, 24, 39, 0.8);
  --bg-card: rgba(24, 33, 52, 0.65);
}

/* Scoped elements adapting to palette */
[data-palette] .badge-growth,
.palette-obsidianemerald .badge-growth,
.palette-royalblueneon .badge-growth,
.palette-slateprofessional .badge-growth,
.palette-deepnavygold .badge-growth {
  background: var(--badge-growth-bg);
  color: var(--gold-primary);
}

[data-palette] .btn-glass-primary,
.palette-obsidianemerald .btn-glass-primary,
.palette-royalblueneon .btn-glass-primary,
.palette-slateprofessional .btn-glass-primary,
.palette-deepnavygold .btn-glass-primary {
  background: var(--btn-primary-gradient);
}

[data-palette] .btn-glass-primary:hover,
.palette-obsidianemerald .btn-glass-primary:hover,
.palette-royalblueneon .btn-glass-primary:hover,
.palette-slateprofessional .btn-glass-primary:hover,
.palette-deepnavygold .btn-glass-primary:hover {
  background: var(--btn-primary-hover);
}

/* ArthNirmaan logo inside the rounded mark tile */
.brand-logo-gem { overflow: hidden; padding: 0; background: #050b1e; }
.brand-logo-gem img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
