:root {
  /* Apple Human Interface Palette (Minimal, Clean, Crisp) */
  --ink: #0f172a;
  --ink-secondary: #334155;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --line: #edf2f7;
  --line-subtle: #f1f5f9;
  --canvas: #f6f8fc;
  --card: #ffffff;
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --brand-accent: #2563eb;
  --brand-accent-hover: #1d4ed8;
  --brand-soft: #eff6ff;
  --nav: #ffffff;
  --nav-active: #eff6ff;
  --nav-muted: #64748b;
  --danger: #ef4444;
  --danger-soft: #fee2e2;
  --success: #16a34a;
  --success-soft: #dcfce7;
  --warning: #f59e0b;
  --warning-soft: #fef3c7;
  --purple: #8b5cf6;
  --purple-soft: #f3e8ff;
  --teal: #06b6d4;
  --teal-soft: #e0f2fe;

  /* Apple Multi-Layer Smooth Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 14px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 16px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 12px 32px -4px rgba(0, 0, 0, 0.07), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 8px 24px -4px rgba(0, 0, 0, 0.08);

  /* Apple Radii */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 9999px;

  /* Apple Snappy Motion */
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.15s ease;
  --transition-normal: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
  background: var(--canvas);
}

.sidebar {
  background: #0f172a;
  color: #f8fafc;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  height: 100vh;
  box-sizing: border-box;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 4px 8px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #2563eb;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
  color: #ffffff;
  flex-shrink: 0;
}
.mark svg { width: 17px; height: 17px; stroke: #ffffff; }

.workspace {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #64748b;
  text-transform: uppercase;
  padding: 0 10px 8px;
}

.nav { display: grid; gap: 4px; }
.nav button, .nav a, .nav-item {
  border: 0;
  text-align: left;
  background: transparent;
  color: #94a3b8;
  font: inherit;
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}
.nav button:hover, .nav a:hover, .nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}
.nav button.active, .nav a.active, .nav-item.active {
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}
.nav-icon { width: 18px; text-align: center; display: inline-flex; align-items: center; justify-content: center; }

.account {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.account-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.25);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.35);
  font-weight: 750;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.account-info { flex: 1; min-width: 0; }
.account-name { font-weight: 700; color: #ffffff; font-size: 13px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-role { font-size: 11.5px; color: #94a3b8; margin-top: 1px; }
.signout {
  background: none;
  border: 0;
  color: #64748b;
  padding: 4px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition: color 0.15s ease;
}
.signout:hover { color: #ef4444; }

.main { min-width: 0; }
.topbar {
  height: 64px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.crumb { color: var(--muted); font-size: 13px; font-weight: 500; }
.top-actions { display: flex; gap: 10px; align-items: center; }

/* --- VIP DEMO ACCESS PORTAL --- */
.vip-demo-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 15% 20%, #1e3a8a 0%, #090d16 80%);
  color: #fff;
}
.vip-demo-card {
  width: min(480px, 100%);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  
  text-align: center;
}
.vip-badge {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #000;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.4);
}
.vip-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

/* --- NOTIFICATION BELL IN TOPBAR --- */
.notif-bell-btn {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}
.notif-bell-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}
.notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 10px;
  border: 2px solid #fff;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
}

.content {
  padding: 32px 36px;
  max-width: 1560px;
  margin: auto;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.page-title {
  font-size: 28px;
  letter-spacing: -0.025em;
  margin: 0;
  font-weight: 850;
  color: var(--ink);
  line-height: 1.25;
}
.subtle { color: var(--muted); margin: 6px 0 0; font-size: 14px; line-height: 1.5; }

/* --- COST SHEET & EMI MODAL STYLES --- */
.cost-calc-section {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}
.cost-total-banner {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
  color: #fff;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.25);
}
.key-pill {
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* --- WHATSAPP TEMPLATE STUDIO --- */
.wa-template-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  transition: all 0.15s ease;
}
.wa-template-box:hover {
  border-color: #cbd5e1;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.wa-template-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.wa-template-title {
  font-size: 13.5px;
  font-weight: 750;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}
.wa-var-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.wa-var-chip {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #3730a3;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-family: monospace;
  font-weight: 700;
}
.wa-textarea {
  width: 100%;
  height: 100px;
  padding: 10px;
  font-family: inherit;
  font-size: 12.5px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  resize: vertical;
  background: #fff;
}
.wa-textarea:focus {
  border-color: #15803d;
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.12);
  outline: none;
}

/* --- SETTINGS CARDS & FORMS --- */
.settings-group-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.settings-group-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.settings-group-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 20px;
}
.settings-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* --- COMMISSION SPLIT CARDS & METRICS --- */
.commission-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.15s ease;
}
.commission-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.split-bar-wrap {
  background: #f1f5f9;
  border-radius: 6px;
  height: 12px;
  display: flex;
  overflow: hidden;
  margin: 6px 0;
}
.split-bar.company {
  background: #165dff;
  height: 100%;
}
.split-bar.agent {
  background: #10b981;
  height: 100%;
}
.split-legend {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
}
.split-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.split-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.split-dot.company { background: #165dff; }
.split-dot.agent { background: #10b981; }

/* --- DEAL PIPELINE KANBAN & CARDS --- */
.deal-kanban-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.15s ease;
}
.deal-kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #cbd5e1;
}
.deal-val-chip {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #1e40af;
  font-size: 12px;
  font-weight: 750;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.deal-brok-chip {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}

/* --- VAULT & LEGAL DOCUMENTS CARDS --- */
.vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 18px;
}
.vault-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.15s ease;
  position: relative;
}
.vault-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.vault-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.vault-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.vault-icon-circle.legal { background: #dbeafe; color: #1d4ed8; }
.vault-icon-circle.kyc { background: #fef3c7; color: #b45309; }
.vault-icon-circle.token { background: #dcfce7; color: #15803d; }

.doc-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.doc-badge.verified {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.doc-badge.pending {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}
.vault-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.vault-title {
  font-size: 15px;
  font-weight: 750;
  color: var(--ink);
  margin: 0;
}
.vault-meta {
  font-size: 12.5px;
  color: var(--muted);
}
.vault-notes {
  background: #f8fafc;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
  color: #334155;
  border: 1px solid var(--line);
}
.vault-card-footer {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.filter-tab {
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-tab:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.filter-tab.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 2px 8px rgba(22, 93, 255, 0.25);
}

/* --- MATCH CARDS --- */
.match-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
  transition: all 0.15s ease;
}
.match-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.match-score-badge {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #3730a3;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.match-score-badge.high {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}
.match-score-badge.med {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}
.match-reasons-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.match-reason-chip {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}
.match-reason-chip.hit {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

/* --- SITE VISITS TIMELINE CARDS --- */
.visit-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
  transition: all 0.15s ease;
}
.visit-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow);
}
.visit-card.today {
  border-left: 4px solid var(--brand);
  background: #fbfdff;
}
.visit-card.completed {
  background: #fafbfc;
  opacity: 0.9;
}
.visit-time-chip {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #3730a3;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.visit-time-chip.urgent {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

/* --- NOTIFICATION CENTER FEED --- */
.notif-feed {
  display: grid;
  gap: 12px;
}
.notif-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  transition: all 0.15s ease;
  position: relative;
}
.notif-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow);
}
.notif-card.unread {
  border-left: 4px solid var(--brand);
  background: #fbfdff;
}
.notif-card.urgent {
  border-left: 4px solid #ef4444;
  background: #fffafa;
}
.notif-main {
  display: flex;
  gap: 14px;
  align-items: center;
  flex: 1;
}
.notif-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.notif-icon-circle.overdue { background: #fee2e2; color: #b91c1c; }
.notif-icon-circle.visit { background: #dbeafe; color: #1d4ed8; }
.notif-icon-circle.match { background: #fef3c7; color: #b45309; }
.notif-icon-circle.doc { background: #dcfce7; color: #15803d; }
.notif-icon-circle.ai { background: #f3e8ff; color: #7e22ce; }

.notif-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.notif-desc {
  font-size: 12.5px;
  color: var(--muted);
}
.notif-time {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 4px;
}
.notif-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

/* --- HERO COMMAND CENTER BANNER --- */
.hero-banner {
  background: linear-gradient(135deg, #090d16 0%, #1e293b 100%);
  color: #fff;
  border-radius: 16px;
  padding: 26px 30px;
  margin-bottom: 24px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.hero-banner::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.hero-title {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(37, 99, 235, 0.3);
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.2);
}
.hero-subtitle {
  color: #94a3b8;
  font-size: 13.5px;
  margin: 0;
}
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-ticker {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.ticker-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  font-size: 12px;
  color: #cbd5e1;
  border: 1px solid rgba(255,255,255,0.05);
}
.ticker-chip strong { color: #fff; }
.ticker-chip.urgent {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}
.ticker-chip.urgent strong { color: #fecaca; }

/* --- BUTTONS (APPLE HIG) --- */
.button {
  border: 0;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font: 550 13px -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.16s var(--ease-apple);
  text-decoration: none;
}
.button.primary {
  background: var(--brand-accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.button.primary:hover {
  background: var(--brand-accent-hover);
  transform: scale(1.01);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25);
}
.button.secondary {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.button.secondary:hover {
  background: #f5f5f7;
  border-color: #d2d2d7;
}
.button.hero-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  
  border-radius: var(--radius-pill);
}
.button.hero-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}
/* --- FINANCIAL & VELOCITY CARDS (APPLE HIG) --- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.metric {
  padding: 22px;
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: all 0.2s var(--ease-apple);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.metric:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 0, 0, 0.09);
}
.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.metric-label {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.trend-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}
.trend-pill.up { background: var(--success-soft); color: var(--success); }
.trend-pill.urgent { background: var(--danger-soft); color: var(--danger); }
.trend-pill.info { background: var(--brand-soft); color: var(--brand-accent); }
.metric-value {
  font-size: 28px;
  font-weight: 700;
  margin-top: 8px;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.metric-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.4;
}
/* --- PANELS & DASHBOARD GRID (APPLE HIG) --- */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.panel {
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.panel:hover {
  box-shadow: var(--shadow-md);
}
.panel-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
}
.panel-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.015em;
}

/* --- ACTION COCKPIT ROWS --- */
.action-cockpit {
  padding: 16px 20px;
  display: grid;
  gap: 10px;
}
.action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: #fbfbfd;
  border: 1px solid var(--line-subtle);
  transition: all 0.16s var(--ease-apple);
}
.action-row:hover {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
/* --- AGENDA TIMELINE (FOLLOW-UPS & VISITS) --- */
.agenda-group {
  margin-bottom: 24px;
}
.agenda-group-title {
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.agenda-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  transition: all 0.15s ease;
}
.agenda-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow);
}
.agenda-card.overdue {
  border-left: 4px solid #ef4444;
  background: #fffafa;
}
.agenda-card.today {
  border-left: 4px solid #3b82f6;
}
.agenda-card.completed {
  opacity: 0.75;
  background: #f8fafc;
}
.agenda-time-badge {
  background: #f1f5f9;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.agenda-time-badge.urgent {
  background: #fee2e2;
  color: #b91c1c;
}

/* --- PROPERTY SHOWCASE GRID --- */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}
.property-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #94a3b8;
}
.property-card-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  padding: 18px 22px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.property-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.property-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.property-location {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.property-meta-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.meta-pill {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 650;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.property-amenities-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: #64748b;
}
.amenity-tag {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 500;
}
.property-card-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--line-subtle);
  background: #fafbfc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* --- KANBAN PIPELINE BOARD --- */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(260px, 1fr));
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 20px;
}
.kanban-col {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 520px;
}
.kanban-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 800;
  color: #334155;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
  letter-spacing: 0.02em;
}
.kanban-count {
  background: #e2e8f0;
  color: #1e293b;
  padding: 2px 9px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 750;
}
.kanban-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.kanban-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #2563eb;
}
.kanban-card-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.kanban-card-body {
  font-size: 12px;
  color: var(--muted);
}
.kanban-card-footer {
  border-top: 1px dashed var(--line);
  padding-top: 8px;
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- VIEW MODE SWITCHER --- */
.view-switcher {
  display: inline-flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.view-btn {
  border: 0;
  background: transparent;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.view-btn.active {
  background: #fff;
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}

/* --- DEAL VELOCITY RADAR (PIPELINE STRIP) --- */
.deal-radar-list {
  padding: 16px 20px;
  display: grid;
  gap: 14px;
}
.deal-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: #fafbfc;
}
.deal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.deal-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 10px;
  position: relative;
}
.track-step {
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  padding: 6px 4px;
  border-radius: 6px;
  background: #e2e8f0;
  color: #64748b;
}
.track-step.done {
  background: #dcfce7;
  color: #15803d;
}
.track-step.active {
  background: #dbeafe;
  color: #1d4ed8;
  box-shadow: 0 0 0 2px #3b82f6;
}

/* --- AI SPOTLIGHT --- */
.ai-spotlight {
  background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}
.ai-spotlight-title {
  font-weight: 750;
  font-size: 14px;
  color: #1e3a8a;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ai-spotlight-sub { font-size: 12.5px; color: #475569; margin-top: 2px; }
.ai-spotlight-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ai-chip {
  background: #fff;
  border: 1px solid #cbd5e1;
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
}
.ai-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
}

/* --- TABLES & FORMS (APPLE HIG) --- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; align-items: center; }
.input, .select {
  height: 40px;
  border: 1px solid #d2d2d7;
  border-radius: var(--radius-sm);
  background: #fbfbfd;
  padding: 0 12px;
  color: var(--ink);
  font: inherit;
  outline: none;
  font-size: 13.5px;
  transition: all 0.16s var(--ease-apple);
}
.input:focus, .select:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.16);
  background: #ffffff;
}
.search { min-width: 280px; }
.table-wrap {
  overflow: auto;
  border-radius: var(--radius);
}
.table { width: 100%; border-collapse: collapse; text-align: left; }
.table th {
  background: #fbfbfd;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
  padding: 12px 18px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.table td {
  padding: 14px 18px;
  border-top: 1px solid var(--line-subtle);
  vertical-align: middle;
  font-size: 13.5px;
  transition: background 0.12s ease;
}
.table tbody tr:hover td {
  background: #f8f8fa;
}
.lead-name { font-weight: 650; color: var(--ink); font-size: 13.5px; }
.lead-contact { font-size: 12px; color: var(--muted); margin-top: 2px; font-weight: 500; }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.badge.hot { background: var(--danger-soft); color: var(--danger); }
.badge.warm { background: var(--warning-soft); color: #c96e00; }
.badge.cold { background: var(--brand-soft); color: var(--brand-accent); }
.stage { color: var(--muted); font-size: 12px; font-weight: 550; }
.link-button {
  background: none;
  border: 0;
  color: var(--brand-accent);
  font: 600 13px inherit;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}
.link-button:hover { text-decoration: underline; color: var(--brand-accent-hover); }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);

  z-index: 9998;
  transition: opacity 0.2s ease;
}
.drawer {
  position: fixed;
  z-index: 10000;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(640px, 100vw);
  background: #ffffff;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}
.drawer-head {
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.close {
  border: 0;
  background: #f2f2f7;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.close:hover { background: #e5e5ea; color: var(--ink); }
.form { padding: 24px 26px; overflow: auto; }
.form-section { margin-bottom: 24px; }
.form-section h3 { font-size: 14px; margin: 0 0 14px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 600; color: var(--ink-secondary); }
.field .input, .field .select { width: 100%; }
textarea.input { height: 90px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.form-actions { padding: 16px 26px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; background: #fbfbfd; }
.notice { padding: 12px 14px; border-radius: var(--radius); margin: 0 0 16px; font-size: 13px; font-weight: 550; }
.notice.error { background: var(--danger-soft); color: var(--danger); border: 1px solid #ffd1d0; }
.notice.success { background: var(--success-soft); color: var(--success); border: 1px solid #c3f2d2; }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 12% 15%, #e8f0fe, transparent 40%), #f5f5f7; }
.auth-card { width: min(440px, 100%); background: #ffffff; border: 1px solid rgba(0, 0, 0, 0.06); border-radius: var(--radius-xl); padding: 36px; box-shadow: var(--shadow-lg); }
.auth-brand { justify-content: center; color: var(--ink); margin-bottom: 24px; }
.auth h1 { margin: 0; font-size: 24px; letter-spacing: -0.025em; font-weight: 750; }
.auth p { color: var(--muted); margin: 6px 0 24px; font-size: 13.5px; }
.auth .field { margin-top: 12px; }
.auth .button { width: 100%; justify-content: center; margin-top: 20px; }
.auth-switch { text-align: center; margin-top: 18px; color: var(--muted); font-size: 12.5px; }
.auth-switch button { background: none; border: 0; color: var(--brand-accent); font: 650 13px inherit; cursor: pointer; }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); font-size: 13.5px; }
.empty strong { display: block; color: var(--ink); margin-bottom: 4px; font-size: 15px; }
.loading { padding: 48px; text-align: center; color: var(--muted); font-size: 13.5px; }
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .kanban-board { grid-template-columns: repeat(3, minmax(220px, 1fr)); }
  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .vault-grid { grid-template-columns: repeat(2, 1fr); }
  .settings-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .shell { grid-template-columns: 76px 1fr; }
  .sidebar { padding: 20px 10px; }
  .brand span, .workspace, .nav span:not(.nav-icon), .account div, .signout { display: none; }
  .brand { justify-content: center; padding: 0; }
  .nav button { justify-content: center; }
  .content { padding: 20px; }
  .topbar { padding: 0 20px; }
}
@media (max-width: 640px) {
  .shell { display: block; }
  .sidebar { display: none; }
  .cards { grid-template-columns: 1fr; }
  .hero-top { flex-direction: column; align-items: flex-start; }
  .kanban-board { grid-template-columns: 1fr; }
  .property-grid { grid-template-columns: 1fr; }
  .agenda-card { flex-direction: column; align-items: flex-start; }
  .notif-card { flex-direction: column; align-items: flex-start; }
  .visit-card { flex-direction: column; align-items: flex-start; }
  .match-card { flex-direction: column; align-items: flex-start; }
  .vault-grid { grid-template-columns: 1fr; }
  .settings-form-grid { grid-template-columns: 1fr; }
}

/* --- MOBILE NAVIGATION BAR & DRAWER --- */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(9, 13, 22, 0.94);
  
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 100;
  display: none;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
}
.mobile-nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: 0;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 0;
  cursor: pointer;
  transition: all 0.15s ease;
}
.mobile-nav-tab:hover {
  color: #f8fafc;
}
.mobile-nav-tab.active {
  color: #60a5fa;
  font-weight: 750;
}
.mobile-nav-tab .tab-icon {
  font-size: 17px;
  line-height: 1;
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: 0;
  font-size: 22px;
  color: var(--ink);
  cursor: pointer;
  padding: 4px 8px;
  margin-right: 8px;
}

@media (max-width: 640px) {
  .shell { display: block; padding-bottom: 70px; }
  .sidebar { display: none; }
  .mobile-bottom-nav { display: flex; }
  .mobile-menu-btn { display: inline-flex; align-items: center; }
  .topbar { padding: 0 16px; height: 60px; }
  .topbar .crumb { font-size: 12px; }
  .top-actions { gap: 6px; }
  .top-actions .avatar { display: none; }
  .notif-bell-btn { width: 34px; height: 34px; font-size: 14px; }
  .btn-act { padding: 4px 8px; font-size: 11px; }
}

/* --- QUIET LUXURY UTILITIES & TABULAR NUMERALS --- */
.tnum, .metric-value, .deal-val, .table td strong, .cost-total-banner strong, .pill-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.02em;
}

.micro-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.svg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- REFINED CARDS & ELEVATION --- */
.metric, .card, .lead-card, .property-card, .deal-card, .visit-card, .agenda-card, .settings-group-card, .commission-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.metric:hover, .card:hover, .lead-card:hover, .property-card:hover, .deal-card:hover, .commission-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* --- REFINED BUTTONS --- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: -0.01em;
  border: 0;
  line-height: 1;
}
.button.primary {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  border: 1px solid #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}
.button.primary:hover {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-color: #334155;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22);
}
.button.secondary {
  background: #fff;
  color: #334155;
  border: 1px solid #cbd5e1;
  box-shadow: var(--shadow-sm);
}
.button.secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
}
.button.hero-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: 1px solid #2563eb;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.button.hero-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  border-color: #1d4ed8;
  transform: translateY(-1.5px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.45);
}

/* --- SLEEK KANBAN COLUMNS & DEAL CARDS --- */
.kanban-col {
  background: #f1f5f9;
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kanban-col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 4px 6px;
}
.deal-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 14px 16px;
}
.deal-stage-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #10b981);
}

/* --- SOLID CRISP MOBILE BOTTOM BAR --- */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  z-index: 100;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 6px calc(env(safe-area-inset-bottom, 0px) + 2px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.03);
}
.mobile-nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: 0;
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
  padding: 6px 0;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.15s ease;
}
.mobile-nav-tab:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.03);
}
.mobile-nav-tab.active {
  color: #0f172a;
  font-weight: 700;
  background: #f1f5f9;
}
.mobile-nav-tab .tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 20px;
}

/* --- CLIENT PRESENTATION MODE STYLES --- */
.client-mode-banner {
  background: #0b0f19;
  color: #f8fafc;
  padding: 9px 24px;
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.client-mode-banner button {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.client-mode-banner button:hover {
  background: #e11d48;
  border-color: #e11d48;
}
.client-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.client-toggle-btn.active {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  box-shadow: 0 0 12px rgba(5, 150, 105, 0.15);
}
.client-toggle-btn.inactive {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

/* --- 1. APPLE-STYLE FLOATING TOASTS --- */
.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.toast-pill {
  background: rgba(11, 15, 25, 0.94);

  color: #f8fafc;
  padding: 10px 20px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.12);
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: auto;
  max-width: 90vw;
}
.toast-pill.success .toast-icon { color: #10b981; }
.toast-pill.info .toast-icon { color: #38bdf8; }
.toast-pill.toast-exit {
  animation: toastSlideOut 0.22s ease forwards;
}
@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(-16px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastSlideOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-12px) scale(0.92); }
}

/* --- 2. LUXURY RANGE SLIDERS --- */
.range-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 6px 0 12px;
}
.range-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.luxury-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 4px;
  outline: none;
  transition: background 0.15s;
  cursor: pointer;
}
.luxury-range:hover {
  background: #cbd5e1;
}
.luxury-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0f172a;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: transform 0.1s ease, background 0.15s ease;
  border: 2px solid #fff;
}
.luxury-range::-webkit-slider-thumb:hover {
  transform: scale(1.18);
  background: #2563eb;
}

/* --- 3. SPOTLIGHT COMMAND BAR (CTRL + K) --- */
.spotlight-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 25, 0.65);

  z-index: 99990;
  animation: fadeIn 0.15s ease;
}
.spotlight-modal {
  position: fixed;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  width: min(640px, 92vw);
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.08);
  z-index: 99991;
  overflow: hidden;
  animation: spotlightPop 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes spotlightPop {
  from { opacity: 0; transform: translate(-50%, -10px) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
.spotlight-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.spotlight-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
}
.spotlight-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
}
.spotlight-section-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 12px 4px;
}
.spotlight-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.12s ease;
}
.spotlight-item:hover, .spotlight-item.selected {
  background: #f1f5f9;
  color: #0f172a;
}
.spotlight-shortcut-badge {
  font-size: 10.5px;
  font-weight: 700;
  background: #e2e8f0;
  color: #475569;
  padding: 2px 7px;
  border-radius: 5px;
}

/* --- 4. BENTO GRID MICRO TICKER --- */
.bento-ticker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.bento-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bento-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

/* --- LUXURY MINIMALIST TOPBAR --- */
.topbar {
  height: 62px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.96);

  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
  gap: 16px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 0;
}

.topbar-crumb-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}

.topbar-org {
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
}

.topbar-divider {
  color: #cbd5e1;
  font-weight: 300;
  font-size: 13px;
}

.topbar-page {
  color: var(--ink);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: -0.01em;
}

.live-status-dot {
  font-size: 10.5px;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 2px 7px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 2px;
}

/* Center search pill */
.topbar-search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12.5px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 200px;
  max-width: 280px;
}
.topbar-search-pill:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  color: var(--ink);
}
.topbar-search-pill kbd {
  margin-left: auto;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  background: #e2e8f0;
  color: #475569;
  padding: 1px 6px;
  border-radius: 4px;
}

/* Right cluster */
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.topbar-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.topbar-action-pill.emerald {
  background: #059669;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.2);
}
.topbar-action-pill.emerald:hover {
  background: #047857;
}
.topbar-action-pill.neutral {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
}
.topbar-action-pill.neutral:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.topbar-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}
.topbar-icon-btn:hover {
  background: #f8fafc;
  color: var(--ink);
  border-color: #cbd5e1;
}

.topbar-divider-v {
  width: 1px;
  height: 20px;
  background: #e2e8f0;
  margin: 0 2px;
}

/* Dashboard Hero Header */
.dashboard-hero-box {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.02);
}
.dashboard-hero-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.025em;
  margin: 0 0 4px;
}
.dashboard-hero-tag {
  font-size: 11px;
  font-weight: 600;
  color: #15803d;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}
.dashboard-hero-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  font-weight: 450;
}
.dashboard-hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.dashboard-hero-actions .hero-btn {
  background: #f5f5f7;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 550;
  padding: 8px 14px;
  transition: all 0.16s var(--ease-apple);
}
.dashboard-hero-actions .hero-btn:hover {
  background: #e5e5ea;
  border-color: #d2d2d7;
  transform: translateY(-1px);
}

/* --- PRIORITY ACTION ROWS --- */
.action-cockpit {
  padding: 16px 20px;
  display: grid;
  gap: 10px;
}
.action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid var(--line-subtle);
  transition: all 0.16s var(--ease-apple);
  gap: 12px;
}
.action-row:hover {
  background: #fbfbfd;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transform: translateY(-1px);
}
.action-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.action-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  flex-shrink: 0;
}
.action-avatar.hot { background: rgba(255, 59, 48, 0.1); color: #ff3b30; }
.action-avatar.visit { background: rgba(0, 113, 227, 0.1); color: #0071e3; }
.action-avatar.token { background: rgba(52, 199, 89, 0.12); color: #248a3d; }

.action-info strong {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.action-info .sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.action-btns {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}
.btn-act {
  border: 1px solid var(--line);
  background: #f5f5f7;
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 550;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s var(--ease-apple);
}
.btn-act:hover {
  background: #e5e5ea;
  border-color: #d2d2d7;
}
.btn-act.wa {
  background: rgba(34, 197, 94, 0.08);
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.25);
  font-weight: 600;
}
.btn-act.wa:hover {
  background: #15803d;
  color: #ffffff;
  border-color: #15803d;
}
.btn-act.primary {
  background: var(--brand-accent);
  color: #ffffff;
  border-color: var(--brand-accent);
  font-weight: 600;
}
.btn-act.primary:hover {
  background: var(--brand-accent-hover);
  border-color: var(--brand-accent-hover);
}

/* --- ACTIVE DEALS RADAR --- */
.deal-radar-list {
  padding: 16px 20px;
  display: grid;
  gap: 12px;
}
.deal-card {
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: #ffffff;
  transition: all 0.16s var(--ease-apple);
}
.deal-card:hover {
  background: #fbfbfd;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.deal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.deal-head strong {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
}
.deal-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.track-step {
  text-align: center;
  font-size: 10.5px;
  font-weight: 550;
  padding: 5px 4px;
  border-radius: 6px;
  background: #f2f2f7;
  color: #86868b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-step.done {
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
  font-weight: 600;
}
.track-step.active {
  background: rgba(0, 113, 227, 0.12);
  color: #0071e3;
  font-weight: 700;
  box-shadow: 0 0 0 1px #0071e3;
}

/* --- MOBILE PWA INSTALL FLOATING BANNER --- */
.mobile-install-banner {
  position: fixed;
  bottom: 74px;
  left: 12px;
  right: 12px;
  background: #0f172a;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 99;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 900px) {
  .mobile-install-banner {
    display: none !important;
  }
}

/* ==========================================================================
   ULTRA-RESPONSIVE MOBILE & APP-VIEW STYLES (ANDROID & IOS OPTIMIZED)
   ========================================================================== */

@media (max-width: 900px) {
  /* SHELL & SIDEBAR TRANSITION TO CLEAN MOBILE APP */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .shell {
    display: block !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    padding-bottom: 74px !important;
    box-sizing: border-box !important;
  }

  .sidebar {
    display: none !important;
  }

  .main {
    width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  /* FROSTED GLASS MOBILE BOTTOM APP BAR */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 58px !important;
    background: rgba(11, 15, 25, 0.97) !important;

    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    z-index: 1000 !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  }

  .mobile-nav-tab {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    padding: 6px 0 !important;
    color: #94a3b8 !important;
    font-size: 10.5px !important;
  }
  .mobile-nav-tab.active {
    color: #38bdf8 !important;
    font-weight: 750 !important;
  }

  /* --- CRITICAL: ULTRA-CLEAN NON-MESSY MOBILE TOPBAR --- */
  .topbar {
    height: 52px !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    gap: 8px !important;
  }

  .topbar-left {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    flex: 1 !important;
  }

  .mobile-menu-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
  }

  .topbar-crumb-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
  }

  .topbar-org, .topbar-divider, .topbar-divider-v {
    display: none !important;
  }

  .topbar-page {
    font-size: 14.5px !important;
    font-weight: 750 !important;
    color: #0f172a !important;
    letter-spacing: -0.01em !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .live-status-dot {
    font-size: 9.5px !important;
    padding: 1px 5px !important;
    border-radius: 10px !important;
    margin-left: 2px !important;
  }

  /* HIDE DESKTOP WIDE SEARCH PILL ON MOBILE */
  .topbar-search-pill {
    display: none !important;
  }

  /* MOBILE RIGHT ACTIONS: COMPACT & ZERO CLUTTER */
  .top-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  .topbar-action-pill#topbar-magic-parser-btn {
    padding: 5px 8px !important;
    font-size: 11.5px !important;
    border-radius: 7px !important;
    background: #059669 !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
  }

  .topbar-action-pill#topbar-cost-calc-btn {
    display: none !important; /* Kept in bottom menu & dashboard */
  }

  .client-toggle-btn {
    padding: 5px 8px !important;
    font-size: 11px !important;
    border-radius: 7px !important;
    font-weight: 650 !important;
    white-space: nowrap !important;
  }

  .topbar-icon-btn#topbar-notif-bell {
    width: 32px !important;
    height: 32px !important;
    border-radius: 7px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    padding: 0 !important;
  }

  #demo-toggle, .top-actions .avatar {
    display: none !important;
  }

  /* CLIENT PRESENTATION MODE BANNER ON MOBILE */
  .client-mode-banner {
    padding: 8px 12px !important;
    font-size: 11.5px !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .client-mode-banner strong {
    display: none !important;
  }
  .client-mode-banner button {
    padding: 3px 8px !important;
    font-size: 11px !important;
  }

  /* CONTENT WRAPPER */
  .content {
    padding: 12px 10px 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* DASHBOARD HERO BOX ON MOBILE */
  .dashboard-hero-box {
    padding: 14px 12px !important;
    border-radius: 12px !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
  }

  .dashboard-hero-title {
    font-size: 16.5px !important;
  }

  .dashboard-hero-sub {
    font-size: 11.5px !important;
  }

  .dashboard-hero-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }

  .dashboard-hero-actions .button {
    width: 100% !important;
    justify-content: center !important;
    font-size: 11.5px !important;
    padding: 7px 6px !important;
  }

  /* BENTO TICKER ON MOBILE */
  .bento-ticker {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
  }

  .bento-card {
    padding: 10px 12px !important;
  }

  /* METRIC CARDS */
  .cards {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
  }

  .metric {
    padding: 12px 10px !important;
  }

  .metric-value {
    font-size: 18px !important;
  }

  /* PROPERTY, LEAD & DEAL CARDS */
  .property-grid, .vault-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .property-card, .lead-card {
    padding: 14px 12px !important;
  }

  /* KANBAN BOARDS HORIZONTAL SWIPE */
  .kanban-board {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 10px !important;
    padding-bottom: 10px !important;
  }

  .kanban-col {
    min-width: 250px !important;
    flex-shrink: 0 !important;
  }

  /* TABLES HORIZONTAL SWIPE */
  .table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
  }

  /* MODALS & DRAWERS FULL WIDTH ON MOBILE */
  .auth-card, .spotlight-modal {
    width: 94vw !important;
    max-width: 94vw !important;
    margin: auto !important;
    border-radius: 14px !important;
    padding: 16px 12px !important;
  }

  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .field.full {
    grid-column: span 1 !important;
  }
}

@media (max-width: 400px) {
  .topbar-page {
    font-size: 13px !important;
  }
  .client-toggle-btn {
    font-size: 10px !important;
    padding: 4px 6px !important;
  }
  .bento-ticker {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   TOP-LEFT SLIDE DRAWER & CLEAN NO-BOTTOM-BAR MOBILE STYLES
   ========================================================================== */

.mobile-bottom-nav {
  display: none !important;
}

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

.mobile-slide-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(300px, 84vw);
  background: #ffffff;
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.25);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  animation: slideInLeft 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.drawer-header-brand {
  padding: 16px 18px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.drawer-close-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #475569;
  cursor: pointer;
}

.drawer-body {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.drawer-section-label {
  font-size: 10.5px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 6px 6px;
}

.drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 550;
  color: #1e293b;
  text-decoration: none;
  transition: all 0.15s ease;
}
.drawer-nav-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.drawer-nav-item.active {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 700;
}

.drawer-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  color: #64748b;
}
.drawer-nav-item.active .drawer-nav-icon {
  color: #2563eb;
}

.drawer-tool-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 650;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}
.drawer-tool-btn:hover {
  background: #f1f5f9;
}
.drawer-tool-btn.emerald {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

@media (max-width: 900px) {
  .shell {
    padding-bottom: 20px !important;
  }
}

/* ==========================================================================
   SUBSCRIPTION PLANS & PRICING DESK (MULTI-TENURE DISCOUNT ENGINE)
   ========================================================================== */

.pricing-header-box {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 32px;
  padding: 10px 16px 0;
}

.pricing-kicker {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 12px;
}

.pricing-title {
  font-size: 28px;
  font-weight: 850;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  line-height: 1.25;
}

.pricing-subtitle {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* Multi-Tenure Selector Tabs */
.tenure-picker-container {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

.tenure-picker {
  display: inline-flex;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 5px;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.tenure-btn {
  border: 0;
  background: transparent;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 650;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.tenure-btn:hover {
  color: #0f172a;
}

.tenure-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-weight: 750;
}

.tenure-save-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 6px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.tenure-btn.active .tenure-save-tag {
  background: #dcfce7;
  color: #15803d;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1140px;
  margin: 0 auto 40px;
  align-items: stretch;
}

.plan-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.02);
}

.plan-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.plan-card.popular {
  border: 2px solid #2563eb;
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.plan-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 14px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  white-space: nowrap;
}

.plan-head {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.plan-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 4px;
}

.plan-tagline {
  font-size: 12.5px;
  color: var(--muted);
  min-height: 36px;
  line-height: 1.4;
  margin: 0 0 14px;
}

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

.plan-price-cur {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.plan-price-num {
  font-size: 38px;
  font-weight: 850;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.plan-price-period {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.plan-price-strike {
  font-size: 14px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 600;
  margin-left: 4px;
}

.plan-billed-note {
  font-size: 11.5px;
  color: #059669;
  font-weight: 700;
  margin-top: 4px;
}

.plan-features-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 26px;
  flex: 1;
}

.plan-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #334155;
  line-height: 1.4;
}

.plan-feature-item.excluded {
  color: #94a3b8;
  text-decoration: line-through;
  opacity: 0.7;
}

.plan-feature-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ecfdf5;
  color: #059669;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-feature-item.excluded .plan-feature-icon {
  background: #f1f5f9;
  color: #94a3b8;
}

.plan-cta-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 750;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.plan-cta-btn.primary {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.plan-cta-btn.primary:hover {
  background: #1d4ed8;
}

.plan-cta-btn.secondary {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}
.plan-cta-btn.secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

/* Enterprise Custom Banner */
.enterprise-custom-banner {
  background: #0f172a;
  color: #ffffff;
  border-radius: 16px;
  padding: 24px 30px;
  max-width: 1140px;
  margin: 0 auto 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

/* FAQ Accordion */
.pricing-faq-section {
  max-width: 860px;
  margin: 0 auto 50px;
}

.pricing-faq-title {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 24px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.faq-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
}

.faq-q {
  font-size: 14px;
  font-weight: 750;
  color: var(--ink);
  margin-bottom: 6px;
}

.faq-a {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .pricing-title {
    font-size: 22px;
  }
  .tenure-picker {
    width: 100%;
  }
  .tenure-btn {
    flex: 1 1 40%;
    justify-content: center;
    padding: 7px 8px;
    font-size: 11.5px;
  }
}

/* ==========================================================================
   CLOUD DATABASE & MULTI-DEVICE SYNC ENGINE STYLES
   ========================================================================== */

.cloud-status-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cloud-status-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cloud-status-icon-bubble {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.cloud-status-icon-bubble.connected {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
}

.cloud-status-icon-bubble.offline {
  background: #fffbeb;
  border-color: #fde68a;
  color: #d97706;
}

.cloud-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
}

.cloud-stat-badge.green {
  background: #dcfce7;
  color: #15803d;
}

.cloud-stat-badge.amber {
  background: #fef3c7;
  color: #b45309;
}

.cloud-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.cloud-action-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cloud-action-box h4 {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--ink);
}

.cloud-action-box p {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* ==========================================================================
   WHATSAPP CLIENT BROCHURE & DEAL PITCH DISPATCHER
   ========================================================================== */

.wa-bubble-preview {
  background: #eef8f2;
  border: 1px solid #c7eed8;
  border-radius: 12px;
  padding: 14px 16px;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #111827;
  font-size: 13.5px;
  line-height: 1.5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.wa-bubble-preview::before {
  content: "";
  position: absolute;
  top: 12px;
  left: -8px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 8px solid #eef8f2;
}

.wa-preview-time {
  text-align: right;
  font-size: 10.5px;
  color: #6b7280;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.wa-format-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.wa-format-tab {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 650;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wa-format-tab.active {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
}

/* --- LUXURY INSTITUTIONAL AUTH PORTAL --- */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  background: #090d16;
  color: #f8fafc;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.auth-wrapper::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15), transparent 70%);
  pointer-events: none;
}

.auth-wrapper::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.12), transparent 70%);
  pointer-events: none;
}

.auth-hero-panel {
  flex: 1.1;
  padding: 60px 70px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}

.auth-form-panel {
  flex: 0.9;
  display: grid;
  place-items: center;
  padding: 40px;
  position: relative;
  z-index: 1;
  background: rgba(11, 15, 25, 0.6);
  
}

.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 30px;
  font-size: 11.5px;
  font-weight: 700;
  color: #60a5fa;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.auth-hero-title {
  font-size: 40px;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin: 24px 0 16px;
  color: #ffffff;
}

.auth-hero-title span {
  background: linear-gradient(135deg, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-hero-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 520px;
  margin-bottom: 32px;
}

.auth-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.auth-pillar-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 18px;
  transition: all 0.2s ease;
}

.auth-pillar-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(96, 165, 250, 0.3);
  transform: translateY(-2px);
}

.auth-pillar-icon {
  font-size: 22px;
  margin-bottom: 8px;
}

.auth-pillar-title {
  font-size: 14px;
  font-weight: 750;
  color: #f1f5f9;
  margin-bottom: 4px;
}

.auth-pillar-text {
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}

.auth-trust-footer {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  color: #64748b;
}

.auth-card-modern {
  width: min(440px, 100%);
  background: #ffffff;
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: #0f172a;
}

.auth-tabs-toggle {
  display: flex;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
  gap: 4px;
}

.auth-tab-btn {
  flex: 1;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.auth-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (max-width: 900px) {
  .auth-wrapper { flex-direction: column; }
  .auth-hero-panel { display: none; }
  .auth-form-panel { padding: 24px 16px; min-height: 100vh; }
  .auth-card-modern { padding: 28px 20px; }
}

/* --- SUBSCRIPTION PLAN TIERING & UPGRADE UI --- */
.plan-indicator-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 750;
  color: #2563eb;
  cursor: pointer;
  transition: all 0.15s ease;
}

.plan-indicator-badge:hover {
  background: rgba(37, 99, 235, 0.15);
  border-color: #2563eb;
}

.gated-feature-overlay {
  background: linear-gradient(135deg, #090d16, #1e293b);
  border-radius: 20px;
  padding: 50px 30px;
  text-align: center;
  color: #f8fafc;
  max-width: 680px;
  margin: 40px auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gated-feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 32px;
}

.gated-feature-title {
  font-size: 24px;
  font-weight: 850;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}

.gated-feature-desc {
  font-size: 14.5px;
  color: #94a3b8;
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

.plan-sim-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
}

/* --- UNIVERSAL MOBILE HEADER & BOTTOM NAV SYSTEM --- */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 900px) {
  html, body {
    overflow-x: hidden !important;
    position: relative;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
  }

  .shell {
    padding-bottom: 70px !important; /* Space for bottom nav */
  }

  .sidebar {
    display: none !important;
  }

  .main {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  /* Universal Topbar on EVERY page */
  .topbar {
    height: 54px !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 60 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    gap: 8px !important;
  }

  .topbar-left {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    flex: 1 !important;
  }

  .mobile-menu-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    border-radius: 10px !important;
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    touch-action: manipulation;
  }

  .mobile-menu-btn:active {
    background: #e2e8f0 !important;
    transform: scale(0.96);
  }

  .topbar-crumb-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .topbar-page {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .top-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  .topbar-search-pill,
  .topbar-action-pill#topbar-magic-parser-btn,
  .topbar-action-pill#topbar-cost-calc-btn,
  .topbar-divider-v {
    display: none !important;
  }

  .plan-indicator-badge {
    padding: 4px 8px !important;
    font-size: 11px !important;
  }

  /* Fixed Bottom Nav Dock */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 60px !important;
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    z-index: 60 !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06) !important;
    align-items: center !important;
    justify-content: space-around !important;
    padding: 0 4px !important;
    box-sizing: border-box !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  }

  .mobile-bottom-nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    flex: 1 !important;
    height: 100% !important;
    color: #64748b !important;
    text-decoration: none !important;
    font-size: 10.5px !important;
    font-weight: 650 !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    touch-action: manipulation;
    padding: 0 !important;
  }

  .mobile-bottom-nav-item.active {
    color: #2563eb !important;
    font-weight: 800 !important;
  }

  .mobile-bottom-nav-item .nav-icon-wrap {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .mobile-bottom-nav-item.active .nav-icon-wrap {
    background: rgba(37, 99, 235, 0.1);
  }

  /* Drawers and modals responsive fixes */
  .drawer, .mobile-slide-drawer, .modal, .auth-card {
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  .table-wrap {
    -webkit-overflow-scrolling: touch !important;
    overflow-x: auto !important;
    width: 100% !important;
  }

  .content {
    padding: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .page-actions {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .page-actions .button {
    flex: 1 !important;
    min-width: 140px !important;
    justify-content: center !important;
  }

  .cards {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* ==========================================================================
   BROKERAI MOBILE-FIRST MASTERPIECE DESIGN SYSTEM (iOS & Android Native Feel)
   ========================================================================== */

/* --- ROOT & GLOBAL RESETS --- */
* {
  -webkit-tap-highlight-color: transparent !important;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f8fafc;
  color: #0f172a;
  touch-action: manipulation;
}

/* --- ALL MODALS & BACKDROPS (CRITICAL FIX: NO BLUR TRAPPING) --- */

/* 1. Backdrop for side drawers */
.drawer-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.42) !important;

  z-index: 9998 !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  animation: fadeInBackdrop 0.18s ease-out forwards !important;
}

/* 2. Side Drawers (Slide from right, ALWAYS ABOVE BACKDROP) */
.drawer,
aside.drawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 100vh !important;
  width: min(640px, 100vw) !important;
  max-width: 100vw !important;
  background: #ffffff !important;
  color: #1d1d1f !important;
  z-index: 10000 !important;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.22) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  border-left: 1px solid rgba(0, 0, 0, 0.08) !important;
  animation: slideInDrawerRight 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

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

/* 3. Backdrop for centered modals */
.modal-backdrop,
.spotlight-backdrop,
.plan-sim-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.45) !important;

  z-index: 9998 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  animation: fadeInBackdrop 0.18s ease-out forwards !important;
}

@keyframes fadeInBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 4. Centered Modals & Dialogs (ALWAYS ABOVE BACKDROP) */
.modal,
.plan-sim-card,
.auth-card-modal,
.auth-card,
.spotlight-modal {
  position: relative !important;
  background: #ffffff !important;
  color: #1d1d1f !important;
  border-radius: 18px !important;
  width: 100% !important;
  max-width: 580px !important;
  max-height: 88vh !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 24px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.28) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  z-index: 10000 !important;
  box-sizing: border-box !important;
  animation: popInModal 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes popInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 5. Drawer Internal Typography & Controls */
.drawer-head {
  padding: 18px 24px !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  background: #ffffff !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 10 !important;
}

.drawer-head .close,
.modal .close {
  background: rgba(0, 0, 0, 0.06) !important;
  border: none !important;
  border-radius: 50% !important;
  width: 32px !important;
  height: 32px !important;
  font-size: 18px !important;
  line-height: 32px !important;
  text-align: center !important;
  color: #86868b !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

.drawer-head .close:hover,
.modal .close:hover {
  background: rgba(0, 0, 0, 0.12) !important;
  color: #1d1d1f !important;
}

.drawer form,
.drawer .form {
  padding: 20px 24px !important;
  flex: 1 !important;
  overflow-y: auto !important;
}

/* --- SLIDE-OUT MOBILE DRAWER (MENU) --- */
.mobile-slide-drawer {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  width: min(340px, 86vw) !important;
  height: 100vh !important;
  background: #ffffff !important;
  z-index: 10000 !important;
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.25) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  animation: slideInDrawer 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.drawer-header-brand {
  padding: 18px 16px !important;
  background: #090d16 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  flex-shrink: 0 !important;
}

.drawer-close-btn {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border: none !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: grid !important;
  place-items: center !important;
}

.drawer-body {
  padding: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  flex: 1 !important;
  overflow-y: auto !important;
}

.drawer-section-label {
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #94a3b8 !important;
  margin-bottom: 4px !important;
}

.drawer-nav-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.drawer-nav-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  color: #334155 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

.drawer-nav-item:active, .drawer-nav-item.active {
  background: #eff6ff !important;
  color: #2563eb !important;
  font-weight: 800 !important;
}

.drawer-tool-btn {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 11px 14px !important;
  border-radius: 12px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #0f172a !important;
  width: 100% !important;
  text-align: left !important;
  cursor: pointer !important;
}

.drawer-tool-btn.emerald {
  background: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
  color: #047857 !important;
}

/* --- UNIVERSAL CLEAN MOBILE TOPBAR & BOTTOM DOCK --- */
@media (max-width: 900px) {
  .shell {
    padding-bottom: 74px !important; /* Space for bottom dock */
    width: 100% !important;
    max-width: 100vw !important;
  }

  .sidebar {
    display: none !important;
  }

  .main {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    padding: 0 !important;
  }

  /* Universal Sticky Topbar */
  .topbar {
    height: 56px !important;
    padding: 0 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 800 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  }

  .topbar-left {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
    flex: 1 !important;
  }

  .mobile-menu-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    border-radius: 10px !important;
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
  }

  .mobile-menu-btn:active {
    background: #e2e8f0 !important;
    transform: scale(0.95);
  }

  .topbar-crumb-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .topbar-org, .topbar-divider {
    display: none !important;
  }

  .topbar-page {
    font-size: 16px !important;
    font-weight: 850 !important;
    color: #0f172a !important;
    letter-spacing: -0.02em !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .top-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
  }

  .topbar-search-pill,
  .topbar-action-pill#topbar-magic-parser-btn,
  .topbar-action-pill#topbar-cost-calc-btn,
  .topbar-divider-v {
    display: none !important;
  }

  .plan-indicator-badge {
    padding: 5px 9px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    color: #2563eb !important;
    border-radius: 20px !important;
    cursor: pointer !important;
  }

  /* Fixed Bottom Navigation Dock */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 62px !important;
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    z-index: 850 !important;
    box-shadow: 0 -3px 20px rgba(0, 0, 0, 0.08) !important;
    align-items: center !important;
    justify-content: space-around !important;
    padding: 0 4px !important;
    box-sizing: border-box !important;
    padding-bottom: max(4px, env(safe-area-inset-bottom, 4px)) !important;
  }

  .mobile-bottom-nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    flex: 1 !important;
    height: 100% !important;
    color: #64748b !important;
    text-decoration: none !important;
    font-size: 11px !important;
    font-weight: 650 !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
  }

  .mobile-bottom-nav-item.active {
    color: #2563eb !important;
    font-weight: 850 !important;
  }

  .mobile-bottom-nav-item .nav-icon-wrap {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .mobile-bottom-nav-item.active .nav-icon-wrap {
    background: rgba(37, 99, 235, 0.12);
  }

  /* --- CONTENT & CARD SPACING ON MOBILE --- */
  .content {
    padding: 12px 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
  }

  .page-title {
    font-size: 20px !important;
    font-weight: 850 !important;
    letter-spacing: -0.02em !important;
  }

  .page-actions {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .page-actions .button {
    flex: 1 1 calc(50% - 4px) !important;
    min-width: 130px !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    justify-content: center !important;
  }

  /* Metric cards */
  .cards {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .metric {
    padding: 14px 16px !important;
    border-radius: 14px !important;
  }

  .metric-value {
    font-size: 24px !important;
  }

  /* Responsive Grid for Properties */
  .properties-grid, .grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* Tables container */
  .table-wrap {
    -webkit-overflow-scrolling: touch !important;
    overflow-x: auto !important;
    width: 100% !important;
    border-radius: 12px !important;
  }

  .table {
    min-width: 580px !important;
  }

  .table th, .table td {
    padding: 10px 12px !important;
    font-size: 13px !important;
  }
}

/* --- PROPERTY PHOTO GALLERY & FLOOR PLAN VIEWER --- */
.gallery-hero-img-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
  margin-bottom: 12px;
}

.gallery-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-hero-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 750;
  
}

.gallery-thumbs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.gallery-thumb {
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: #1e293b;
}

.gallery-thumb.active {
  border-color: #2563eb;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floor Plan Blueprint Box */
.floor-plan-box {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
}

.floor-plan-img {
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
  border: 1px solid #e2e8f0;
}

/* --- BROCHURE FLYER (PDF STYLE) --- */
.brochure-sheet {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 18px;
  color: #0f172a;
}

.brochure-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #2563eb;
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.brochure-grid-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
}

.brochure-spec-item {
  display: flex;
  flex-direction: column;
}

.brochure-spec-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
}

.brochure-spec-val {
  font-size: 14px;
  color: #0f172a;
  font-weight: 800;
  margin-top: 2px;
}

/* Button action enhancements */
.btn-act.gallery {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.btn-act.gallery:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

/* --- PERFECT MINIMAL A4 PRINT & PDF EXPORT STYLING --- */
@media print {
  @page {
    size: A4 portrait;
    margin: 12mm 10mm;
  }

  body, html {
    background: #ffffff !important;
    color: #0f172a !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", Roboto, -apple-system-subheadline, sans-serif !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  * {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif !important;
  }

  .sidebar,
  .topbar,
  .mobile-bottom-nav,
  .client-mode-banner,
  .page-head,
  .filters,
  .cards,
  .view-switcher,
  .drawer-close-btn,
  .close,
  button,
  .button,
  .page-actions,
  .property-card-footer,
  .sig-action-row,
  .sig-clear-btn,
  .sig-adopt-btn,
  .sig-upload-btn,
  .signature-sign-hint,
  .form-actions,
  .no-print-bar {
    display: none !important;
  }

  .modal-backdrop,
  .drawer-backdrop {
    position: static !important;
    background: transparent !important;
    backdrop-filter: none !important;
    padding: 0 !important;
  }

  .modal,
  .drawer {
    position: static !important;
    transform: none !important;
    max-width: 100% !important;
    width: 100% !important;
    max-height: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
  }

  .legal-agreement-paper,
  .brochure-sheet,
  .tax-invoice-sheet {
    box-shadow: none !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    border: 1px solid #cbd5e1 !important;
    margin: 0 auto !important;
    padding: 20px !important;
  }

  .signature-blocks-grid,
  .signature-box,
  .cost-breakdown-table {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .signature-canvas-wrap {
    border: 1px solid #cbd5e1 !important;
  }

  .brochure-header {
    border-bottom: 2px solid #0f172a !important;
  }
}

/* Gallery & Zoom Styles */
.gallery-hero-img-wrap:hover {
  cursor: zoom-in;
}

.gallery-hero-img-wrap {
  transition: transform 0.2s ease;
}

/* =========================================================
   LEGAL AGREEMENT PAPER & INTERACTIVE TOUCH SIGNATURE PADS
   ========================================================= */

.legal-agreement-paper {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 24px 28px !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06) !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  line-height: 1.65 !important;
  margin-top: 18px !important;
}

.stamp-header-sim {
  background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%) !important;
  color: #f8fafc !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  text-align: center !important;
  font-weight: 800 !important;
  font-size: 12.5px !important;
  letter-spacing: 0.8px !important;
  margin-bottom: 18px !important;
  border: 2px solid #3b82f6 !important;
}

.legal-title {
  text-align: center !important;
  font-size: 17px !important;
  font-weight: 850 !important;
  color: #0f172a !important;
  text-decoration: underline !important;
  margin: 14px 0 18px !important;
}

.legal-clause {
  font-size: 13.5px !important;
  color: #334155 !important;
  margin-bottom: 12px !important;
  text-align: justify !important;
}

.legal-clause strong {
  color: #0f172a !important;
}

/* SIGNATURE SECTION */
.signature-section-header {
  margin-top: 24px !important;
  padding-top: 16px !important;
  border-top: 2px dashed #cbd5e1 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 14px !important;
}

.signature-blocks-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
  gap: 14px !important;
  margin-top: 12px !important;
}

.signature-box {
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 12px !important;
  padding: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  position: relative !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
}

.signature-box-header {
  width: 100% !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 8px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #1e40af !important;
}

.signature-canvas-wrap {
  width: 100% !important;
  height: 90px !important;
  background: #ffffff !important;
  border: 2px dashed #94a3b8 !important;
  border-radius: 8px !important;
  position: relative !important;
  cursor: crosshair !important;
  overflow: hidden !important;
  touch-action: none !important;
  display: block !important;
}

.signature-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  background: #ffffff !important;
  touch-action: none !important;
}

.signature-sign-hint {
  position: absolute !important;
  bottom: 6px !important;
  left: 0 !important;
  right: 0 !important;
  text-align: center !important;
  font-size: 11px !important;
  color: #94a3b8 !important;
  pointer-events: none !important;
  font-weight: 600 !important;
}

.signature-box-footer {
  margin-top: 8px !important;
  width: 100% !important;
  font-size: 11.5px !important;
  color: #475569 !important;
}

.signature-party-name {
  font-weight: 800 !important;
  color: #0f172a !important;
  font-size: 12.5px !important;
}

.sig-clear-btn {
  background: rgba(239, 68, 68, 0.08) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  color: #dc2626 !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  padding: 2px 6px !important;
  border-radius: 5px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.sig-clear-btn:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
}

.sig-action-row {
  display: flex !important;
  gap: 6px !important;
  width: 100% !important;
  margin-top: 6px !important;
}

.sig-adopt-btn {
  background: rgba(37, 99, 235, 0.08) !important;
  border: 1px solid rgba(37, 99, 235, 0.25) !important;
  color: #2563eb !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 5px 6px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  margin-top: 0 !important;
  flex: 1 !important;
  transition: all 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.sig-adopt-btn:hover {
  background: #2563eb !important;
  color: #ffffff !important;
}

.sig-upload-btn {
  background: rgba(16, 185, 129, 0.08) !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
  color: #059669 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 5px 6px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  margin-top: 0 !important;
  flex: 1 !important;
  transition: all 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.sig-upload-btn:hover {
  background: #059669 !important;
  color: #ffffff !important;
}

/* =========================================================
   APPLE HIG BOTTOM & CENTERED PROPERTY ACTION SHEET (···)
   ========================================================= */

.bottom-action-sheet {
  position: fixed !important;
  z-index: 10000 !important;
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* Desktop layout (centered modal sheet) */
@media (min-width: 641px) {
  .bottom-action-sheet {
    position: relative !important;
    margin: auto !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: min(540px, 94vw) !important;
    max-height: 88vh !important;
    border-radius: 18px !important;
    animation: popInModal 0.18s ease-out forwards !important;
  }
}

/* Mobile layout (slide up bottom sheet) */
@media (max-width: 640px) {
  .bottom-action-sheet {
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-height: 85vh !important;
    border-radius: 20px 20px 0 0 !important;
    animation: slideUpSheet 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }
}

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

.sheet-header {
  padding: 14px 18px 10px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  position: sticky !important;
  top: 0 !important;
  background: #ffffff !important;
  z-index: 2 !important;
}

.sheet-handle {
  width: 36px !important;
  height: 4px !important;
  background: #cbd5e1 !important;
  border-radius: 4px !important;
  margin: 0 auto 10px !important;
}

.sheet-close {
  background: rgba(0, 0, 0, 0.05) !important;
  border: none !important;
  border-radius: 50% !important;
  width: 28px !important;
  height: 28px !important;
  font-size: 16px !important;
  line-height: 28px !important;
  text-align: center !important;
  color: #64748b !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease !important;
}

.sheet-close:hover {
  background: rgba(0, 0, 0, 0.1) !important;
  color: #0f172a !important;
}

.sheet-body {
  padding: 12px 16px !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.sheet-action-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  padding: 12px 14px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  text-align: left !important;
  transition: all 0.15s ease !important;
  text-decoration: none !important;
}

.sheet-action-item:hover {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  transform: translateY(-1px) !important;
}

.sheet-action-icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  flex-shrink: 0 !important;
}

.sheet-action-text {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

.sheet-action-text strong {
  font-size: 13.5px !important;
  color: #0f172a !important;
  font-weight: 750 !important;
}

.sheet-action-text small {
  font-size: 11.5px !important;
  color: #64748b !important;
  margin-top: 2px !important;
}

.sheet-action-arrow {
  font-size: 18px !important;
  color: #94a3b8 !important;
  font-weight: 700 !important;
  margin-left: auto !important;
}

/* LUXURY PROPERTY CLIENT MICROSITE & SHOWCASE PORTAL */

.microsite-wrap {
  min-height: 100vh;
  background: #f8fafc;
  color: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  padding-bottom: 90px;
  box-sizing: border-box;
}

.microsite-top-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.94);

  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.microsite-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.microsite-brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.microsite-container {
  max-width: 980px;
  margin: 20px auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.microsite-hero-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.microsite-gallery-main {
  position: relative;
  width: 100%;
  height: 440px;
  background: #0f172a;
  overflow: hidden;
}

@media (max-width: 640px) {
  .microsite-gallery-main {
    height: 280px;
  }
}

.microsite-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.microsite-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.65);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);

  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.microsite-gallery-nav:hover {
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-50%) scale(1.08);
}

.microsite-gallery-nav.prev {
  left: 16px;
}

.microsite-gallery-nav.next {
  right: 16px;
}

.microsite-gallery-counter {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;

  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 2;
}

.microsite-thumbs {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  background: #f8fafc;
  overflow-x: auto;
  border-bottom: 1px solid #f1f5f9;
}

.microsite-thumb {
  width: 72px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.microsite-thumb:hover {
  opacity: 0.9;
}

.microsite-thumb.active {
  opacity: 1;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.microsite-header-body {
  padding: 24px;
}

.microsite-title {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin: 8px 0 4px;
  line-height: 1.25;
}

.microsite-loc {
  font-size: 14.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
}

.microsite-price-box {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.microsite-price-main {
  font-size: 28px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.8px;
}

.microsite-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.microsite-spec-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.microsite-spec-icon {
  font-size: 20px;
  margin-bottom: 4px;
}

.microsite-spec-val {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
}

.microsite-spec-lbl {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}

.cost-calculator-box {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  padding: 24px;
}

.cost-toggle-group {
  display: flex;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
}

.cost-toggle-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.cost-toggle-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.cost-breakdown-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.cost-breakdown-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
}

.cost-breakdown-table td.val {
  text-align: right;
  font-weight: 700;
  color: #0f172a;
}

.cost-breakdown-table tr.total-row td {
  border-top: 2px solid #e2e8f0;
  border-bottom: none;
  font-size: 16px;
  font-weight: 800;
  color: #059669;
  background: #f0fdf4;
  border-radius: 8px;
}

.emi-slider-wrap {
  margin: 16px 0;
}

.emi-range-input {
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: #e2e8f0;
  accent-color: #2563eb;
  cursor: pointer;
}

.emi-display-box {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.amenities-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.amenity-badge-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 650;
  color: #334155;
}

.amenity-badge-icon {
  font-size: 16px;
  color: #059669;
  font-weight: 800;
}

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

.vicinity-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #f1f5f9;
  font-size: 13.5px;
}

.vicinity-item .time {
  font-weight: 750;
  color: #2563eb;
  background: #eff6ff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
}

.microsite-floating-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);

  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 12px 20px;
  display: flex;
  gap: 12px;
  z-index: 99;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.microsite-btn-wa {
  flex: 1.5;
  background: #25d366;
  color: #ffffff;
  padding: 12px;
  border-radius: 12px;
  font-weight: 750;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.microsite-btn-call {
  flex: 1;
  background: #0f172a;
  color: #ffffff;
  padding: 12px;
  border-radius: 12px;
  font-weight: 750;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  border: none;
}

.microsite-btn-visit {
  flex: 1.2;
  background: #2563eb;
  color: #ffffff;
  padding: 12px;
  border-radius: 12px;
  font-weight: 750;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* END LUXURY PROPERTY CLIENT MICROSITE */

/* ==========================================================================
   SIDEBAR & MOBILE MENU (MEHTA PRIME REALTY EXACT DESIGN SPEC)
   ========================================================================== */

.sidebar {
  background: #ffffff !important;
  color: #0f172a !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  border-right: 1px solid #e2e8f0 !important;
  width: 270px !important;
  min-width: 270px !important;
  height: 100vh !important;
  position: sticky !important;
  top: 0 !important;
  overflow-y: auto !important;
  z-index: 99 !important;
}

.drawer-header-brand {
  background: #090d16 !important;
  padding: 16px 18px !important;
  display: flex !important;
  align-items: center !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.sidebar-brand-icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 9px !important;
  background: #165dff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-shadow: 0 4px 12px rgba(22, 93, 255, 0.4) !important;
}
.sidebar-brand-icon svg {
  width: 20px !important;
  height: 20px !important;
}

.drawer-section-label {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #8896ab !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  margin: 0 0 8px 6px !important;
}

.sidebar-nav-btn, .drawer-nav-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  padding: 10px 12px !important;
  border-radius: 9px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  background: transparent !important;
  border: none !important;
  text-align: left !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

.sidebar-nav-btn:hover, .drawer-nav-item:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.sidebar-nav-btn.active, .drawer-nav-item.active {
  background: #eff6ff !important;
  color: #165dff !important;
  font-weight: 750 !important;
}

.drawer-nav-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  color: #64748b !important;
}

.sidebar-nav-btn.active .drawer-nav-icon, .drawer-nav-item.active .drawer-nav-icon {
  color: #165dff !important;
}

.drawer-tool-btn {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 10px 14px !important;
  border-radius: 11px !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  cursor: pointer !important;
  text-align: left !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

.drawer-tool-btn:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

.drawer-tool-btn.emerald {
  background: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
  color: #047857 !important;
  font-weight: 750 !important;
}

.drawer-tool-btn.emerald:hover {
  background: #d1fae5 !important;
  border-color: #6ee7b7 !important;
}

.mobile-slide-drawer {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  width: min(320px, 86vw) !important;
  background: #ffffff !important;
  box-shadow: 16px 0 48px rgba(0, 0, 0, 0.35) !important;
  z-index: 1002 !important;
  display: flex !important;
  flex-direction: column !important;
  animation: slideInLeft 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

/* ==========================================================================
   UNDERRATED LUXURY OBSIDIAN & FROSTED GLASS EDITORIAL PALETTE (RESPONSIVE)
   ========================================================================== */

/* 1. DESKTOP SIDEBAR (WIDTH >= 1025px) */
@media (min-width: 1025px) {
  .sidebar {
    background: #0b0f19 !important; /* Deep obsidian basalt */
    color: #f8fafc !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    width: 275px !important;
    min-width: 275px !important;
    height: 100vh !important;
    position: sticky !important;
    top: 0 !important;
    overflow-y: auto !important;
    z-index: 99 !important;
    box-shadow: 6px 0 32px rgba(0, 0, 0, 0.45) !important;
  }

  .mobile-menu-btn, #mobile-hamburger-btn {
    display: none !important;
  }

  .mobile-bottom-nav {
    display: none !important;
  }

  .mobile-fab-container {
    display: none !important;
  }
}

/* 2. MOBILE RESPONSIVE RULES (WIDTH <= 1024px) - HIDE DESKTOP SIDEBAR */
@media (max-width: 1024px) {
  .sidebar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    position: absolute !important;
    overflow: hidden !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .shell {
    display: block !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .main {
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding-bottom: 75px !important;
    overflow-x: hidden !important;
  }

  .mobile-menu-btn, #mobile-hamburger-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .mobile-bottom-nav {
    display: flex !important;
  }
}

/* 3. MOBILE SLIDE DRAWER & BACKDROP */
.drawer-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.75) !important;

  z-index: 99999 !important;
  display: flex !important;
  animation: drawerFadeIn 0.2s ease-out !important;
}

.mobile-slide-drawer {
  background: #0b0f19 !important; /* Deep obsidian basalt */
  color: #f8fafc !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  width: 290px !important;
  max-width: 86vw !important;
  height: 100vh !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  overflow-y: auto !important;
  z-index: 100000 !important;
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.6) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  animation: drawerSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

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

@keyframes drawerFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 4. LUXURY BRAND & DRAWER COMPONENTS */
.drawer-header-brand {
  background: #060911 !important; /* Midnight onyx */
  padding: 18px 20px !important;
  display: flex !important;
  align-items: center !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.sidebar-brand-icon {
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45) !important;
}
.sidebar-brand-icon svg {
  width: 20px !important;
  height: 20px !important;
}

.sidebar-brand-name {
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
}

.sidebar-brand-rera {
  color: #34d399 !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  margin-top: 3px !important;
  letter-spacing: -0.01em !important;
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #e2e8f0 !important;
  border-radius: 8px !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 14px !important;
  transition: all 0.15s ease !important;
}
.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

.drawer-section-label {
  font-size: 10.5px !important;
  font-weight: 800 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.09em !important;
  margin: 18px 0 8px 6px !important;
}

.sidebar-nav-btn, .drawer-nav-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  padding: 10px 12px !important;
  border-radius: 9px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  text-align: left !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

.sidebar-nav-btn:hover, .drawer-nav-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #f1f5f9 !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

.sidebar-nav-btn.active, .drawer-nav-item.active {
  background: rgba(37, 99, 235, 0.18) !important;
  color: #60a5fa !important;
  font-weight: 750 !important;
  border-color: rgba(59, 130, 246, 0.35) !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15) !important;
}

.drawer-nav-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  color: #64748b !important;
  transition: color 0.15s ease !important;
}

.sidebar-nav-btn:hover .drawer-nav-icon, .drawer-nav-item:hover .drawer-nav-icon {
  color: #cbd5e1 !important;
}

.sidebar-nav-btn.active .drawer-nav-icon, .drawer-nav-item.active .drawer-nav-icon {
  color: #60a5fa !important;
}

.sidebar-tool-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
}

.drawer-tool-btn {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 10px 14px !important;
  border-radius: 11px !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  color: #e2e8f0 !important;
  cursor: pointer !important;
  text-align: left !important;
  transition: all 0.18s ease !important;
  
}

.drawer-tool-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

.drawer-tool-btn.emerald {
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(52, 211, 153, 0.35) !important;
  color: #34d399 !important;
  font-weight: 750 !important;
}

.drawer-tool-btn.emerald:hover {
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: rgba(52, 211, 153, 0.5) !important;
  color: #6ee7b7 !important;
}

.sidebar-tool-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 18px !important;
}

.sidebar-plan-card {
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  margin-top: 18px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.sidebar-plan-label {
  font-size: 10px !important;
  font-weight: 800 !important;
  color: #64748b !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.sidebar-plan-name {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin-top: 2px !important;
}

.sidebar-plan-switch-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 8px !important;
  padding: 5px 12px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #e2e8f0 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}
.sidebar-plan-switch-btn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.sidebar-account-row {
  padding-top: 14px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-top: 14px !important;
  margin-bottom: 6px !important;
}

.sidebar-account-name {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.2 !important;
}

.sidebar-account-status {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #34d399 !important;
  margin-top: 2px !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.sidebar-signout-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 8px !important;
  padding: 5px 12px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #e2e8f0 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}
.sidebar-signout-btn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

/* ==========================================================================
   UNDERRATED AESTHETIC STYLES FOR DOCUMENT VAULT & COMMISSION SPLITS
   ========================================================================== */

.stats-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 16px !important;
  margin-bottom: 24px !important;
}

.stat-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 18px 20px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.stat-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

.stat-label {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #64748b !important;
  margin-bottom: 6px !important;
}

.stat-value {
  font-size: 24px !important;
  font-weight: 850 !important;
  color: #0f172a !important;
  line-height: 1.2 !important;
  margin-bottom: 4px !important;
  letter-spacing: -0.02em !important;
}

.stat-card .meta {
  font-size: 12px !important;
  color: #64748b !important;
  font-weight: 500 !important;
}

.stat-card .text-success { color: #059669 !important; font-weight: 600 !important; }
.stat-card .text-primary { color: #2563eb !important; font-weight: 600 !important; }

/* TABLE STYLING POLISH */
.table-wrap {
  width: 100% !important;
  overflow-x: auto !important;
  background: #ffffff !important;
  border-radius: 14px !important;
}

.table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  text-align: left !important;
}

.table th {
  background: #f8fafc !important;
  color: #475569 !important;
  font-size: 11.5px !important;
  font-weight: 750 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 12px 18px !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.table td {
  padding: 14px 18px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  vertical-align: middle !important;
  font-size: 13.5px !important;
  color: #1e293b !important;
}

.table tbody tr:hover td {
  background: #f8fafc !important;
}

.table tbody tr:last-child td {
  border-bottom: none !important;
}

/* GATED FEATURE OVERLAY */
.gated-feature-overlay {
  min-height: 440px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 48px 24px !important;
  background: linear-gradient(180deg, #0f172a 0%, #090d16 100%) !important;
  color: #ffffff !important;
  border-radius: 20px !important;
  margin: 12px 0 !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.gated-feature-icon {
  font-size: 44px !important;
  margin-bottom: 16px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  width: 76px !important;
  height: 76px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.gated-feature-title {
  font-size: 24px !important;
  font-weight: 850 !important;
  color: #ffffff !important;
  margin: 0 0 10px !important;
}

.gated-feature-desc {
  max-width: 540px !important;
  font-size: 14px !important;
  color: #94a3b8 !important;
  line-height: 1.6 !important;
  margin: 0 0 24px !important;
}

/* ==========================================================================
   ULTRA-SMOOTH 120FPS HARDWARE ACCELERATION & ZERO-LAG OPTIMIZATIONS
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
}

/* Hardware accelerated modals and drawers */
.mobile-slide-drawer,
.modal,
.drawer-backdrop,
.modal-backdrop,
.spotlight-modal,
.bottom-action-sheet {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* ==========================================================================
   PIXEL-PERFECT RESPONSIVE LAYOUT (DESKTOP, TABLET, MOBILE)
   ========================================================================== */

/* --- DESKTOP (min-width: 1025px) --- */
@media (min-width: 1025px) {
  .shell {
    display: grid !important;
    grid-template-columns: 264px minmax(0, 1fr) !important;
    min-height: 100vh !important;
    width: 100% !important;
    max-width: 100vw !important;
    background: #f8fafc !important;
  }

  .sidebar {
    display: flex !important;
    flex-direction: column !important;
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    width: 264px !important;
    min-width: 264px !important;
    max-width: 264px !important;
    height: 100vh !important;
    max-height: 100vh !important;
    background: #090d16 !important;
    color: #f8fafc !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    z-index: 40 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .main {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    background: #f8fafc !important;
  }

  .topbar {
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 24px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 30 !important;
    gap: 12px !important;
  }

  .topbar-hamburger-btn {
    display: none !important;
  }

  .mobile-bottom-nav {
    display: none !important;
  }
}

/* --- TABLET & MOBILE (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .shell {
    display: block !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    padding-bottom: 0 !important;
    background: #f8fafc !important;
  }

  .sidebar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    position: absolute !important;
    overflow: hidden !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .main {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
  }

  .topbar {
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    padding: 0 14px !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    gap: 8px !important;
  }

  .topbar-hamburger-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
  }

  .topbar-left {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    flex: 1 !important;
  }

  .topbar-crumb-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .topbar-search-pill {
    display: none !important;
  }

  .top-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  .topbar-action-pill span {
    display: none !important;
  }

  .topbar-action-pill {
    padding: 6px 8px !important;
  }
}

/* --- MOBILE SPECIFIC (max-width: 640px) --- */
@media (max-width: 640px) {
  .topbar-org,
  .topbar-divider,
  .topbar-divider-v,
  .top-actions .topbar-action-pill {
    display: none !important;
  }

  .topbar-page {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
  }

  .plan-indicator-badge {
    padding: 4px 8px !important;
    font-size: 10px !important;
  }

  .topbar-icon-btn {
    width: 32px !important;
    height: 32px !important;
  }
}

/* ==========================================================================
   SIDEBAR & SLIDE DRAWER UNIFIED AESTHETICS (DARK OBSIDIAN THEME)
   ========================================================================== */

.drawer-header-brand {
  background: #060911 !important;
  height: 60px !important;
  min-height: 60px !important;
  padding: 0 16px !important;
  display: flex !important;
  align-items: center !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-sizing: border-box !important;
}

.sidebar-brand-icon {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  display: grid !important;
  place-items: center !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4) !important;
}
.sidebar-brand-icon svg {
  width: 18px !important;
  height: 18px !important;
}

.sidebar-brand-name {
  font-size: 13.5px !important;
  font-weight: 750 !important;
  color: #ffffff !important;
  letter-spacing: -0.01em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 170px !important;
}

.sidebar-brand-rera {
  font-size: 10.5px !important;
  font-weight: 600 !important;
  color: #60a5fa !important;
  letter-spacing: 0.01em !important;
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  transition: background 0.12s ease, color 0.12s ease !important;
}
.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.18) !important;
}

.drawer-section-label {
  font-size: 10px !important;
  font-weight: 800 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.09em !important;
  padding: 10px 6px 4px !important;
  margin: 0 !important;
}

.drawer-nav-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.sidebar-nav-btn,
.drawer-nav-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 8px 10px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 550 !important;
  color: #cbd5e1 !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  text-align: left !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: background 0.12s ease, color 0.12s ease !important;
  box-sizing: border-box !important;
}

.sidebar-nav-btn:hover,
.drawer-nav-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #f8fafc !important;
}

.sidebar-nav-btn.active,
.drawer-nav-item.active {
  background: #0071e3 !important;
  color: #ffffff !important;
  font-weight: 650 !important;
  border-color: #0071e3 !important;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.35) !important;
}

.drawer-nav-icon,
.sidebar-tool-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 18px !important;
  min-width: 18px !important;
  color: inherit !important;
}

.sidebar-tool-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.drawer-tool-btn {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 8px 10px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #e2e8f0 !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  cursor: pointer !important;
  text-align: left !important;
  transition: background 0.12s ease, border-color 0.12s ease !important;
  box-sizing: border-box !important;
}

.drawer-tool-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

.drawer-tool-btn.emerald {
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(52, 211, 153, 0.3) !important;
  color: #34d399 !important;
  font-weight: 700 !important;
}

.drawer-tool-btn.emerald:hover {
  background: rgba(16, 185, 129, 0.22) !important;
  border-color: rgba(52, 211, 153, 0.5) !important;
  color: #6ee7b7 !important;
}

.sidebar-plan-card {
  margin-top: auto !important;
  padding: 10px 12px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

.sidebar-plan-label {
  font-size: 9.5px !important;
  font-weight: 800 !important;
  color: #94a3b8 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

.sidebar-plan-name {
  font-size: 12.5px !important;
  font-weight: 750 !important;
  color: #60a5fa !important;
  margin-top: 1px !important;
}

.sidebar-plan-switch-btn {
  padding: 4px 10px !important;
  border-radius: 6px !important;
  background: rgba(37, 99, 235, 0.2) !important;
  border: 1px solid rgba(59, 130, 246, 0.4) !important;
  color: #93c5fd !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background 0.12s ease !important;
}
.sidebar-plan-switch-btn:hover {
  background: rgba(37, 99, 235, 0.35) !important;
  color: #ffffff !important;
}

.sidebar-account-row {
  padding: 10px 6px 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  margin-top: 6px !important;
}

.sidebar-account-name {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #f8fafc !important;
}

.sidebar-account-status {
  font-size: 10.5px !important;
  color: #94a3b8 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.sidebar-signout-btn {
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  padding: 4px 6px !important;
  border-radius: 6px !important;
  transition: color 0.12s ease !important;
}
.sidebar-signout-btn:hover {
  color: #ef4444 !important;
}

/* --- MOBILE SLIDE DRAWER MODAL --- */
.drawer-backdrop {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.65) !important;
  z-index: 999999 !important;
  display: flex !important;
  animation: drawerFadeIn 0.15s ease-out !important;
}

.mobile-slide-drawer {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 300px !important;
  max-width: 86vw !important;
  height: 100vh !important;
  background: #090d16 !important;
  color: #f8fafc !important;
  z-index: 1000000 !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.5) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  animation: drawerSlideIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

@keyframes drawerFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ==========================================================================
   SPOTLIGHT SEARCH MASTER CENTERED & ZERO-LAG OVERLAY
   ========================================================================== */
.spotlight-backdrop {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(11, 15, 25, 0.65) !important;

  z-index: 999999 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding: 12vh 16px 20px !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  animation: spotlightFadeIn 0.12s ease-out !important;
}

.spotlight-modal {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: 620px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  border-radius: 14px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  margin: 0 auto !important;
  animation: spotlightSlideDown 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.spotlight-input-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px 18px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
}

.spotlight-input {
  flex: 1 !important;
  border: none !important;
  outline: none !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  background: transparent !important;
}

.spotlight-results {
  max-height: 380px !important;
  overflow-y: auto !important;
  padding: 8px !important;
  background: #ffffff !important;
}

.spotlight-section-title {
  font-size: 10.5px !important;
  font-weight: 800 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 8px 10px 4px !important;
  margin: 0 !important;
}

.spotlight-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 9px 12px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  color: #1e293b !important;
  cursor: pointer !important;
  transition: background 0.1s ease !important;
  background: transparent !important;
  box-sizing: border-box !important;
}

.spotlight-item:hover,
.spotlight-item.active {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

.spotlight-shortcut-badge {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  background: #f1f5f9 !important;
  color: #475569 !important;
  padding: 2px 7px !important;
  border-radius: 5px !important;
}

@keyframes spotlightFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ==========================================================================
   PERSISTENT SHELL & HIGH-PERFORMANCE ZERO-LAG CONTAINER
   ========================================================================== */
#page-main-container {
  min-height: calc(100vh - 60px);
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
  box-sizing: border-box;
}

/* Fast composite GPU transitions */
button, a, input, select, textarea, .card, .stat-card, .sidebar-nav-btn, .drawer-nav-item {
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.1s ease, color 0.1s ease, border-color 0.1s ease, opacity 0.1s ease !important;
}

/* Hardware accelerated scroll containers */
.main, .sidebar, .mobile-slide-drawer, .spotlight-results, .modal {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto !important; /* Instant snap on hashchange */
}

/* ==========================================================================
   GATED FEATURE SCREEN VIBRANT ACTION BUTTONS
   ========================================================================== */
#instant-unlock-feature-btn,
.gated-btn-primary {
  background: #0071e3 !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  padding: 14px 26px !important;
  border-radius: 10px !important;
  border: 1px solid #3b82f6 !important;
  box-shadow: 0 4px 18px rgba(0, 113, 227, 0.5) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

#instant-unlock-feature-btn:hover,
.gated-btn-primary:hover {
  background: #0077ed !important;
  transform: translateY(-1px) !important;
}

#view-pricing-plans-btn,
.gated-btn-secondary {
  background: #f59e0b !important;
  color: #000000 !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  padding: 14px 26px !important;
  border-radius: 10px !important;
  border: 2px solid #fbbf24 !important;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.45) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

#view-pricing-plans-btn:hover,
.gated-btn-secondary:hover {
  background: #d97706 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

/* ==========================================================================
   UNIVERSAL RESPONSIVE CONTAINMENT & ALIGNMENT ENGINE (ZERO OVERFLOW)
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box !important;
}

html, body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  min-height: 100vh !important;
  background: #f8fafc !important;
  color: #0f172a !important;
}

#app {
  width: 100% !important;
  max-width: 100vw !important;
  min-height: 100vh !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

/* APP SHELL GRID & COLUMN ISOLATION */
.shell {
  display: grid !important;
  grid-template-columns: 264px minmax(0, 1fr) !important;
  width: 100% !important;
  max-width: 100vw !important;
  min-height: 100vh !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
  background: #f8fafc !important;
}

/* DESKTOP SIDEBAR STICKY STABILITY */
@media (min-width: 1025px) {
  .sidebar {
    display: flex !important;
    flex-direction: column !important;
    position: sticky !important;
    top: 0 !important;
    height: 100vh !important;
    width: 264px !important;
    min-width: 264px !important;
    max-width: 264px !important;
    background: #0b0f19 !important;
    color: #f8fafc !important;
    overflow-y: auto !important;
    z-index: 100 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
}

/* MOBILE/TABLET SHELL TRANSITION */
@media (max-width: 1024px) {
  .shell {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  .sidebar {
    display: none !important;
  }
}

/* MAIN PANE (THE MASTER CONTAINER) */
.main-pane,
.main {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 100vh !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
  background: #f8fafc !important;
}

/* UNIVERSAL TOPBAR (ALWAYS CONTAINED & VISIBLE) */
.topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 64px !important;
  padding: 0 28px !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 80 !important;
  gap: 12px !important;
}

.topbar-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  flex-shrink: 1 !important;
}

.topbar-crumb-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.top-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

@media (max-width: 800px) {
  .topbar {
    padding: 0 14px !important;
    height: 56px !important;
  }
  .topbar-search-pill {
    display: none !important;
  }
  .top-actions .topbar-action-pill span:not(:first-child) {
    display: none !important;
  }
}

/* UNIVERSAL PAGE CONTENT CONTAINER */
.content {
  flex: 1 !important;
  width: 100% !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 24px 28px !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

@media (max-width: 768px) {
  .content {
    padding: 16px 14px !important;
    max-width: 100vw !important;
  }
}

/* HEADERS, HEROES & ACTION BARS */
.page-head,
.page-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  margin-bottom: 22px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.dashboard-hero-box {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  margin-bottom: 24px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 24px 28px !important;
}

@media (max-width: 768px) {
  .dashboard-hero-box {
    padding: 16px 14px !important;
  }
}

/* PANELS & CARDS (NEVER BLOW OUT VIEWPORT) */
.panel,
.card,
.section-panel,
.stat-card {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* STATS GRID AUTO-WRAPPING */
.stats-grid,
.stat-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-bottom: 24px !important;
}

@media (max-width: 600px) {
  .stats-grid,
  .stat-grid {
    grid-template-columns: 1fr !important;
  }
}

/* TABLE SCROLL CONTAINERS */
.table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  box-sizing: border-box !important;
  display: block !important;
  border-radius: 12px !important;
  margin: 0 !important;
}

.table {
  width: 100% !important;
  min-width: 640px !important;
  border-collapse: collapse !important;
}

/* KANBAN BOARDS (DEALS PIPELINE) */
.kanban-board {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 1024px) {
  .kanban-board {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    gap: 14px !important;
    padding-bottom: 12px !important;
  }
  .kanban-col {
    min-width: 270px !important;
    flex-shrink: 0 !important;
    scroll-snap-align: start !important;
  }
}

/* MODALS & DRAWERS CONSTRAINED */
.modal-backdrop,
.spotlight-backdrop {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  z-index: 99999 !important;
}

.modal,
.spotlight-modal,
.bottom-action-sheet {
  max-width: min(640px, 94vw) !important;
  width: 100% !important;
  box-sizing: border-box !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS & TOUCH OPTIMIZATION (iOS Safari + Android Chrome)
   ========================================================================== */

@media (max-width: 768px) {
  /* Prevent iOS Safari auto-zoom on input focus */
  input, select, textarea {
    font-size: 16px !important;
    -webkit-text-size-adjust: 100%;
  }

  /* Safe Area Inset Support for iPhone Notch / Dynamic Island */
  .mobile-bottom-nav {
    padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
    box-sizing: border-box !important;
    z-index: 99999 !important;
  }

  .mobile-slide-drawer {
    padding-top: max(16px, env(safe-area-inset-top)) !important;
    padding-bottom: max(20px, env(safe-area-inset-bottom)) !important;
    z-index: 100000 !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Smooth Mobile Scrolling */
  .main, .cards, .table-wrap, .drawer-body, .spotlight-results {
    -webkit-overflow-scrolling: touch !important;
  }

  /* Responsive Tap Targets */
  button, .button, a, .mobile-bottom-nav-item, .drawer-nav-item, input[type="button"], input[type="submit"] {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  /* Private Gate Responsive Container */
  .private-gate-container {
    padding: 20px 14px !important;
  }
}

/* ==========================================================================
   STREAMLINED, COMPACT & ULTRA-SLEEK PRO CLOSER COCKPIT (NO BULK / NO CLUTTER)
   ========================================================================== */

/* Compact Executive Header */
.dashboard-hero-box {
  padding: 16px 20px !important;
  margin-bottom: 14px !important;
  border-radius: 14px !important;
}
.dashboard-hero-title {
  font-size: 20px !important;
  margin: 0 0 4px 0 !important;
  line-height: 1.25 !important;
}
.dashboard-hero-sub {
  font-size: 12.5px !important;
  margin: 0 0 10px 0 !important;
  line-height: 1.4 !important;
  color: #94a3b8 !important;
}
.dashboard-hero-actions {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}
.dashboard-hero-actions .button {
  padding: 6px 12px !important;
  font-size: 12px !important;
  border-radius: 8px !important;
}

/* Compact, Modern KPI Metrics Bar */
.cards {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 10px !important;
  margin-bottom: 14px !important;
}
.metric {
  padding: 12px 14px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(0, 0, 0, 0.07) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  min-height: auto !important;
}
.metric-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 4px !important;
}
.metric-label {
  font-size: 11px !important;
  font-weight: 750 !important;
  color: #64748b !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
}
.metric-value {
  font-size: 20px !important;
  font-weight: 850 !important;
  color: #0f172a !important;
  margin-top: 2px !important;
  letter-spacing: -0.02em !important;
}
.metric-note {
  font-size: 11px !important;
  color: #94a3b8 !important;
  margin-top: 2px !important;
}

/* Compact Page Header */
.page-head, .page-header {
  padding: 12px 0 14px !important;
  margin-bottom: 12px !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}
.page-title {
  font-size: 19px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  margin: 0 !important;
}
.page-subtitle {
  font-size: 12.5px !important;
  color: #64748b !important;
  margin-top: 2px !important;
}
.page-actions .button {
  padding: 6px 12px !important;
  font-size: 12px !important;
}

/* Compact Filter Bar */
.filters {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-bottom: 12px !important;
  background: #ffffff !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(0, 0, 0, 0.07) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}
.filters .input, .filters .select {
  padding: 7px 11px !important;
  font-size: 13px !important;
  border-radius: 8px !important;
  height: 36px !important;
  box-sizing: border-box !important;
}

/* Streamlined Tables & Cards */
.table {
  width: 100% !important;
  font-size: 13px !important;
}
.table th {
  padding: 8px 12px !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  background: #f8fafc !important;
}
.table td {
  padding: 10px 12px !important;
  font-size: 13px !important;
  vertical-align: middle !important;
  border-bottom: 1px solid #f1f5f9 !important;
}
.table-wrap {
  border-radius: 12px !important;
  border: 1px solid rgba(0, 0, 0, 0.07) !important;
  overflow-x: auto !important;
}

/* AI Spotlight Compact Bar */
.ai-spotlight {
  padding: 12px 16px !important;
  margin-bottom: 14px !important;
  border-radius: 12px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}
.ai-spotlight-title {
  font-size: 13px !important;
  font-weight: 800 !important;
}
.ai-spotlight-sub {
  font-size: 11.5px !important;
  color: #64748b !important;
}
.ai-chip {
  padding: 5px 11px !important;
  font-size: 11.5px !important;
  border-radius: 20px !important;
}

/* Action Cockpit Rows */
.action-row {
  padding: 10px 14px !important;
}
.btn-act {
  padding: 5px 10px !important;
  font-size: 11.5px !important;
}

/* ==========================================================================
   AI MATCHMAKING ENGINE BENTO CARDS & RADAR STYLING
   ========================================================================== */

.match-card-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
}

@media (max-width: 640px) {
  .match-card-item {
    padding: 14px !important;
  }
}

/* ==========================================================================
   SUPERSMOOTH UI & LIVE DEMO TRIAL SHOWCASE (APPLE 60FPS FEEL)
   ========================================================================== */

/* Universal Smooth Easing & Micro-Interactions */
button, .button, .btn, .card, .panel, .metric, .ai-chip, .view-btn, .nav-btn, .tab-btn {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button:active, .button:active, .btn:active, .ai-chip:active, .view-btn:active {
  transform: scale(0.975) !important;
}

/* Clean & Smooth Backdrop for Modals and Drawers (ZERO BLUR) */
.modal-backdrop, .drawer-backdrop {
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  animation: smoothFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal, .drawer {
  animation: smoothFadeIn 0.18s ease-out forwards;
}

@keyframes smoothFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes smoothModalSpring {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* LIVE INTERACTIVE DEMO TRIAL CARD */
.demo-trial-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  border-radius: 18px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.25), 0 0 20px rgba(16, 185, 129, 0.12);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.demo-trial-card::before {
  display: none !important;
}

.trial-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.trial-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseGlow 1.8s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 10px #10b981; }
  50% { transform: scale(1.3); opacity: 0.7; box-shadow: 0 0 16px #34d399; }
}

.demo-tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.demo-tour-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 10px 14px;
  color: #f8fafc;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-align: left;
}

.demo-tour-chip:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(16, 185, 129, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.demo-tour-chip .chip-num {
  background: #10b981;
  color: #ffffff;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* TOPBAR TRIAL STATUS PILL */
.topbar-trial-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(37, 99, 235, 0.1) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #047857;
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.topbar-trial-pill:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: #059669;
}

@media (max-width: 640px) {
  .demo-trial-card {
    padding: 16px 18px !important;
  }
  .demo-tour-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .demo-tour-chip {
    padding: 8px 10px !important;
    font-size: 11.5px !important;
  }
}


/* ==========================================================================
   APPLE MINIMALIST BROKER CRM UI STYLES (MATCHING REFERENCE DESIGN)
   ========================================================================== */

/* Topbar Apple Styling */
.topbar {
  height: 64px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  gap: 16px;
}
.topbar-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 7px 14px;
  width: 320px;
  max-width: 100%;
  color: #64748b;
  font-size: 13px;
  transition: all 0.15s ease;
}
.topbar-search-box:focus-within {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  color: #0f172a;
}
.topbar-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: #0f172a;
  width: 100%;
}
.topbar-date {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Apple 4-KPI Grid */
.apple-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 1024px) {
  .apple-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .apple-kpi-grid { grid-template-columns: 1fr; }
}
.apple-kpi-card {
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.apple-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  border-color: #e2e8f0;
}
.apple-kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.apple-kpi-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: -0.01em;
}
.apple-kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.apple-kpi-icon.blue { background: #eff6ff; color: #2563eb; }
.apple-kpi-icon.purple { background: #f3e8ff; color: #8b5cf6; }
.apple-kpi-icon.green { background: #dcfce7; color: #16a34a; }
.apple-kpi-icon.orange { background: #fef3c7; color: #d97706; }
.apple-kpi-val {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.apple-kpi-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
}
.apple-kpi-trend.up { color: #16a34a; }
.apple-kpi-trend.down { color: #ef4444; }
.apple-kpi-trend.neutral { color: #64748b; }

/* Apple 2-Column Dashboard Layout */
.apple-dash-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}
@media (max-width: 1024px) {
  .apple-dash-grid { grid-template-columns: 1fr; }
}

/* Apple Card Container */
.apple-card {
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  margin-bottom: 20px;
}
.apple-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.apple-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.015em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.apple-card-link {
  font-size: 12.5px;
  font-weight: 600;
  color: #2563eb;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}
.apple-card-link:hover {
  text-decoration: underline;
}

/* Deal Opportunities List */
.deal-opp-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.deal-opp-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 10px;
  transition: all 0.15s ease;
  gap: 12px;
}
.deal-opp-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.deal-opp-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.deal-opp-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 750;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.deal-opp-info {
  min-width: 0;
}
.deal-opp-name {
  font-weight: 700;
  font-size: 13.5px;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.deal-opp-prop {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.deal-opp-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.deal-opp-match {
  font-size: 12px;
  font-weight: 700;
  color: #16a34a;
  background: #dcfce7;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.deal-opp-budget {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}
.deal-opp-actions {
  display: flex;
  gap: 6px;
}
.btn-apple-call {
  padding: 5px 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}
.btn-apple-call:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}
.btn-apple-chat {
  padding: 5px 12px;
  background: #2563eb;
  border: 1px solid #2563eb;
  color: #ffffff;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}
.btn-apple-chat:hover {
  background: #1d4ed8;
}

/* Recent Activity Timeline */
.recent-activity-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
}
.activity-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}
.activity-dot.blue { background: #eff6ff; color: #2563eb; }
.activity-dot.green { background: #dcfce7; color: #16a34a; }
.activity-dot.orange { background: #fef3c7; color: #d97706; }
.activity-dot.purple { background: #f3e8ff; color: #8b5cf6; }
.activity-content {
  flex: 1;
  min-width: 0;
}
.activity-title {
  color: #0f172a;
  font-weight: 600;
  line-height: 1.4;
}
.activity-time {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 2px;
}

/* Upcoming Tasks Checklist */
.task-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 9px;
  transition: all 0.15s ease;
  gap: 10px;
}
.task-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
}
.task-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.task-checkbox {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  border: 1.5px solid #cbd5e1;
  cursor: pointer;
  appearance: none;
  background: #ffffff;
  display: grid;
  place-content: center;
  transition: all 0.12s ease;
  flex-shrink: 0;
}
.task-checkbox:checked {
  background: #2563eb;
  border-color: #2563eb;
}
.task-checkbox:checked::before {
  content: "✔";
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
}
.task-info {
  min-width: 0;
}
.task-text {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  transition: all 0.15s ease;
}
.task-item.completed .task-text {
  text-decoration: line-through;
  color: #94a3b8;
}
.task-time {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 1px;
}
.task-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  white-space: nowrap;
}
.task-tag.call { background: #eff6ff; color: #2563eb; }
.task-tag.legal { background: #fef3c7; color: #b45309; }
.task-tag.property { background: #dcfce7; color: #15803d; }
.task-tag.finance { background: #f3e8ff; color: #7e22ce; }

/* Quick Actions 2x2 Grid */
.quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}
.quick-action-btn:hover {
  background: #ffffff;
  border-color: #2563eb;
  color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.08);
}
.quick-action-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

/* Apple Filter Tabs & Controls */
.apple-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.apple-tabs {
  display: inline-flex;
  background: #edf2f7;
  border-radius: 9px;
  padding: 3px;
  gap: 2px;
}
.apple-tab-btn {
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.apple-tab-btn:hover {
  color: #0f172a;
}
.apple-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Apple Table Layout */
.apple-table-container {
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.apple-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.apple-table th {
  background: #f8fafc;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 18px;
  border-bottom: 1px solid #edf2f7;
  white-space: nowrap;
}
.apple-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #edf2f7;
  font-size: 13.5px;
  color: #334155;
  vertical-align: middle;
}
.apple-table tr:last-child td {
  border-bottom: none;
}
.apple-table tr:hover td {
  background: #f8fafc;
}

/* Apple Status Badges */
.apple-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
}
.apple-badge.hot { background: #fee2e2; color: #b91c1c; }
.apple-badge.warm { background: #fef3c7; color: #b45309; }
.apple-badge.cold { background: #f1f5f9; color: #475569; }
.apple-badge.active { background: #dcfce7; color: #15803d; }
.apple-badge.inactive { background: #f1f5f9; color: #94a3b8; }
.apple-badge.token { background: #ffedd5; color: #c2410c; }
.apple-badge.legal { background: #e0e7ff; color: #4338ca; }
.apple-badge.reg { background: #f3e8ff; color: #7e22ce; }

/* Apple Calendar Grid */
.apple-cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.apple-cal-month {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}
.apple-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #edf2f7;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  overflow: hidden;
}
.apple-cal-dayhead {
  background: #f8fafc;
  padding: 10px 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}
.apple-cal-cell {
  background: #ffffff;
  min-height: 100px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.15s ease;
}
.apple-cal-cell:hover {
  background: #f8fafc;
}
.apple-cal-cell.today {
  background: #eff6ff;
}
.apple-cal-cell.today .cal-date-num {
  background: #2563eb;
  color: #ffffff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: grid;
  place-content: center;
}
.cal-date-num {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 2px;
}
.cal-event-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 5px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.cal-event-pill:hover {
  background: #dbeafe;
}

/* Apple Messages Split Pane */
.apple-messages-pane {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: calc(100vh - 140px);
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 14px;
  overflow: hidden;
}
@media (max-width: 900px) {
  .apple-messages-pane { grid-template-columns: 1fr; }
}
.apple-msg-sidebar {
  border-right: 1px solid #edf2f7;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}
.apple-msg-search {
  padding: 14px;
  border-bottom: 1px solid #edf2f7;
}
.apple-msg-list {
  flex: 1;
  overflow-y: auto;
}
.apple-msg-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid #f8fafc;
  cursor: pointer;
  transition: all 0.15s ease;
}
.apple-msg-item:hover {
  background: #f8fafc;
}
.apple-msg-item.active {
  background: #eff6ff;
}
.apple-msg-chat {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  height: 100%;
}
.apple-chat-header {
  padding: 14px 20px;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.apple-chat-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
}
.chat-bubble {
  max-width: 68%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.45;
}
.chat-bubble.inbound {
  align-self: flex-start;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
}
.chat-bubble.outbound {
  align-self: flex-end;
  background: #2563eb;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}
.apple-chat-footer {
  padding: 14px 18px;
  border-top: 1px solid #edf2f7;
  display: flex;
  gap: 10px;
  align-items: center;
  background: #ffffff;
}

/* Apple Reports Charts */
.apple-chart-card {
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.apple-chart-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
}


/* ==========================================================================
   ABSOLUTE CRISP MODAL & DRAWER SYSTEM (ZERO BLUR, 100% INTERACTIVE)
   ========================================================================== */
.modal-backdrop,
.drawer-backdrop,
.spotlight-backdrop {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  z-index: 999990 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: auto !important;
}

.drawer,
aside.drawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 100vh !important;
  max-height: 100vh !important;
  width: min(640px, 100vw) !important;
  max-width: 100vw !important;
  background: #ffffff !important;
  color: #0f172a !important;
  z-index: 1000000 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  box-shadow: -16px 0 50px rgba(0, 0, 0, 0.3) !important;
  border-left: 1px solid #e2e8f0 !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  filter: none !important;
  visibility: visible !important;
}

.modal,
.spotlight-modal,
.plan-sim-card,
.auth-card-modal {
  position: relative !important;
  background: #ffffff !important;
  color: #0f172a !important;
  border-radius: 18px !important;
  z-index: 1000000 !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  filter: none !important;
  visibility: visible !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3) !important;
}

/* Form Inputs, Selects, Textareas & Buttons 100% interactive */
.drawer input,
.drawer select,
.drawer textarea,
.drawer button,
.modal input,
.modal select,
.modal textarea,
.modal button {
  pointer-events: auto !important;
  opacity: 1 !important;
  filter: none !important;
  -webkit-user-select: auto !important;
  user-select: auto !important;
}

.drawer input,
.drawer select,
.drawer textarea,
.modal input,
.modal select,
.modal textarea {
  cursor: text !important;
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  font-size: 13.5px !important;
  box-sizing: border-box !important;
}

.drawer input:focus,
.drawer select:focus,
.drawer textarea:focus,
.modal input:focus,
.modal select:focus,
.modal textarea:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
  outline: none !important;
}


/* ==========================================================================
   OTP LOGIN & SUPER ADMIN OWNER VIP STYLING
   ========================================================================== */

/* Modern Apple-Minimal OTP Authentication */
.otp-auth-card {
  width: min(440px, 94vw);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  text-align: center;
}

.otp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 20px;
}

.otp-brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: 10px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.phone-input-wrap {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 4px 12px;
  transition: all 0.18s ease;
  margin: 16px 0 20px;
}

.phone-input-wrap:focus-within {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.phone-prefix {
  font-weight: 750;
  font-size: 14px;
  color: #0f172a;
  padding-right: 10px;
  border-right: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.phone-input {
  border: none !important;
  background: transparent !important;
  font-size: 16px !important;
  font-weight: 650 !important;
  color: #0f172a !important;
  padding: 10px 12px !important;
  outline: none !important;
  box-shadow: none !important;
  flex: 1;
  letter-spacing: 0.05em;
}

/* 6-Digit OTP Boxes */
.otp-boxes-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 20px 0 16px;
}

.otp-digit-input {
  width: 100%;
  height: 52px;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  outline: none;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.otp-digit-input:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
  transform: scale(1.04);
}

.otp-digit-input.filled {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1e40af;
}

/* Simulated SMS Banner */
.simulated-sms-banner {
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-size: 12.5px;
  color: #1e3a8a;
}

.role-demo-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 12.5px;
  color: #1e293b;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.role-demo-pill:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  transform: translateY(-1px);
}

/* Super Admin / Owner Cockpit VIP Styling */
.owner-hero-panel {
  background: linear-gradient(135deg, #0b1120 0%, #111827 50%, #1e1b4b 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 24px 28px;
  color: #ffffff;
  margin-bottom: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.owner-hero-panel::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.owner-badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fef3c7;
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
}

.owner-quick-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 650;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.owner-quick-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.owner-quick-btn.primary {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.owner-quick-btn.primary:hover {
  background: linear-gradient(135deg, #059669, #047857);
}

/* Package Direct Assignment Selector */
.pkg-selector-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.pkg-selector-pill.starter {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

.pkg-selector-pill.pro {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.pkg-selector-pill.agency {
  background: #fdf4ff;
  color: #9333ea;
  border-color: #f0abfc;
}

.pkg-selector-pill:hover {
  transform: scale(1.03);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}


/* ==========================================================================
   APPLE HUMAN INTERFACE TYPOGRAPHY & STICKY TOPBAR WITH HAMBURGER MENU (v166)
   ========================================================================== */

:root {
  --apple-font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html, body {
  font-family: var(--apple-font-stack) !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  color: #0f172a !important;
  letter-spacing: -0.011em !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
  background: var(--canvas, #f6f8fc) !important;
}

/* --- UNIVERSAL STICKY TOPBAR --- */
.topbar {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 64px !important;
  padding: 0 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: saturate(180%) blur(20px) !important;
  -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  z-index: 1000 !important;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03) !important;
  box-sizing: border-box !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.topbar-left {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
}

/* TOP-LEFT HAMBURGER MENU BUTTON */
.topbar-hamburger-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #0f172a !important;
  cursor: pointer !important;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  flex-shrink: 0 !important;
}
.topbar-hamburger-btn:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #2563eb !important;
  transform: scale(1.04) !important;
}
.topbar-hamburger-btn:active {
  transform: scale(0.96) !important;
  background: #f1f5f9 !important;
}

.topbar-brand-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  user-select: none !important;
}

.topbar-search-box {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 7px 12px !important;
  width: 260px !important;
  max-width: 100% !important;
  color: #64748b !important;
  font-size: 13.5px !important;
  transition: all 0.15s ease !important;
}
.topbar-search-box:focus-within, .topbar-search-box:hover {
  background: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
  color: #0f172a !important;
}
.topbar-search-box input {
  border: none !important;
  background: transparent !important;
  outline: none !important;
  font-size: 13.5px !important;
  font-family: inherit !important;
  color: #0f172a !important;
  width: 100% !important;
}

/* TOPBAR ACTION PILLS */
.topbar-action-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 6px 12px !important;
  border-radius: 20px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #1e293b !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}
.topbar-action-pill:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}
.topbar-action-pill.emerald {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border-color: #a7f3d0 !important;
}
.topbar-action-pill.emerald:hover {
  background: #d1fae5 !important;
  border-color: #6ee7b7 !important;
}

/* --- APPLE READABLE TYPOGRAPHY UPGRADES --- */
.page-title {
  font-family: var(--apple-font-stack) !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  color: #0f172a !important;
  line-height: 1.25 !important;
}

.page-sub, .subtle {
  font-family: var(--apple-font-stack) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #475569 !important;
  line-height: 1.5 !important;
}

/* Card & Section Headings */
h1, h2, h3, h4 {
  font-family: var(--apple-font-stack) !important;
  color: #0f172a !important;
  letter-spacing: -0.018em !important;
}

h2 { font-size: 20px !important; font-weight: 800 !important; }
h3 { font-size: 16.5px !important; font-weight: 750 !important; }

/* Readable Buttons */
.button, .btn {
  font-family: var(--apple-font-stack) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  padding: 8px 16px !important;
  border-radius: 10px !important;
  letter-spacing: -0.01em !important;
}

/* Readable Form Controls */
.input, .select, input, select, textarea {
  font-family: var(--apple-font-stack) !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  line-height: 1.5 !important;
}

label, .field-label {
  font-family: var(--apple-font-stack) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  margin-bottom: 5px !important;
}

/* Table Legibility */
table th {
  font-family: var(--apple-font-stack) !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #64748b !important;
  padding: 12px 14px !important;
}

table td {
  font-family: var(--apple-font-stack) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #1e293b !important;
  padding: 12px 14px !important;
  line-height: 1.5 !important;
}

/* Badges & Tags */
.badge, .tag, .apple-badge, .status {
  font-family: var(--apple-font-stack) !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  letter-spacing: 0.02em !important;
}

/* --- APPLE SLIDE DRAWER ELEVATION & STYLING --- */
.drawer-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, 0.5) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  z-index: 10000 !important;
  transition: opacity 0.2s ease !important;
}

.mobile-slide-drawer {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  width: min(340px, 86vw) !important;
  background: #ffffff !important;
  box-shadow: 16px 0 50px rgba(0, 0, 0, 0.3) !important;
  z-index: 10005 !important;
  display: flex !important;
  flex-direction: column !important;
  animation: slideInAppleLeft 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

@keyframes slideInAppleLeft {
  from { transform: translateX(-100%); opacity: 0.8; }
  to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 768px) {
  .topbar-search-box {
    display: none !important;
  }
  .topbar-brand-wrap .topbar-title-block span:last-child {
    display: none !important;
  }
  .topbar {
    padding: 0 12px !important;
  }
}



/* ==========================================================================
   CLEAN FULL-WIDTH APPLE WORKSPACE WITHOUT PERMANENT SIDEBAR (v167)
   ========================================================================== */

.shell {
  min-height: 100vh !important;
  display: block !important;
  width: 100% !important;
  max-width: 100vw !important;
  background: var(--canvas, #f6f8fc) !important;
  padding-bottom: 0 !important;
}

.sidebar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.main {
  width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.content {
  width: 100% !important;
  max-width: 1560px !important;
  margin: 0 auto !important;
  padding: 24px 32px !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  .content {
    padding: 16px 14px !important;
  }
}



/* ==========================================================================
   SIDE MENU DRAWER HIGH-CONTRAST BLACK TYPOGRAPHY (v169)
   ========================================================================== */

.mobile-slide-drawer {
  color: #000000 !important;
}

.mobile-slide-drawer .drawer-body {
  color: #000000 !important;
}

.mobile-slide-drawer .drawer-section-label {
  color: #000000 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
}

.mobile-slide-drawer .drawer-nav-item {
  color: #000000 !important;
  font-size: 14.5px !important;
  font-weight: 750 !important;
}

.mobile-slide-drawer .drawer-nav-item span {
  color: #000000 !important;
  font-weight: 750 !important;
}

.mobile-slide-drawer .drawer-nav-item:hover {
  background: #f1f5f9 !important;
  color: #000000 !important;
}

.mobile-slide-drawer .drawer-nav-item.active {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

.mobile-slide-drawer .drawer-nav-item.active span {
  color: #1d4ed8 !important;
}

.mobile-slide-drawer .drawer-nav-icon {
  color: #000000 !important;
}

.mobile-slide-drawer .drawer-nav-item.active .drawer-nav-icon {
  color: #1d4ed8 !important;
}

.mobile-slide-drawer .drawer-tool-btn {
  color: #000000 !important;
  font-weight: 800 !important;
}

.mobile-slide-drawer .drawer-tool-btn span,
.mobile-slide-drawer .drawer-tool-btn strong {
  color: #000000 !important;
  font-weight: 800 !important;
}

/* ==========================================================================
   APPLE PROMOTION 60/120 FPS MOBILE HARDWARE ACCELERATION ENGINE (v174)
   Eliminates all mobile lag while maintaining 100% exact Apple UI aesthetics
   ========================================================================== */

/* 1. Global Touch & Scroll Fast-Path (0ms Latency) */
html, body {
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
  -webkit-tap-highlight-color: transparent !important;
  touch-action: manipulation !important;
  overscroll-behavior-y: none !important;
}

button,
.button,
a,
input,
select,
textarea,
.apple-tab-btn,
.view-btn,
.filter-tab,
.drawer-tool-btn,
.mobile-bottom-nav-item,
.quick-action-btn,
.btn-apple-call,
.btn-apple-chat,
.btn-act,
.link-button,
.role-demo-pill,
.plan-indicator-badge,
.topbar-icon-btn,
.topbar-hamburger-btn,
.account-avatar {
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
  cursor: pointer;
}

/* 2. Mobile Responsive Performance Overrides (Screen Width <= 1024px) */
@media (max-width: 1024px) {
  /* Prevent CPU Reflows / Layout Thrashing on Mobile Touch & Scroll */
  *, *::before, *::after {
    transition-property: transform, opacity, background-color, border-color, color !important;
    transition-duration: 0.15s !important;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  /* Sticky Topbar: Crisp Opaque Frost (Eliminates costly blur recalculations per scroll frame) */
  .topbar {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
    transform: translateZ(0) !important;
    will-change: auto !important;
  }

  /* Fixed Bottom Nav Bar: High-Performance GPU Layer */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 60px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04) !important;
    z-index: 1000 !important;
    padding-bottom: max(4px, env(safe-area-inset-bottom, 0px)) !important;
    transform: translateZ(0) !important;
  }

  /* Padding at bottom of shell to ensure full content visibility above bottom dock */
  .shell {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Performant Backdrops */
  .drawer-backdrop,
  .modal-backdrop,
  .spotlight-backdrop {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(15, 23, 42, 0.6) !important;
  }

  /* Crisp, Single-Layer Apple Card Shadows (Prevents GPU Fill-Rate Bottlenecks) */
  .apple-card,
  .apple-kpi-card,
  .metric,
  .vault-card,
  .property-card,
  .modal,
  .panel,
  .card,
  .commission-card,
  .otp-auth-card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #e2e8f0 !important;
    transform: translateZ(0) !important;
  }

  /* DOM Virtualization: Render offscreen cards near viewport for 60 FPS scrolling */
  .vault-card,
  .property-card,
  .deal-opp-item,
  .task-item,
  .activity-item,
  .commission-card,
  .match-card,
  .timeline-item {
    content-visibility: auto !important;
    contain-intrinsic-size: auto 90px !important;
  }

  /* Native Momentum Scrolling for All Containers */
  .main,
  .content,
  .apple-table-container,
  .table-wrap,
  .drawer-body,
  .modal,
  .vault-grid,
  .properties-grid,
  .apple-dash-grid,
  .deal-opp-list,
  .task-checklist,
  .recent-activity-list,
  .mobile-slide-drawer {
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    transform: translateZ(0);
  }

  /* Floating Action Button (FAB) */
  .mobile-fab-container {
    transform: translateZ(0) !important;
    z-index: 1050 !important;
  }
}

/* ==========================================================================
   MASTER MOBILE RESPONSIVE ENGINE (v175)
   - Zero horizontal overflow (100% viewport fit on all devices)
   - Guaranteed Topbar Hamburger Menu (☰) visibility & 1-tap responsiveness
   - Adaptive 1/2-column KPI, dashboard, property, and lead grids
   - Smooth horizontal touch scroll for all wide tables & Kanban boards
   - Full Apple UI aesthetics with high-contrast text and crisp borders
   ========================================================================== */

/* Universal Box-Sizing & Viewport Containment */
html,
body {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  -webkit-text-size-adjust: 100% !important;
  box-sizing: border-box !important;
}

*, *::before, *::after {
  box-sizing: border-box !important;
}

#app {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Topbar Hamburger Menu Default Base Rule */
.topbar-hamburger-btn,
#topbar-hamburger-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  border-radius: 8px !important;
  border: 1.5px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #0f172a !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
  touch-action: manipulation !important;
}

.topbar-hamburger-btn svg,
#topbar-hamburger-btn svg {
  width: 20px !important;
  height: 20px !important;
  stroke: #0f172a !important;
  stroke-width: 2.2 !important;
  display: block !important;
  pointer-events: none !important;
}

/* Mobile Breakpoint (<768px) */
@media (max-width: 768px) {
  /* 1. Shell & Main Container */
  .shell {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    min-height: 100vh !important;
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 12px)) !important;
    background: #f8fafc !important;
  }

  .sidebar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .main {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    flex: 1 1 auto !important;
  }

  .content {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    padding: 12px 10px 30px 10px !important;
    overflow-x: hidden !important;
  }

  /* 2. Topbar & Guaranteed Mobile Hamburger Visibility */
  .topbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 10px !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    transform: translateZ(0) !important;
  }

  .topbar-left {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  /* ☰ Top-Left Hamburger Menu Button on Mobile */
  #topbar-hamburger-btn,
  .topbar-hamburger-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    border-radius: 8px !important;
    border: 1.5px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 1001 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
    touch-action: manipulation !important;
  }

  .topbar-brand-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
    cursor: pointer !important;
  }

  .topbar-brand-wrap .mark {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border-radius: 7px !important;
    flex-shrink: 0 !important;
    background: #2563eb !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .topbar-title-block {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    overflow: hidden !important;
    justify-content: center !important;
  }

  .topbar-title-block span:first-child {
    font-size: 13.5px !important;
    font-weight: 850 !important;
    color: #0f172a !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.2 !important;
  }

  .topbar-title-block span:last-child {
    font-size: 9.5px !important;
    font-weight: 750 !important;
    color: #2563eb !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
  }

  /* Hide Desktop-Only Topbar Elements on Mobile */
  .topbar-search-box {
    display: none !important;
  }

  .top-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    justify-content: flex-end !important;
  }

  .top-actions .topbar-action-pill,
  .top-actions #topbar-magic-parser-btn,
  .top-actions #topbar-cost-calc-btn,
  .top-actions #topbar-plan-pill {
    display: none !important;
  }

  .top-actions .owner-badge-gold {
    display: inline-flex !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
  }

  .topbar-icon-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    flex-shrink: 0 !important;
  }

  .account-avatar {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    border-radius: 8px !important;
    background: #2563eb !important;
    color: #ffffff !important;
    flex-shrink: 0 !important;
  }

  /* 3. Slide Drawer Navigation Menu */
  .drawer-backdrop {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.7) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 99999 !important;
    display: flex !important;
  }

  .mobile-slide-drawer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: min(320px, 85vw) !important;
    max-width: 85vw !important;
    height: 100vh !important;
    background: #ffffff !important;
    color: #000000 !important;
    z-index: 100000 !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.4) !important;
    animation: drawerSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-right: 1px solid #e2e8f0 !important;
    box-sizing: border-box !important;
  }

  /* 4. KPI & Dashboard Grids */
  .apple-kpi-grid,
  .grid-metrics,
  .kpi-grid,
  .kpi-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 14px !important;
  }

  .apple-kpi-card {
    padding: 10px 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 12px !important;
  }

  .apple-kpi-val {
    font-size: 18px !important;
    font-weight: 800 !important;
  }

  .apple-kpi-label {
    font-size: 11px !important;
    font-weight: 700 !important;
  }

  .apple-dash-grid,
  .dashboard-grid,
  .dash-2col,
  .grid-2col,
  .two-col {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .quick-actions-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .quick-action-btn {
    padding: 10px 8px !important;
    font-size: 12px !important;
    border-radius: 10px !important;
  }

  /* 5. Properties, Leads & Vault Cards Grids */
  .properties-grid,
  .leads-grid,
  .vault-grid,
  .cards-grid,
  .cards {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .property-card,
  .lead-card,
  .vault-card,
  .apple-card,
  .card,
  .panel,
  .commission-card,
  .agenda-card,
  .notif-card,
  .match-card,
  .otp-auth-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 12px !important;
  }

  /* 6. Filter Bars & Search Inputs */
  .apple-filter-bar,
  .filter-bar,
  .search-filter-group,
  .filters {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
  }

  .filter-bar input,
  .filter-bar select,
  .apple-filter-bar input,
  .apple-filter-bar select,
  .search-box input {
    width: 100% !important;
    min-width: 0 !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
    height: 40px !important;
    border-radius: 8px !important;
  }

  .filter-tabs,
  .apple-tabs,
  .tab-group {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    gap: 6px !important;
    padding-bottom: 4px !important;
    flex-wrap: nowrap !important;
  }

  .filter-tab,
  .apple-tab-btn,
  .tab {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-size: 12.5px !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
  }

  /* 7. Data Tables (Smooth Internal Touch Scrolling, Never Expands Page) */
  .apple-table-container,
  .table-wrap,
  .table-container,
  .csv-preview-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    margin: 0 0 14px 0 !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
  }

  .apple-table,
  .table,
  table {
    min-width: 580px !important;
    width: 100% !important;
    border-collapse: collapse !important;
  }

  .apple-table th,
  .apple-table td,
  .table th,
  .table td {
    padding: 9px 8px !important;
    font-size: 12.5px !important;
    white-space: nowrap !important;
  }

  /* 8. Deals Kanban Pipeline */
  .deals-kanban,
  .kanban-board,
  .deals-board,
  .pipeline-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    gap: 10px !important;
    padding-bottom: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .kanban-column,
  .stage-column {
    flex: 0 0 80vw !important;
    max-width: 300px !important;
    min-width: 260px !important;
    scroll-snap-align: start !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
  }

  /* 9. Page Headers & Action Buttons */
  .page-head,
  .page-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    margin-bottom: 12px !important;
  }

  .page-head .header-actions,
  .page-head .actions-row,
  .page-head .page-actions,
  .actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .page-head .header-actions > *,
  .page-head .actions-row > *,
  .page-head .page-actions > *,
  .actions > * {
    flex: 1 1 auto !important;
    min-width: 110px !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 13px !important;
    padding: 8px 12px !important;
  }

  /* 10. Modals & Action Sheets */
  .modal {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    margin: 10px auto !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 14px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
  }

  .bottom-action-sheet {
    width: 100% !important;
    max-width: 100vw !important;
    border-radius: 18px 18px 0 0 !important;
    padding: 16px 14px calc(24px + env(safe-area-inset-bottom, 0px)) 14px !important;
    box-sizing: border-box !important;
  }

  /* 11. Fixed Mobile Bottom Navigation */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 58px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05) !important;
    z-index: 1000 !important;
    padding-bottom: max(4px, env(safe-area-inset-bottom, 0px)) !important;
    justify-content: space-around !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  .mobile-bottom-nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
    height: 100% !important;
    text-decoration: none !important;
    color: #64748b !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    gap: 2px !important;
  }

  .mobile-bottom-nav-item.active {
    color: #2563eb !important;
    font-weight: 750 !important;
  }

  .mobile-fab-container {
    position: fixed !important;
    bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
    right: 14px !important;
    z-index: 1050 !important;
  }

  /* 12. Inputs & Forms (Anti-Zoom on Mobile) */
  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  .form-grid,
  .form-row,
  .modal-form-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
  }
}

/* Extra Small Screens (<380px) */
@media (max-width: 380px) {
  .topbar {
    padding: 0 6px !important;
  }

  .topbar-title-block span:first-child {
    font-size: 12px !important;
  }

  .apple-kpi-grid {
    grid-template-columns: 1fr !important;
  }

  .quick-actions-grid {
    grid-template-columns: 1fr !important;
  }
}



