/* Product Agent & Enterprise Portal Styles */
:root {
  --bg-primary: #0a0d14;
  --bg-secondary: #121824;
  --bg-card: #1a2233;
  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-purple: #7f00ff;
  --accent-green: #00e676;
  --text-main: #f0f4f8;
  --text-muted: #8a99ad;
  --border-color: rgba(255, 255, 255, 0.08);
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Header & Modern Executive Navigation ────────────────────────── */
.executive-header {
  background: rgba(10, 13, 22, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.logo {
  flex-shrink: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.logo-text-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.logo-brand {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-badge {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(0, 242, 254, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.25);
  text-transform: uppercase;
}

/* Executive Navigation Pill */
.executive-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(18, 24, 38, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.45rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* Dropdown Wrapper & Button */
.nav-dropdown-wrapper {
  position: relative;
  display: inline-block;
  padding-bottom: 8px; /* Hover bridge zone */
}

.nav-category-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  user-select: none;
}

.nav-category-btn:hover,
.nav-category-btn.open,
.nav-dropdown-wrapper.open .nav-category-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.nav-category-btn.active-category {
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.25);
}

.dropdown-caret {
  font-size: 0.7rem;
  opacity: 0.75;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown-wrapper:hover .dropdown-caret,
.nav-dropdown-wrapper.open .dropdown-caret {
  transform: rotate(180deg);
}

/* Luxury Dropdown Menu Card */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 300px;
  background: rgba(12, 17, 30, 0.98);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0.55rem;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.85),
              0 0 0 1px rgba(255, 255, 255, 0.05),
              0 10px 30px rgba(0, 242, 254, 0.08);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 4px;

  /* Smooth Entrance & Exit (No disappearing flickers) */
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.2s;
  pointer-events: none;
}

/* Invisible pointer bridge extending above menu to catch mouse movements */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  width: 100%;
  height: 18px;
}

/* Dropdown Arrow Notch */
.dropdown-arrow-notch {
  position: absolute;
  top: -5px;
  left: 24px;
  width: 10px;
  height: 10px;
  background: rgba(12, 17, 30, 0.98);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  transform: rotate(45deg);
}

/* Trigger states */
.nav-dropdown-wrapper:hover .nav-dropdown-menu,
.nav-dropdown-wrapper.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Dropdown Rich Items */
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  text-align: left;
  width: 100%;
  text-decoration: none;
  transition: all 0.18s ease;
}

.nav-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(2px);
}

.nav-dropdown-item.active {
  background: rgba(0, 242, 254, 0.12);
  border-color: rgba(0, 242, 254, 0.3);
}

.nav-dropdown-item .item-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.nav-dropdown-item:hover .item-icon {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.item-icon.cyan-tint {
  background: rgba(0, 242, 254, 0.1);
  border-color: rgba(0, 242, 254, 0.25);
}

.item-icon.amber-tint {
  background: rgba(255, 171, 0, 0.1);
  border-color: rgba(255, 171, 0, 0.25);
}

.nav-dropdown-item .item-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
  gap: 2px;
}

.nav-dropdown-item .item-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: -0.01em;
}

.item-title.highlight-cyan {
  color: var(--accent-cyan);
}

.item-title.highlight-amber {
  color: #ffab00;
}

.nav-dropdown-item .item-desc {
  font-size: 0.72rem;
  color: #8a99ad;
  line-height: 1.25;
}

.item-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.menu-item-badge {
  background: rgba(255, 171, 0, 0.2);
  color: #ffab00;
  border: 1px solid rgba(255, 171, 0, 0.4);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(255, 171, 0, 0.3);
}

/* Direct Tabs */
.nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.nav-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-btn.active {
  background: rgba(0, 242, 254, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

/* Right Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.35);
  padding: 0.42rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #00e676;
  white-space: nowrap;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #00e676;
  box-shadow: 0 0 8px #00e676;
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.btn-action-prospect {
  background: linear-gradient(135deg, #7928ca, #ff0080);
  color: #ffffff;
  font-weight: 700;
  border: none;
  padding: 0.48rem 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  box-shadow: 0 4px 14px rgba(255, 0, 128, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-action-prospect:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 0, 128, 0.45);
}

.btn-action-run {
  background: linear-gradient(135deg, #00e676, #00b0ff);
  color: #000000;
  font-weight: 700;
  border: none;
  padding: 0.48rem 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  box-shadow: 0 4px 12px rgba(0, 230, 118, 0.3);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-action-run:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 230, 118, 0.45);
}

.btn-action-lock {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 0.48rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-action-lock:hover {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.3);
}

/* Mobile Hamburger Toggle */
.mobile-nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
}

.mobile-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #f1f5f9;
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* Mobile Drawer Overlay */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
}

.mobile-nav-drawer.active {
  display: block;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 88%;
  max-width: 360px;
  height: 100%;
  background: #0c111e;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.5rem 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
  animation: slideDrawer 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.drawer-section {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.drawer-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.25rem;
  padding-left: 0.5rem;
}

.drawer-item {
  width: 100%;
  text-align: left;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.drawer-item:hover, .drawer-item.active {
  background: rgba(0, 242, 254, 0.1);
  border-color: rgba(0, 242, 254, 0.3);
  color: var(--accent-cyan);
}

.drawer-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.full-w {
  width: 100%;
  justify-content: center;
}

/* Auth Gate Modal */
#portal-auth-gate {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(18, 26, 44, 0.95), rgba(7, 10, 16, 0.98));
  backdrop-filter: blur(24px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.auth-gate-card {
  background: rgba(22, 31, 49, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 242, 254, 0.15);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
}

.auth-gate-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem auto;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

.btn-lock {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-lock:hover {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.3);
}

.btn-clear-chat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-clear-chat:hover {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.3);
}

/* Page Containers */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
}

.page {
  display: none;
}

.page.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

/* Public Hero */
.hero {
  text-align: center;
  padding: 4rem 1rem 3rem;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff, #a0aec0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 2rem;
}

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.25);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Cards & Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 242, 254, 0.3);
}

.metric-card {
  background: linear-gradient(135deg, rgba(18, 24, 36, 0.9), rgba(26, 34, 51, 0.9));
  border-left: 4px solid var(--accent-cyan);
}

.metric-val {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin: 0.5rem 0;
}

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

/* Progress bar */
.progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  overflow: hidden;
  margin-top: 0.75rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  border-radius: 5px;
}

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.data-table th, .data-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
}

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

/* Agent Pill */
.agent-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  background: rgba(127, 0, 255, 0.15);
  color: #d6a4ff;
  border: 1px solid rgba(127, 0, 255, 0.3);
  font-size: 0.85rem;
  font-weight: 600;
}

footer {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
  font-size: 0.9rem;
}

/* ── CRM & Deal Pipeline Styles ────────────────────────────────── */
.crm-header-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  background: rgba(26, 34, 51, 0.5);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.crm-kanban-container {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1.5rem;
  min-height: 520px;
}

.crm-stage-column {
  flex: 0 0 310px;
  background: rgba(15, 20, 30, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  max-height: 800px;
}

.crm-column-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.crm-column-header h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.crm-cards-list {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  overflow-y: auto;
  flex-grow: 1;
}

.crm-card {
  background: rgba(26, 34, 51, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.crm-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.15);
}

.crm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.crm-modal-card {
  background: #0d121d;
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 10px 40px rgba(0, 242, 254, 0.25);
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
}

.crm-timeline-item {
  position: relative;
  padding-left: 28px;
  margin-bottom: 1.25rem;
  border-left: 2px solid rgba(0, 242, 254, 0.3);
}

.crm-timeline-dot {
  position: absolute;
  left: -7px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

/* ── Responsive & Mobile-Friendly Media Queries ──────────────────────── */

/* Table responsive wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

/* Desktop Compact (1041px - 1280px) */
@media (max-width: 1280px) {
  .header-inner {
    padding: 0.6rem 1rem;
    gap: 0.75rem;
  }
  .nav-category-btn, .executive-nav .nav-btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.79rem;
  }
  .btn-action-prospect, .btn-action-run {
    padding: 0.45rem 0.75rem;
    font-size: 0.79rem;
  }
  .status-pill {
    padding: 0.38rem 0.6rem;
    font-size: 0.75rem;
  }
}

/* Tablet & Mobile Nav Trigger (< 1040px) */
@media (max-width: 1040px) {
  .executive-nav {
    display: none !important;
  }
  .mobile-nav-toggle {
    display: flex !important;
  }
  .container {
    padding: 1.5rem 1rem;
  }
}

/* Small Tablet & Mobile (< 768px) */
@media (max-width: 768px) {
  .header-inner {
    padding: 0.55rem 0.85rem;
  }
  .logo-badge {
    display: none;
  }
  .logo-brand {
    font-size: 1.05rem;
  }
  .logo-img {
    height: 30px;
  }

  /* Keep header clean by collapsing full action buttons on mobile — they are prominently in the mobile drawer */
  .header-actions .btn-action-prospect .btn-text,
  .header-actions .btn-action-run .btn-text {
    display: none;
  }
  .header-actions .btn-action-prospect,
  .header-actions .btn-action-run {
    padding: 0.45rem 0.6rem;
  }
  .status-pill .status-text {
    display: none;
  }
  .status-pill {
    padding: 0.45rem 0.55rem;
  }

  /* Responsive Typography */
  .hero {
    padding: 2.25rem 0.5rem 1.5rem;
  }
  .hero h1 {
    font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
    line-height: 1.25 !important;
  }
  .hero p {
    font-size: 0.98rem !important;
    margin-bottom: 1.25rem !important;
  }
  .badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
  }

  /* Grid layouts stack on mobile */
  .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .card {
    padding: 1.25rem;
  }

  /* Lead Approval Cards */
  #pending-approvals .hero {
    flex-direction: column;
    align-items: stretch !important;
  }
  #btn-approve-all-leads {
    width: 100%;
    justify-content: center;
    font-size: 0.9rem !important;
    padding: 0.85rem 1rem !important;
  }
  .card [style*="display: flex; justify-content: space-between"] {
    flex-direction: column;
    gap: 0.75rem;
  }

  /* CRM Kanban on mobile */
  .crm-header-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem;
  }
  .crm-header-toolbar > div {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }
  .crm-stage-column {
    flex: 0 0 85vw;
    max-width: 320px;
  }

  /* Modals */
  .crm-modal-card {
    padding: 1.25rem;
    max-width: 95vw;
    max-height: 92vh;
  }
  .auth-gate-card {
    padding: 1.75rem 1.25rem;
  }
}


