/* ==========================================================================
   KARMA STUDIO — ADMIN DASHBOARD STYLESHEET
   Design Reference: Stakent Crypto/SaaS Dashboard UI
   Aesthetic: Dark Futuristic Obsidian + Wine/Burgundy Glows + Glassmorphism
   ========================================================================== */

:root {
  --dash-bg: #060406;
  --window-bg: #0c080b;
  --sidebar-bg: #090608;
  --card-bg: #140d12;
  --card-bg-hover: #1c1118;
  --card-border: rgba(255, 255, 255, 0.07);
  --card-border-glow: rgba(135, 29, 60, 0.35);

  --color-wine-bright: #871d3c;
  --color-wine-accent: #a82449;
  --color-wine-glow: rgba(168, 36, 73, 0.25);

  --color-cream: #f5efe6;
  --color-cream-muted: #c4b9b3;
  --color-text-secondary: #8c8086;
  --color-text-dim: #5c5257;

  --badge-green-bg: rgba(34, 197, 94, 0.12);
  --badge-green-text: #22c55e;
  --badge-blue-bg: rgba(59, 130, 246, 0.12);
  --badge-blue-text: #60a5fa;
  --badge-purple-bg: rgba(168, 85, 247, 0.12);
  --badge-purple-text: #c084fc;
  --badge-gold-bg: rgba(234, 179, 8, 0.12);
  --badge-gold-text: #facc15;

  --font-display: 'Syne', sans-serif;
  --font-sans: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-frame: 24px;
  --radius-pill: 9999px;

  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body.dashboard-body {
  background-color: var(--dash-bg);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.5;
  min-height: 100vh;
  padding: 1.5rem;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Backlights */
.dash-glow {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(140px);
  z-index: 0;
}

.glow-1 {
  top: 5%;
  right: 15%;
  width: 500px;
  height: 400px;
  background: radial-gradient(circle, rgba(135, 29, 60, 0.18) 0%, transparent 70%);
}

.glow-2 {
  bottom: 10%;
  left: 10%;
  width: 450px;
  height: 400px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
}

/* ==========================================================================
   macOS WINDOW FRAME (Matching Dribbble Reference)
   ========================================================================== */
.macos-window-frame {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  background: var(--window-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-frame);
  box-shadow: 
    0 30px 100px rgba(0, 0, 0, 0.85),
    0 0 80px rgba(135, 29, 60, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Window Titlebar */
.window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.4rem;
  background: rgba(10, 6, 9, 0.9);
  border-bottom: 1px solid var(--card-border);
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 0.2s;
}

.control-dot:hover { opacity: 0.8; }
.dot-close { background-color: #ff5f56; }
.dot-min { background-color: #ffbd2e; }
.dot-expand { background-color: #27c93f; }

.window-address-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  color: var(--color-text-secondary);
}

.titlebar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--color-cream-muted);
  text-decoration: none;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  transition: var(--transition-smooth);
}

.titlebar-link:hover {
  background: var(--color-wine-bright);
  color: #fff;
}

/* ==========================================================================
   WINDOW BODY LAYOUT (Sidebar + Main)
   ========================================================================== */
.window-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 820px;
}

@media (max-width: 1024px) {
  .window-layout {
    grid-template-columns: 80px 1fr;
  }
  .sidebar-brand .brand-text-col,
  .sidebar-mode-toggle,
  .nav-group-label,
  .sidebar-nav .menu-label,
  .active-clients-list,
  .sidebar-user-card .user-meta {
    display: none;
  }
  .sidebar-nav .menu-item {
    justify-content: center;
    padding: 0.8rem;
  }
}

/* ==========================================================================
   LEFT SIDEBAR
   ========================================================================== */
.dash-sidebar {
  background: var(--sidebar-bg);
  border-right: 1px solid var(--card-border);
  padding: 1.5rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand-logo-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-spin {
  animation: slowSpin 16s linear infinite;
  transform-origin: center;
}

@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.brand-text-col {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--color-cream);
}

.brand-title span.thin {
  font-weight: 300;
  opacity: 0.7;
}

.brand-badge {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--color-wine-bright);
  font-weight: 700;
}

/* Mode Switcher pills matching screenshot */
.sidebar-mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  padding: 3px;
  margin: 1.8rem 0 1.5rem;
}

.mode-pill {
  padding: 0.45rem 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.mode-pill.active {
  background: var(--color-wine-bright);
  color: #fff;
  box-shadow: 0 2px 10px var(--color-wine-glow);
}

/* Sidebar Nav */
.nav-group-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--color-text-dim);
  font-weight: 700;
  margin: 1.2rem 0 0.6rem 0.5rem;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-cream);
}

.menu-item.active {
  background: rgba(135, 29, 60, 0.18);
  border: 1px solid rgba(168, 36, 73, 0.3);
  color: var(--color-cream);
  font-weight: 600;
}

.menu-icon {
  font-size: 1rem;
}

.menu-badge {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-cream);
}

.badge-accent {
  background: var(--badge-purple-bg);
  color: var(--badge-purple-text);
}

/* Active Clients Mini List in Sidebar */
.active-clients-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.client-mini-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--color-cream-muted);
}

.client-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dot-brand { background: #871d3c; }
.dot-reels { background: #a855f7; }
.dot-social { background: #eab308; }

.client-name {
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.client-val {
  font-size: 0.72rem;
  color: var(--color-text-dim);
  font-weight: 600;
}

/* Sidebar User Profile Card */
.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
}

.user-avatar-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.user-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.user-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--sidebar-bg);
}

.user-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-cream);
  white-space: nowrap;
}

.user-role {
  font-size: 0.68rem;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.user-quick-action {
  margin-left: auto;
  color: var(--color-text-dim);
  cursor: pointer;
}

.user-quick-action:hover {
  color: var(--color-cream);
}

/* ==========================================================================
   MAIN CONTENT WORKSPACE
   ========================================================================== */
.dash-main-content {
  padding: 2rem 2.5rem;
  overflow-y: auto;
  background: #090508;
}

/* Top Toolbar */
.dash-top-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.dash-page-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--color-cream);
}

.dash-page-subtitle {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Search Bar */
.dash-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  width: 280px;
  color: var(--color-text-secondary);
  transition: var(--transition-smooth);
}

.dash-search-wrap:focus-within {
  border-color: var(--color-wine-bright);
  background: rgba(14, 8, 12, 0.9);
  box-shadow: 0 0 15px var(--color-wine-glow);
}

.dash-search-wrap input {
  background: transparent;
  border: none;
  color: var(--color-cream);
  font-size: 0.82rem;
  width: 100%;
  outline: none;
}

.search-key-hint {
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--color-text-dim);
}

/* Action Buttons */
.btn-dash-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  background: var(--color-wine-bright);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-dash-primary:hover {
  background: var(--color-wine-accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px var(--color-wine-glow);
}

.btn-dash-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  color: var(--color-cream-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-dash-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-cream);
}

.notif-wrapper {
  position: relative;
}

.notif-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
}

/* ==========================================================================
   TOP GRID: 3 SPARKLINE METRIC CARDS + 1 FEATURE CARD (Matching Screenshot)
   ========================================================================== */
.dash-grid-top {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dash-stat-card {
  grid-column: span 3;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

@media (max-width: 1200px) {
  .dash-stat-card {
    grid-column: span 6;
  }
  .dash-feature-card {
    grid-column: span 12 !important;
  }
}

@media (max-width: 768px) {
  .dash-stat-card {
    grid-column: span 12;
  }
}

.dash-stat-card:hover {
  border-color: var(--card-border-glow);
  transform: translateY(-3px);
}

.stat-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.stat-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-wine {
  background: rgba(135, 29, 60, 0.2);
  color: var(--color-wine-bright);
}

.icon-gold {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
}

.icon-purple {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
}

.stat-title-group {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.stat-label {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-cream);
}

.stat-sub {
  font-size: 0.68rem;
  color: var(--color-text-dim);
}

.stat-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
}

.badge-green {
  background: var(--badge-green-bg);
  color: var(--badge-green-text);
}

.badge-blue {
  background: var(--badge-blue-bg);
  color: var(--badge-blue-text);
}

.stat-primary-num {
  font-family: var(--font-sans);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-cream);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat-sub-metric {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

.stat-sparkline-wrap {
  width: 100%;
  height: 48px;
  margin-top: 1rem;
  overflow: hidden;
}

.sparkline-svg {
  width: 100%;
  height: 100%;
}

/* Feature Card (Liquid Staking Portfolio in screenshot) */
.dash-feature-card {
  grid-column: span 3;
  background: linear-gradient(145deg, #180d14 0%, #290f1a 60%, #12080f 100%);
  border: 1px solid var(--card-border-glow);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.feature-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.feature-brand-mark {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-wine-bright);
}

.feature-badge-pill {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-cream);
}

.feature-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-cream);
  margin-bottom: 0.4rem;
}

.feature-card-desc {
  font-size: 0.78rem;
  color: var(--color-cream-muted);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.feature-capacity-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.capacity-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-wine-bright), #a855f7);
  border-radius: 3px;
}

.capacity-text {
  font-size: 0.7rem;
  color: var(--color-text-dim);
}

.feature-actions-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.btn-feature-solid {
  flex: 1;
  padding: 0.55rem;
  background: var(--color-cream);
  color: #0c080b;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-smooth);
}

.btn-feature-solid:hover {
  background: #fff;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
}

.btn-feature-ghost {
  padding: 0.55rem 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  color: var(--color-cream);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: var(--transition-smooth);
}

.btn-feature-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   INQUIRIES TABLE SECTION (Lower main panel)
   ========================================================================== */
.dash-section-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
}

.mt-6 {
  margin-top: 2rem;
}

.table-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.header-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-cream);
}

.section-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Filter Pills */
.table-filter-pills {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--card-border);
}

.filter-pill {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-pill:hover {
  color: var(--color-cream);
}

.filter-pill.active {
  background: var(--color-wine-bright);
  color: #fff;
  font-weight: 600;
}

/* Responsive Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.dash-table th {
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-dim);
  border-bottom: 1px solid var(--card-border);
}

.dash-table td {
  padding: 1.1rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.84rem;
  vertical-align: middle;
}

.dash-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Table Elements */
.client-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.client-avatar-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(135, 29, 60, 0.25);
  color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.75rem;
  border: 1px solid rgba(168, 36, 73, 0.4);
}

.client-name-bold {
  font-weight: 600;
  color: var(--color-cream);
}

.client-email-sub {
  font-size: 0.72rem;
  color: var(--color-text-dim);
}

.services-tags-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: 240px;
}

.serv-tag-mini {
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--color-cream-muted);
}

.budget-tier-pill {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-cream);
  background: rgba(234, 179, 8, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(234, 179, 8, 0.25);
  display: inline-block;
}

/* Interactive Status Selector inside table row */
.status-select-wrap {
  position: relative;
  display: inline-block;
}

.table-status-select {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  outline: none;
  transition: var(--transition-smooth);
  appearance: none;
  -webkit-appearance: none;
  padding-right: 1.6rem;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
}

.status-New {
  background-color: var(--badge-green-bg);
  color: var(--badge-green-text);
  border-color: rgba(34, 197, 94, 0.3);
}

.status-Contacted {
  background-color: var(--badge-blue-bg);
  color: var(--badge-blue-text);
  border-color: rgba(59, 130, 246, 0.3);
}

.status-InProgress,
.status-In-Progress {
  background-color: var(--badge-purple-bg);
  color: var(--badge-purple-text);
  border-color: rgba(168, 85, 247, 0.3);
}

.status-Won {
  background-color: var(--badge-gold-bg);
  color: var(--badge-gold-text);
  border-color: rgba(234, 179, 8, 0.3);
}

.status-Archived {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--color-text-dim);
  border-color: var(--card-border);
}

/* Action Buttons */
.table-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.btn-action-small {
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--color-cream-muted);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-action-small:hover {
  background: var(--color-wine-bright);
  color: #fff;
}

.btn-action-delete {
  color: #ef4444;
}

.btn-action-delete:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
}

/* ==========================================================================
   ACTIVE PROJECTS GRID
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-dash-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  transition: var(--transition-smooth);
}

.project-dash-card:hover {
  border-color: var(--card-border-glow);
  background: rgba(255, 255, 255, 0.04);
}

.proj-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.proj-brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-cream);
}

.proj-type {
  font-size: 0.74rem;
  color: var(--color-wine-bright);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* 4-Step Milestone Pills */
.proj-phase-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: 1.2rem;
}

.phase-step-chip {
  font-size: 0.62rem;
  padding: 0.25rem 0.2rem;
  text-align: center;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-dim);
}

.phase-step-chip.completed {
  background: rgba(135, 29, 60, 0.25);
  color: var(--color-cream);
}

.phase-step-chip.current {
  background: var(--color-wine-bright);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 10px var(--color-wine-glow);
}

.proj-progress-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.proj-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-wine-bright), #22c55e);
  border-radius: 3px;
}

.proj-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--color-text-secondary);
}

.proj-milestone {
  font-size: 0.72rem;
  color: var(--color-cream-muted);
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
}

.modal-card {
  position: relative;
  z-index: 10;
  background: var(--card-bg);
  border: 1px solid var(--card-border-glow);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 600px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  transform: scale(0.96);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.8rem;
  border-bottom: 1px solid var(--card-border);
}

.modal-sub {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-wine-bright);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-cream);
}

.modal-close-btn {
  font-size: 1.8rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  background: none;
  border: none;
}

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

.modal-body {
  padding: 1.8rem;
  max-height: 70vh;
  overflow-y: auto;
}

.inq-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--card-border);
}

.meta-field label,
.inq-services-group label,
.inq-message-box label,
.inq-status-edit label,
.inq-notes-edit label,
.modal-body label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-dim);
  margin-bottom: 0.35rem;
}

.meta-field span {
  font-size: 0.88rem;
  color: var(--color-cream);
}

.email-link {
  color: var(--color-wine-bright);
  text-decoration: underline;
}

.service-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.service-tags-wrap span {
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(135, 29, 60, 0.2);
  border: 1px solid var(--color-wine-bright);
  color: var(--color-cream);
}

.inq-message-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  padding: 1.2rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.inq-message-box p {
  font-size: 0.86rem;
  color: var(--color-cream-muted);
  line-height: 1.6;
}

.inq-status-edit select,
.inq-notes-edit textarea,
.modal-body input,
.modal-body select,
.modal-body textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(8, 6, 8, 0.8);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  color: var(--color-cream);
  font-family: inherit;
  font-size: 0.86rem;
  margin-bottom: 1.2rem;
  outline: none;
}

.inq-status-edit select:focus,
.inq-notes-edit textarea:focus,
.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus {
  border-color: var(--color-wine-bright);
  box-shadow: 0 0 15px var(--color-wine-glow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.modal-service-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.lead-serv-pill {
  font-size: 0.74rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  color: var(--color-cream-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lead-serv-pill.active {
  background: var(--color-wine-bright);
  color: #fff;
  border-color: var(--color-wine-bright);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  padding: 1.2rem 1.8rem;
  border-top: 1px solid var(--card-border);
  background: rgba(10, 6, 9, 0.6);
}

.btn-dash-ghost {
  padding: 0.55rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  color: var(--color-cream);
  font-size: 0.82rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-dash-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Toast */
.dash-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #140d12;
  border: 1px solid var(--color-wine-bright);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s ease;
}

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

.dash-toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

.dash-toast-msg {
  font-size: 0.82rem;
  color: var(--color-cream);
}
