/* Sparkhes CRM — Dedicated Mobile PWA Stylesheet (Matching Sparkhes Desktop Aesthetic) */
:root {
  --m-bg-base: #000000;
  --m-bg-card: #0a0a0a;
  --m-bg-card-hover: #141414;
  --m-bg-subtle: #121212;
  --m-border: rgba(255, 255, 255, 0.08);
  --m-border-subtle: rgba(255, 255, 255, 0.05);
  --m-border-hover: rgba(255, 255, 255, 0.18);
  --m-text: #ffffff;
  --m-text-muted: #888888;
  --m-text-dim: #555555;
  
  --m-primary: #3b82f6;
  --m-primary-hover: #2563eb;
  --m-primary-subtle: rgba(59, 130, 246, 0.12);
  
  --m-success: #00e676;
  --m-success-subtle: rgba(0, 230, 118, 0.12);
  --m-warning: #ffd700;
  --m-warning-subtle: rgba(255, 215, 0, 0.12);
  --m-danger: #ff5252;
  --m-danger-subtle: rgba(255, 82, 82, 0.12);
  --m-purple: #c084fc;
  --m-purple-subtle: rgba(192, 132, 252, 0.12);

  --m-font: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --m-safe-top: env(safe-area-inset-top, 0px);
  --m-safe-bottom: env(safe-area-inset-bottom, 0px);
  --m-bottom-nav-height: 64px;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--m-bg-base);
  color: var(--m-text);
  font-family: var(--m-font);
  font-size: 15px;
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* App Wrapper */
.m-app-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  background-color: var(--m-bg-base);
}

/* Top Bar */
.m-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--m-safe-top) + 12px) 16px 12px 16px;
  background-color: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--m-border-subtle);
  position: sticky;
  top: 0;
  z-index: 40;
}

.m-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.m-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #999999 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #050505;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.m-brand-icon svg {
  width: 18px;
  height: 18px;
}

.m-brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--m-text);
}

.m-topbar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.m-icon-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--m-text-muted);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.m-icon-btn:active {
  background-color: var(--m-bg-card);
  color: var(--m-text);
}

.m-icon-btn svg {
  width: 20px;
  height: 20px;
}

/* Expandable Search Drawer */
.m-search-drawer {
  padding: 8px 16px 10px 16px;
  background-color: var(--m-bg-base);
  border-bottom: 1px solid var(--m-border-subtle);
}

.m-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--m-bg-card);
  border: 1px solid var(--m-border);
  border-radius: 10px;
  padding: 0 12px;
  height: 44px;
}

.m-search-box svg {
  width: 18px;
  height: 18px;
  color: var(--m-text-dim);
  flex-shrink: 0;
}

.m-search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--m-text);
  font-family: inherit;
  font-size: 0.95rem;
}

.m-search-box input::placeholder {
  color: var(--m-text-dim);
}

.m-search-clear {
  background: transparent;
  border: none;
  color: var(--m-text-dim);
  font-size: 1.4rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Filter Strip */
.m-filter-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background-color: var(--m-bg-base);
  border-bottom: 1px solid var(--m-border-subtle);
  flex-shrink: 0;
}

.m-filter-strip::-webkit-scrollbar {
  display: none;
}

.m-pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  background-color: var(--m-bg-subtle);
  color: var(--m-text-muted);
  border: 1px solid var(--m-border);
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.m-pill.active {
  background-color: #ffffff;
  color: #000000;
  border-color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

/* Scroll Content */
.m-scroll-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 16px calc(var(--m-bottom-nav-height) + var(--m-safe-bottom) + 20px) 16px;
  -webkit-overflow-scrolling: touch;
}

/* Dashboard KPI Grid */
.m-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.m-kpi-card {
  background-color: var(--m-bg-card);
  border: 1px solid var(--m-border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.m-kpi-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--m-text);
}

.m-kpi-sub {
  font-size: 0.75rem;
  color: var(--m-success);
}

/* Section Header Bar */
.m-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.m-section-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--m-text-muted);
}

.m-btn-add {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background-color: var(--m-bg-subtle);
  border: 1px solid var(--m-border);
  border-radius: 8px;
  color: var(--m-text);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

/* Single Column Cards matching Sparkhes desktop glass card */
.m-cards-container, .m-tasks-container, .m-deals-container, .m-activity-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.m-card {
  background-color: var(--m-bg-card);
  border: 1px solid var(--m-border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.12s ease, border-color 0.12s ease, background-color 0.12s ease;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.m-card:active {
  transform: scale(0.99);
  border-color: var(--m-border-hover);
  background-color: var(--m-bg-card-hover);
}

.m-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.m-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--m-text);
  line-height: 1.25;
}

.m-card-subtitle {
  font-size: 0.85rem;
  color: var(--m-text-muted);
  margin-top: 2px;
}

.m-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Exact Status Badges matching Desktop style.css */
.m-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}

.m-badge.status-new { background: rgba(255, 255, 255, 0.06); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.15); }
.m-badge.status-ready, .m-badge.status-dm { background: rgba(14, 165, 233, 0.14); color: #38bdf8; border: 1px solid rgba(14, 165, 233, 0.3); }
.m-badge.status-contacted { background: rgba(99, 102, 241, 0.14); color: #a5b4fc; border: 1px solid rgba(99, 102, 241, 0.3); }
.m-badge.status-viewed { background: rgba(245, 158, 11, 0.14); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.m-badge.status-replied { background: rgba(34, 197, 94, 0.14); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.m-badge.status-demo { background: rgba(168, 85, 247, 0.14); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.m-badge.status-meeting { background: rgba(116, 185, 255, 0.14); color: #74b9ff; border: 1px solid rgba(116, 185, 255, 0.3); }
.m-badge.status-followup { background: rgba(249, 115, 22, 0.14); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.3); }
.m-badge.status-won { background: rgba(0, 230, 118, 0.12); color: #00e676; border: 1px solid rgba(0, 230, 118, 0.28); }
.m-badge.status-lost { background: rgba(255, 82, 82, 0.12); color: #ff5252; border: 1px solid rgba(255, 82, 82, 0.28); }
.m-badge.status-draft { background: rgba(148, 163, 184, 0.14); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.25); }
.m-badge.status-sent { background: rgba(59, 130, 246, 0.14); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.3); }
.m-badge.status-default { background: var(--m-bg-subtle); color: var(--m-text-muted); border: 1px solid var(--m-border); }

.m-badge-value {
  background-color: rgba(0, 230, 118, 0.12);
  color: #00e676;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0, 230, 118, 0.28);
}

.m-card-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid var(--m-border-subtle);
  font-size: 0.82rem;
  color: var(--m-text-dim);
}

.m-card-meta-item strong {
  color: var(--m-text-muted);
  font-weight: 500;
}

/* Quick Action Bar on Cards */
.m-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
}

.m-btn-card-action {
  flex: 1;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: var(--m-bg-subtle);
  border: 1px solid var(--m-border);
  border-radius: 8px;
  color: var(--m-text);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.m-btn-card-action:active {
  background-color: var(--m-bg-card-hover);
  border-color: var(--m-border-hover);
}

.m-btn-card-action svg {
  width: 15px;
  height: 15px;
  color: var(--m-text-muted);
}

.m-btn-card-action.primary {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Tasks Checklist */
.m-tasks-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.m-tasks-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--m-text-muted);
  padding: 6px 2px 2px 2px;
}

.m-task-row {
  background-color: var(--m-bg-card);
  border: 1px solid var(--m-border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 52px;
}

.m-task-checkbox {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid var(--m-border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.15s ease;
}

.m-task-checkbox.completed {
  background-color: var(--m-success);
  border-color: var(--m-success);
  color: #000000;
}

.m-task-checkbox svg {
  width: 14px;
  height: 14px;
  display: none;
}

.m-task-checkbox.completed svg {
  display: block;
}

.m-task-content {
  flex: 1;
}

.m-task-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--m-text);
  line-height: 1.35;
}

.m-task-title.completed {
  text-decoration: line-through;
  color: var(--m-text-dim);
}

.m-task-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--m-text-dim);
}

.m-task-due {
  color: var(--m-warning);
}

.m-task-due.overdue {
  color: var(--m-danger);
  font-weight: 600;
}

/* Activity Item */
.m-activity-item {
  background-color: var(--m-bg-card);
  border: 1px solid var(--m-border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.m-activity-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--m-text);
}

.m-activity-time {
  font-size: 0.75rem;
  color: var(--m-text-muted);
}

/* Fixed Bottom Nav */
.m-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--m-bottom-nav-height) + var(--m-safe-bottom));
  padding-bottom: var(--m-safe-bottom);
  background-color: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--m-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 50;
}

.m-nav-item {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: var(--m-text-muted);
  cursor: pointer;
  transition: color 0.15s ease;
  min-height: 48px;
}

.m-nav-item svg {
  width: 22px;
  height: 22px;
}

.m-nav-item span {
  font-size: 0.72rem;
  font-weight: 500;
}

.m-nav-item.active {
  color: #ffffff;
  font-weight: 700;
}

.m-nav-center-action {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 0%, #a3a3a3 100%);
  color: #000000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.3);
  cursor: pointer;
  margin-bottom: 8px;
  transition: transform 0.15s ease;
}

.m-nav-center-action:active {
  transform: scale(0.92);
}

.m-nav-center-action svg {
  width: 24px;
  height: 24px;
}

/* Bottom Sheets */
.m-sheet-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  animation: fadeIn 0.2s ease forwards;
}

.m-bottom-sheet {
  background-color: #0a0a0a;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-top: 1px solid var(--m-border);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--m-safe-bottom) + 16px);
  animation: slideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

.m-sheet-handle {
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background-color: var(--m-border);
  margin: 10px auto 4px auto;
}

.m-sheet-header {
  padding: 12px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--m-border-subtle);
}

.m-sheet-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--m-text);
}

.m-sheet-subtitle {
  font-size: 0.85rem;
  color: var(--m-text-muted);
}

.m-sheet-close {
  background: transparent;
  border: none;
  color: var(--m-text-muted);
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-top: -8px;
  margin-right: -8px;
}

.m-sheet-body {
  padding: 16px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Form controls in sheet */
.m-structured-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.m-form-section-card {
  background: #0e0e11;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease;
}

.m-form-section-card:focus-within {
  border-color: rgba(255, 255, 255, 0.18);
}

.m-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.m-section-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
}

.m-section-icon svg {
  width: 16px;
  height: 16px;
  stroke: #ffffff;
}

.m-section-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.m-section-subtitle {
  margin: 2px 0 0 0;
  font-size: 0.72rem;
  color: var(--m-text-muted);
}

.m-section-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.m-required {
  color: #ef4444;
  font-weight: 700;
  margin-left: 2px;
}

.m-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.m-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.m-form-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--m-text-muted);
  letter-spacing: 0.01em;
}

.m-form-field input, .m-form-field select, .m-form-field textarea {
  background-color: var(--m-bg-subtle);
  border: 1px solid var(--m-border);
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--m-text);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  min-height: 44px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.m-form-field textarea {
  min-height: 80px;
  resize: vertical;
}

.m-form-field input:focus, .m-form-field select:focus, .m-form-field textarea:focus {
  border-color: rgba(255, 255, 255, 0.7);
  background-color: #121215;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

/* Select Optgroup & Options styling */
select optgroup {
  background-color: #16161b;
  color: #93c5fd;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 4px;
}

select option {
  background-color: #0e0e11;
  color: #f4f4f5;
  font-size: 0.88rem;
  padding: 6px 10px;
}

.m-quick-actions-row {
  display: flex;
  gap: 8px;
}

.m-action-chip {
  flex: 1;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: var(--m-bg-subtle);
  border: 1px solid var(--m-border);
  border-radius: 10px;
  color: var(--m-text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}

.m-action-chip svg {
  width: 16px;
  height: 16px;
  color: var(--m-text-muted);
}

/* Primary Button matching Sparkhes white accent */
.m-btn-primary {
  width: 100%;
  min-height: 48px;
  background-color: #ffffff;
  color: #000000;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease;
}

.m-btn-primary:active {
  opacity: 0.85;
}

.m-btn-secondary {
  width: 100%;
  min-height: 48px;
  background-color: var(--m-bg-subtle);
  color: var(--m-text);
  border: 1px solid var(--m-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.m-btn-secondary:active {
  background-color: var(--m-border);
}

/* Voice Record Button */
.m-voice-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

.m-voice-record-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff5252 0%, #dc2626 100%);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 82, 82, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.m-voice-record-btn.recording {
  animation: pulseRecording 1.4s infinite;
}

@keyframes pulseRecording {
  0% { box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.7); }
  70% { box-shadow: 0 0 0 16px rgba(255, 82, 82, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 82, 82, 0); }
}

.m-voice-record-btn svg {
  width: 30px;
  height: 30px;
}

.m-voice-status {
  font-size: 0.85rem;
  color: var(--m-text-muted);
}

.m-capture-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.m-capture-feedback {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  background-color: var(--m-bg-subtle);
  border: 1px solid var(--m-border);
}

/* Menu Grid in Action Sheet */
.m-action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.m-action-card {
  background-color: var(--m-bg-subtle);
  border: 1px solid var(--m-border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  cursor: pointer;
}

.m-action-card svg {
  width: 24px;
  height: 24px;
  color: var(--m-text);
}

.m-action-card span {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Settings Menu Items */
.m-settings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.m-settings-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: var(--m-bg-subtle);
  border: 1px solid var(--m-border);
  border-radius: 12px;
  padding: 14px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: var(--m-text);
  min-height: 52px;
}

.m-settings-item svg {
  width: 24px;
  height: 24px;
  color: var(--m-text-muted);
  flex-shrink: 0;
}

.m-settings-item.danger svg {
  color: var(--m-danger);
}

.m-settings-item-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}

.m-settings-item-text span {
  display: block;
  font-size: 0.8rem;
  color: var(--m-text-dim);
  margin-top: 2px;
}

/* Login Overlay */
.m-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--m-bg-base);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.m-login-card {
  width: 100%;
  max-width: 360px;
  background-color: var(--m-bg-card);
  border: 1px solid var(--m-border);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.m-login-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  margin-bottom: 14px;
}

.m-login-logo svg {
  width: 28px;
  height: 28px;
}

.m-login-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.m-login-card p {
  font-size: 0.88rem;
  color: var(--m-text-muted);
  margin-bottom: 20px;
}

.m-login-card form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.m-input-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--m-text-muted);
  margin-bottom: 5px;
}

.m-input-group input {
  width: 100%;
  height: 46px;
  background-color: var(--m-bg-subtle);
  border: 1px solid var(--m-border);
  border-radius: 10px;
  padding: 0 14px;
  color: var(--m-text);
  font-size: 0.95rem;
  outline: none;
}

.m-input-group input:focus {
  border-color: #ffffff;
}

.m-checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--m-text-muted);
}

.m-checkbox-group input {
  width: 18px;
  height: 18px;
  accent-color: #ffffff;
}

.m-alert-error {
  background-color: var(--m-danger-subtle);
  border: 1px solid rgba(255, 82, 82, 0.3);
  color: #ff5252;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  text-align: center;
}

/* Toast */
.m-toast {
  position: fixed;
  top: calc(var(--m-safe-top) + 20px);
  left: 50%;
  transform: translateX(-50%);
  background-color: #141414;
  border: 1px solid var(--m-border);
  color: var(--m-text);
  padding: 10px 18px;
  border-radius: 24px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0,0,0,0.7);
  z-index: 150;
  pointer-events: none;
  animation: toastPop 0.25s ease forwards;
}

@keyframes toastPop {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Skeleton Loading */
.m-loading-skeleton {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.m-skeleton-card {
  height: 110px;
  border-radius: 14px;
  background: linear-gradient(90deg, #0a0a0a 25%, #181818 50%, #0a0a0a 75%);
  background-size: 200% 100%;
  animation: skeletonShine 1.5s infinite;
}

@keyframes skeletonShine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.m-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--m-text-dim);
  font-size: 0.95rem;
}

/* Leads Dedicated Loader State */
.m-leads-loader-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 16px 20px;
  text-align: center;
  width: 100%;
}

.m-loader-spinner-box {
  position: relative;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.m-spinner-outer {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: #6366f1;
  border-right-color: rgba(99, 102, 241, 0.5);
  animation: mSpin 0.9s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
}

.m-spinner-inner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.04);
  border-bottom-color: #a855f7;
  animation: mSpinReverse 1.2s linear infinite;
}

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

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

.m-loader-heading {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.m-loader-subheading {
  font-size: 0.82rem;
  color: var(--m-text-dim);
  margin-bottom: 20px;
}

.m-loading-skeleton-pulse {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Load More Pagination Button */
.m-load-more-wrap {
  padding: 16px 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.m-btn-load-more {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.m-btn-load-more:active {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(0.97);
}

.m-load-more-meta {
  font-size: 0.78rem;
  color: var(--m-text-dim);
}

/* ──────────────────────────────────────────
   8. ENHANCED MOBILE 5-TAB LEAD MODAL & TOOLS
   ────────────────────────────────────────── */

.m-bottom-sheet-fullscreen {
  max-height: 94vh !important;
  height: 94vh;
}

.m-sheet-header-title-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.m-sheet-header-title-block h3 {
  font-size: 1.12rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.m-sheet-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.m-action-btn-accent {
  color: var(--m-primary) !important;
  background: var(--m-primary-subtle) !important;
  border-radius: 8px;
  width: 36px;
  height: 36px;
}

.m-action-btn-ai {
  color: var(--m-purple) !important;
  background: var(--m-purple-subtle) !important;
  border-radius: 8px;
  width: 36px;
  height: 36px;
}

/* Live Save Status Indicator */
.m-save-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
}

.m-save-indicator.saved {
  background: rgba(0, 230, 118, 0.12);
  color: var(--m-success);
  border: 1px solid rgba(0, 230, 118, 0.25);
}

.m-save-indicator.saving {
  background: rgba(255, 215, 0, 0.12);
  color: var(--m-warning);
  border: 1px solid rgba(255, 215, 0, 0.25);
}

.m-save-indicator.error {
  background: rgba(255, 82, 82, 0.12);
  color: var(--m-danger);
  border: 1px solid rgba(255, 82, 82, 0.25);
}

/* Segmented 5-Tabs Navigation Bar */
.m-tabs-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: #0d0d0d;
  border-bottom: 1px solid var(--m-border-subtle);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  flex-shrink: 0;
}

.m-tabs-bar::-webkit-scrollbar {
  display: none;
}

.m-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  background: transparent;
  color: var(--m-text-muted);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.m-tab-btn.active {
  background: #1c1c1e;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.12);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.m-tab-badge {
  background: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 600;
}

/* Tab Panels */
.m-tab-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Input With Action Button (Call, WhatsApp, Email, IG) */
.m-input-with-action {
  display: flex;
  align-items: center;
  background-color: var(--m-bg-subtle);
  border: 1px solid var(--m-border);
  border-radius: 10px;
  padding-right: 4px;
  transition: border-color 0.15s ease;
}

.m-input-with-action:focus-within {
  border-color: #ffffff;
}

.m-input-with-action input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  padding: 10px 12px;
  outline: none !important;
}

.m-input-action-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--m-text-muted);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  margin-left: 4px;
  transition: all 0.15s ease;
}

.m-input-action-btn:active {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.m-input-action-btn.wa {
  color: #25d366;
  background: rgba(37, 211, 102, 0.12);
}

.m-input-action-btn.ig {
  color: #e1306c;
  background: rgba(225, 48, 108, 0.12);
}

/* Pitch Service Selector Pills */
.m-pitch-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.m-pitch-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--m-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.m-pitch-pill-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.m-pitch-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--m-bg-subtle);
  border: 1px solid var(--m-border);
  color: var(--m-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.m-pitch-pill.active {
  background: rgba(192, 132, 252, 0.12);
  border-color: rgba(192, 132, 252, 0.4);
  color: #d8b4fe;
  font-weight: 600;
}

/* Instant Share Action Buttons Grid */
.m-share-actions-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--m-text-muted);
  margin-top: 4px;
}

.m-share-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.m-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--m-border);
  background: var(--m-bg-subtle);
  color: var(--m-text);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease, background 0.15s ease;
}

.m-share-btn:active {
  transform: scale(0.98);
}

.m-share-btn.wa {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.3);
  color: #25d366;
}

.m-share-btn.email {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

.m-share-btn.ig {
  background: rgba(225, 48, 108, 0.12);
  border-color: rgba(225, 48, 108, 0.3);
  color: #f472b6;
}

/* Quick AI Note & Voice Parser Box */
.m-quick-note-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--m-border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.m-quick-note-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--m-purple);
  font-size: 0.78rem;
  font-weight: 600;
}

.m-quick-note-textarea {
  background: var(--m-bg-subtle);
  border: 1px solid var(--m-border);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--m-text);
  font-family: inherit;
  font-size: 0.85rem;
  resize: vertical;
}

.m-quick-note-actions {
  display: flex;
  gap: 8px;
}

.m-voice-btn, .m-parse-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--m-border);
  background: var(--m-bg-subtle);
  color: var(--m-text);
  transition: all 0.15s ease;
}

.m-voice-btn.recording {
  background: rgba(255, 82, 82, 0.2);
  border-color: var(--m-danger);
  color: #ff5252;
  animation: pulseRecording 1s infinite;
}

@keyframes pulseRecording {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.m-parse-btn {
  background: rgba(192, 132, 252, 0.15);
  border-color: rgba(192, 132, 252, 0.35);
  color: #c084fc;
}

.m-btn-inline-copy {
  background: transparent;
  border: none;
  color: var(--m-primary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

/* Timeline & Metric Cards */
.m-timeline-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.m-timeline-card {
  background: var(--m-bg-subtle);
  border: 1px solid var(--m-border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.m-timeline-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--m-text-dim);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.m-timeline-val {
  font-size: 0.95rem;
  color: var(--m-text);
}

.m-timeline-val.accent {
  color: var(--m-primary);
}

.m-timeline-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.m-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: var(--m-bg-subtle);
  border: 1px solid var(--m-border-subtle);
  border-radius: 10px;
}

.m-timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--m-primary);
  margin-top: 5px;
  flex-shrink: 0;
}

.m-timeline-body {
  flex: 1;
}

.m-timeline-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--m-text);
}

.m-timeline-date {
  font-size: 0.75rem;
  color: var(--m-text-dim);
  margin-top: 2px;
}

/* In-Entity Tasks Widget */
.m-inline-add-task {
  background: var(--m-bg-subtle);
  border: 1px solid var(--m-border);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.m-inline-task-row {
  display: flex;
  gap: 8px;
}

.m-inline-task-row input {
  flex: 1;
  background: #141414;
  border: 1px solid var(--m-border);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--m-text);
  font-family: inherit;
  font-size: 0.85rem;
}

.m-btn-inline-add {
  padding: 8px 16px !important;
  font-size: 0.82rem !important;
  border-radius: 8px !important;
}

.m-lead-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

/* Sticky Sheet Footer */
.m-sheet-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 20px;
  border-top: 1px solid var(--m-border-subtle);
  background-color: #0a0a0a;
  flex-shrink: 0;
}

.m-btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 82, 82, 0.12);
  border: 1px solid rgba(255, 82, 82, 0.3);
  color: #ff5252;
  cursor: pointer;
  transition: all 0.15s ease;
}

.m-btn-danger:active {
  background: #ff5252;
  color: #ffffff;
}

/* Duplicate Lead Conflict Resolution Styles */
.m-conflict-alert {
  background: rgba(243, 156, 18, 0.12);
  border: 1px solid rgba(243, 156, 18, 0.3);
  color: #f39c12;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 500;
}

.m-conflict-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.m-conflict-card {
  background: var(--m-bg-subtle);
  border: 1px solid var(--m-border);
  border-radius: 12px;
  padding: 12px;
  position: relative;
}

.m-conflict-card.existing {
  border-color: rgba(59, 130, 246, 0.35);
}

.m-conflict-card.incoming {
  border-color: rgba(243, 156, 18, 0.35);
}

.m-conflict-card-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  margin-bottom: 6px;
}

.m-conflict-card-badge.incoming {
  background: rgba(243, 156, 18, 0.2);
  color: #f39c12;
}

.m-conflict-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--m-text-muted);
  margin-top: 8px;
}

.m-conflict-meta strong {
  color: var(--m-text);
}

.m-conflict-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

/* Filter Badge on Top Bar */
.m-icon-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--m-primary);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── VIP Lead Badge & Mobile Switch ─── */
.vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, #FFE066 0%, #F59E0B 50%, #D97706 100%);
  color: #1c1305;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 1.5px 5.5px;
  border-radius: 5px;
  border: 1px solid #FCD34D;
  box-shadow: 0 1px 4px rgba(245, 158, 11, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  vertical-align: middle;
  line-height: 1.2;
  user-select: none;
  flex-shrink: 0;
  white-space: nowrap;
}
.vip-badge-icon {
  font-size: 0.72rem;
  line-height: 1;
}

.btn-vip-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1;
  color: var(--m-text-muted);
  opacity: 0.35;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.btn-vip-toggle:hover {
  opacity: 1;
  transform: scale(1.15);
}
.btn-vip-toggle.is-vip {
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.7));
}
.btn-vip-toggle .vip-star-icon {
  display: inline-block;
  font-size: 13px;
}

.m-vip-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  padding: 11px 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.m-vip-toggle-card.is-active {
  background: rgba(245, 158, 11, 0.15);
  border-color: #F59E0B;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}
.m-vip-toggle-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.m-vip-toggle-desc {
  font-size: 0.72rem;
  color: var(--m-text-muted);
}
.m-vip-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
}
.m-vip-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.m-vip-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #27272a;
  transition: .25s;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.15);
}
.m-vip-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: #fff;
  transition: .25s;
  border-radius: 50%;
}
.m-vip-switch input:checked + .m-vip-slider {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  border-color: #FCD34D;
}
.m-vip-switch input:checked + .m-vip-slider:before {
  transform: translateX(16px);
  background-color: #18181b;
}

/* ─── Mobile DM Personalization Readiness Bar ─── */
.m-dm-readiness-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

.m-dm-readiness-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  gap: 8px;
}

.m-dm-readiness-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #f1f5f9;
}

.m-dm-readiness-title svg {
  color: #94a3b8;
}

.m-dm-readiness-badge {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 16px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.m-dm-readiness-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.m-dm-readiness-bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.35s ease;
}

.m-dm-readiness-status {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 8px;
  line-height: 1.35;
}

.m-dm-readiness-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.m-readiness-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.m-readiness-tag.is-ok {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.m-readiness-tag.is-missing {
  background: rgba(255, 255, 255, 0.04);
  color: #64748b;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ──────────────────────────────────────────
   9. MOBILE SETTINGS, PROPOSALS & MODAL PANES
   ────────────────────────────────────────── */

.m-settings-tab-pane {
  display: none;
  animation: fadeIn 0.2s ease;
}

.m-settings-tab-pane.active {
  display: block;
}

.m-badge.status-connected {
  color: #34d399 !important;
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.m-badge.status-testing {
  color: #fbbf24 !important;
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

.m-badge.status-error {
  color: #f87171 !important;
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

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



