/* ==========================================================================
   LAXMI TOYOTA — Official WhatsApp-Web Inspired Sales Inbox Theme
   ========================================================================== */

:root {
  /* WhatsApp Official Signature Colors */
  --wa-dark-green: #075E54;
  --wa-teal: #128C7E;
  --wa-light-green: #25D366;
  --wa-check-blue: #53BDEB;
  --wa-bg-canvas: #ECE5DD;
  --wa-bg-panel: #F0F2F5;
  --wa-bubble-in: #FFFFFF;
  --wa-bubble-out: #DCF8C6;
  --wa-bubble-system: #FFFFFF;
  
  /* Text & Readability */
  --text-primary: #111B21;
  --text-secondary: #3B4A54;
  --text-muted: #667781;
  --text-light: #F0F2F5;

  /* Borders & Dividers */
  --border-subtle: #E9EDEF;
  --border-strong: #D1D7DB;
  --border-focus: #128C7E;

  /* Toyota Brand Accents */
  --toyota-red: #EB0A1E;
  --toyota-red-hover: #C8081A;

  /* Priority Classifications */
  --hot-bg: #FEE2E2;
  --hot-text: #DC2626;
  --hot-border: #FCA5A5;

  --warm-bg: #FEF3C7;
  --warm-text: #D97706;
  --warm-border: #FCD34D;

  --cold-bg: #E0F2FE;
  --cold-text: #0284C7;
  --cold-border: #BAE6FD;

  /* Sizing & Typography */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Reset & Global Canvas */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--wa-bg-canvas);
  background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 0);
  background-size: 24px 24px;
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background-color: #FFFFFF;
}

/* ==========================================================================
   Header Section (WhatsApp Dark Green #075E54)
   ========================================================================== */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.25rem;
  background-color: var(--wa-dark-green);
  color: #FFFFFF;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

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

.brand-badge {
  background: var(--toyota-red);
  color: #FFF;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  line-height: 1.2;
}

.brand-sub {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.1rem;
}

.inbox-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.05rem 0.4rem;
  border-radius: var(--radius-sm);
}

.dealership-tag {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.8);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Header Navigation Pill Group */
.header-actions .flex {
  display: inline-flex;
  align-items: center;
}

.header-actions .bg-black\/20 {
  background-color: rgba(0, 0, 0, 0.2);
}

.header-actions .p-1 {
  padding: 0.25rem;
}

.header-actions .rounded-full {
  border-radius: 9999px;
}

.header-actions .space-x-1 > * + * {
  margin-left: 0.25rem;
}

.header-actions .bg-white.text-green-900 {
  background-color: #FFFFFF;
  color: #075E54;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.header-actions .text-white.hover\:bg-white\/10 {
  color: rgba(255, 255, 255, 0.85);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: all 0.15s ease;
}

.header-actions .text-white.hover\:bg-white\/10:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.system-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #FFFFFF;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #94A3B8;
}

.system-status.status-connected .status-dot {
  background-color: var(--wa-light-green);
  box-shadow: 0 0 8px var(--wa-light-green);
}

.system-status.status-error .status-dot {
  background-color: #EF4444;
  box-shadow: 0 0 8px #EF4444;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.btn .icon {
  width: 14px;
  height: 14px;
}

.btn-header-refresh {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.btn-header-refresh:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-header-logout {
  background: rgba(239, 68, 68, 0.85);
  color: #FFFFFF;
}

.btn-header-logout:hover {
  background: #DC2626;
}

/* ==========================================================================
   Summary Cards Section (Compact Bar)
   ========================================================================== */
.summary-section {
  background: var(--wa-bg-panel);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.5rem 1rem;
  flex-shrink: 0;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}

.metric-card {
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-card:hover {
  border-color: var(--wa-teal);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.metric-card.active-filter {
  border-color: var(--wa-teal);
  background: #E8F5F3;
  box-shadow: 0 0 0 1px var(--wa-teal);
}

.metric-header {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.metric-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.metric-icon {
  font-size: 0.82rem;
}

.metric-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.metric-hot { border-left: 3px solid #EF4444; }
.metric-hot .metric-value { color: #DC2626; }
.metric-human { border-left: 3px solid var(--wa-teal); }
.metric-human .metric-value { color: var(--wa-teal); }
.metric-qualified { border-left: 3px solid #10B981; }
.metric-qualified .metric-value { color: #059669; }
.metric-in-progress { border-left: 3px solid #8B5CF6; }
.metric-new { border-left: 3px solid #0284C7; }

/* ==========================================================================
   Two-Panel Workspace Layout
   ========================================================================== */
.inbox-workspace {
  flex: 1;
  display: grid;
  grid-template-columns: 380px 1fr;
  min-height: 0;
  background-color: #FFFFFF;
}

/* ==========================================================================
   Left Panel: Lead Sidebar
   ========================================================================== */
.sidebar-pane {
  background: #FFFFFF;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-controls {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  background: #FFFFFF;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  background: var(--wa-bg-panel);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 0.5rem 2.2rem 0.5rem 2.3rem;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text-primary);
  outline: none;
  transition: all 0.15s ease;
}

.search-box input:focus {
  background: #FFFFFF;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(18, 140, 126, 0.15);
}

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

.clear-search-btn {
  position: absolute;
  right: 0.65rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
}

.filter-dropdowns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.35rem;
}

.sidebar-select {
  background: var(--wa-bg-panel);
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.4rem;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.sidebar-select:focus {
  border-color: var(--border-focus);
  background: #FFFFFF;
}

/* Leads List Container */
.leads-list-container {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Lead Card Item */
.lead-card-item {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background-color 0.12s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: #FFFFFF;
}

.lead-card-item:hover {
  background: #F5F6F6;
}

.lead-card-item.active-lead {
  background: #EBF7F5;
  border-left: 4px solid var(--wa-teal);
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-cust-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-time {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.card-sub-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.card-model-tag {
  font-weight: 700;
  color: var(--text-primary);
}

.card-score-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--wa-bg-panel);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
}

.card-msg-snippet {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-badges-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.15rem;
  flex-wrap: wrap;
}

/* Badges */
.class-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.class-hot { background: var(--hot-bg); color: var(--hot-text); border: 1px solid var(--hot-border); }
.class-warm { background: var(--warm-bg); color: var(--warm-text); border: 1px solid var(--warm-border); }
.class-cold { background: var(--cold-bg); color: var(--cold-text); border: 1px solid var(--cold-border); }
.class-unrated { background: var(--wa-bg-panel); color: var(--text-muted); }

.stage-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.stage-new { background: #E0F2FE; color: #0284C7; }
.stage-in-qual { background: #EDE9FE; color: #7C3AED; }
.stage-qualified { background: #DCFCE7; color: #15803D; }
.stage-human-req { background: #FEE2E2; color: #B91C1C; border: 1px solid #FCA5A5; }
.stage-human-req-urgent {
  background: #FEE2E2;
  color: #B91C1C;
  border: 1px solid #FCA5A5;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.35);
}
.stage-follow-up { background: #FEF3C7; color: #B45309; }
.stage-test-drive { background: #E0E7FF; color: #4338CA; }
.stage-quotation { background: #FCE7F3; color: #BE185D; }
.stage-booking { background: #CCFBF1; color: #0F766E; }
.stage-won { background: #DCFCE7; color: #166534; font-weight: 800; }
.stage-lost { background: #F3F4F6; color: #6B7280; }
.stage-other { background: var(--wa-bg-panel); color: var(--text-secondary); }

.human-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #DCF8C6;
  color: #065F46;
  border: 1px solid #86EFAC;
}

.pulse-dot-sm {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wa-light-green);
  box-shadow: 0 0 6px var(--wa-light-green);
  animation: pulse-glow 1.5s infinite;
}

.pulse-dot-red {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 8px #EF4444;
  animation: pulse-glow-red 1.2s infinite;
}

@keyframes pulse-glow-red {
  0% { transform: scale(0.85); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.85); opacity: 0.7; }
}

.lead-card-item.urgent-human {
  border-left: 4px solid #EF4444 !important;
  background: #FFF5F5;
}

.lead-card-item.urgent-human:hover {
  background: #FEE2E2;
}

@keyframes pulse-glow {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* ==========================================================================
   Right Panel: Chat Canvas (WhatsApp Beige #ECE5DD)
   ========================================================================== */
.chat-pane {
  background-color: var(--wa-bg-canvas);
  background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 0);
  background-size: 24px 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Empty Selection View */
.chat-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.empty-icon-wrap {
  margin-bottom: 1.25rem;
}

.toyota-emblem {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  background: var(--toyota-red);
  color: #FFF;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(235, 10, 30, 0.25);
}

.empty-heading {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.empty-subtext {
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 460px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.empty-shortcuts {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.shortcut-tag {
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Active Conversation View */
.chat-active-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

/* Chat Header (Clean Light Panel #F0F2F5) */
.chat-header {
  background: var(--wa-bg-panel);
  border-bottom: 1px solid var(--border-strong);
  padding: 0.65rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 1rem;
}

.chat-header-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.mobile-back-btn {
  display: none;
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.mobile-back-btn svg {
  width: 14px;
  height: 14px;
}

.chat-customer-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.chat-cust-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chat-customer-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-cust-meta-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.chat-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.chat-meta-divider {
  color: var(--text-muted);
}

.chat-model-tag {
  color: var(--text-primary);
  font-weight: 700;
}

.chat-score-tag {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--wa-teal);
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Lead Lifecycle Switcher (Task 9) */
.stage-switcher-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #FFFFFF;
  border: 1.5px solid var(--wa-teal);
  border-radius: var(--radius-md);
  padding: 0.25rem 0.5rem;
  box-shadow: 0 1px 3px rgba(18, 140, 126, 0.12);
}

.stage-switcher-icon {
  font-size: 0.82rem;
}

.stage-switcher-select {
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  text-transform: uppercase;
}

.stage-switcher-select:focus {
  color: var(--wa-teal);
}

/* Follow-Up Button & Indicator (Task 7) */
.btn-followup-toggle {
  background: #FFFFFF;
  border: 1.5px solid var(--border-strong);
  color: var(--text-primary);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-followup-toggle:hover {
  border-color: var(--wa-teal);
  background: #F0FDF4;
  color: var(--wa-teal);
}

.btn-followup-toggle.has-followup {
  border-color: #D97706;
  background: #FEF3C7;
  color: #92400E;
}

.followup-dot-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #D97706;
  box-shadow: 0 0 6px #D97706;
}

/* Follow-Up Modal (Task 7) */
.followup-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(17, 27, 33, 0.65);
  backdrop-filter: blur(2px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.followup-modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border-top: 4px solid var(--wa-teal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modal-slide-in 0.2s ease-out;
}

@keyframes modal-slide-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.followup-modal-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--wa-bg-panel);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.modal-clock-icon {
  font-size: 1.35rem;
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.followup-modal-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.form-group-modal {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group-modal label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
}

.modal-input {
  width: 100%;
  background: #FFFFFF;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.8rem;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text-primary);
  outline: none;
  transition: all 0.15s ease;
}

.modal-input:focus {
  border-color: var(--wa-teal);
  box-shadow: 0 0 0 3px rgba(18, 140, 126, 0.15);
}

.followup-textarea {
  resize: vertical;
  min-height: 80px;
}

.followup-modal-footer {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--wa-bg-panel);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-right-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-save-followup {
  background: var(--wa-teal);
  color: #FFFFFF;
  font-weight: 700;
  border: none;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-save-followup:hover {
  background: #0D6E63;
}

.btn-clear-followup {
  background: transparent;
  color: #EF4444;
  border: 1px solid #FCA5A5;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.btn-clear-followup:hover {
  background: #FEE2E2;
}

.btn-secondary-modal {
  background: #FFFFFF;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.btn-secondary-modal:hover {
  background: #F0F2F5;
}

/* Follow-Up Badge in Lead Card */
.followup-pill-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FCD34D;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Status Pills */
.status-pill-ai {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #E0E7FF;
  color: #3730A3;
  border: 1px solid #C7D2FE;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.status-pill-human {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #DCF8C6;
  color: #065F46;
  border: 1px solid #86EFAC;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.btn-takeover {
  background: var(--wa-teal);
  color: #FFFFFF;
  border: none;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(18, 140, 126, 0.3);
}

.btn-takeover:hover {
  background: #0D6E63;
}

.btn-release {
  background: #FFFFFF;
  color: #DC2626;
  border: 1px solid #FCA5A5;
  font-weight: 700;
}

.btn-release:hover {
  background: #FEE2E2;
}

/* Messages Container (WhatsApp Wallpaper) */
.chat-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background-color: var(--wa-bg-canvas);
}

/* Message Rows & Bubbles */
.msg-row {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.msg-row-customer {
  align-items: flex-start;
}

.msg-row-ai, .msg-row-human {
  align-items: flex-end;
}

.msg-row-system {
  align-items: center;
}

.msg-bubble {
  max-width: 72%;
  padding: 0.65rem 0.95rem;
  border-radius: 8px;
  position: relative;
  word-break: break-word;
  line-height: 1.45;
  font-size: 0.88rem;
  color: #111B21;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* Customer Inbound Bubble (White #FFFFFF) */
.msg-bubble-customer {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-top-left-radius: 0;
}

/* Gemini AI Outbound Bubble (WhatsApp Pale Green #DCF8C6) */
.msg-bubble-gemini {
  background: var(--wa-bubble-out);
  border: 1px solid #C6ECAE;
  border-top-right-radius: 0;
}

/* Human Sales Rep Outbound Bubble (WhatsApp Pale Green #DCF8C6) */
.msg-bubble-human {
  background: var(--wa-bubble-out);
  border: 1px solid #A7F3D0;
  border-top-right-radius: 0;
}

/* System Bubble (Centered Pill) */
.msg-bubble-system {
  background: #FFFFFF;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: 9999px;
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
  text-align: center;
  max-width: 85%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.msg-header-tag {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
  display: block;
}

.tag-customer { color: var(--wa-teal); }
.tag-gemini { color: #6D28D9; }
.tag-human { color: #047857; }
.tag-system { color: var(--text-muted); }

.msg-body-text {
  white-space: pre-wrap;
  color: #111B21;
}

/* Rich Media Message Cards */
.media-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  padding: 0.5rem 0.65rem;
  margin-bottom: 0.35rem;
}

.media-icon-badge {
  font-size: 1.25rem;
  background: #FFFFFF;
  border-radius: 4px;
  padding: 0.25rem 0.4rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.media-file-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.media-filename {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-tag-type {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.msg-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
  margin-top: 0.25rem;
}

.msg-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Composer Area (Pinned Bottom) */
.chat-composer-area {
  background: var(--wa-bg-panel);
  border-top: 1px solid var(--border-strong);
  padding: 0.65rem 1.15rem;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.composer-locked-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #E8F5F3;
  border: 1px dashed var(--wa-teal);
  padding: 0.6rem 0.95rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  color: var(--text-secondary);
  gap: 0.75rem;
}

.btn-takeover-sm {
  background: var(--wa-teal);
  color: #FFF;
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}

.btn-takeover-sm:hover {
  background: #0D6E63;
}

/* Attachment Preview Strip */
.attachment-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1px solid var(--wa-teal);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.75rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 6px rgba(18, 140, 126, 0.1);
}

.attachment-info {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  min-width: 0;
}

.attachment-name {
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.attachment-size {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.remove-attachment-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #EF4444;
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
}

.remove-attachment-btn:hover {
  color: #B91C1C;
}

.composer-form {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.btn-attach {
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  height: 42px;
  width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-attach:hover {
  color: var(--wa-teal);
  border-color: var(--wa-teal);
  background: #F0FDF4;
}

.attach-icon {
  width: 20px;
  height: 20px;
}

.composer-textarea {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text-primary);
  outline: none;
  resize: none;
  max-height: 120px;
  min-height: 42px;
  line-height: 1.4;
  transition: border-color 0.15s ease;
}

.composer-textarea:focus {
  border-color: var(--wa-teal);
  box-shadow: 0 0 0 2px rgba(18, 140, 126, 0.15);
}

.composer-textarea::placeholder {
  color: var(--text-muted);
}

.btn-send {
  background: var(--wa-teal);
  color: #FFF;
  border: none;
  padding: 0.65rem 1.15rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: background 0.15s ease;
  height: 42px;
}

.btn-send:hover {
  background: #0D6E63;
}

.btn-send:disabled {
  background: #D1D7DB;
  color: #8696A0;
  cursor: not-allowed;
}

.send-icon {
  width: 15px;
  height: 15px;
}

/* Feedback & Skeletons */
.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border-strong);
  border-top-color: var(--wa-teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 1rem auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.chat-loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.sidebar-empty-state {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Footer Section */
.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 1.25rem;
  background: var(--wa-bg-panel);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Navigation Tabs (Sales Inbox vs Dealership Analytics - Task 10)
   ========================================================================== */
.nav-tab-group {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.2rem;
  border-radius: 9999px;
  gap: 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-tab {
  background: transparent;
  color: #E2E8F0;
  border: none;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.nav-tab:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.15);
}

.nav-tab.active {
  background: #FFFFFF;
  color: var(--wa-dark-green);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.hidden {
  display: none !important;
}

.p-6 { padding: 1.5rem; }
.p-4 { padding: 1rem; }
.bg-\[\#ECE5DD\], #analyticsView { background-color: #ECE5DD; }
.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-6 { gap: 1.5rem; }
.bg-white { background-color: #ffffff; }
.rounded { border-radius: 0.5rem; }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1); }
.font-bold { font-weight: 700; }
.mb-4 { margin-bottom: 1rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.space-x-2 > * + * { margin-left: 0.5rem; }

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
}

.pipeline-metric-card {
  flex: 1;
  padding: 0.75rem 0.5rem;
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.pipeline-metric-card .pipeline-icon { font-size: 1.25rem; }
.pipeline-metric-card .pipeline-num { font-size: 1.3rem; font-weight: 800; }
.pipeline-metric-card .pipeline-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }

.analytics-kpi-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-subtle);
  border-top: 4px solid var(--wa-teal);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.analytics-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.analytics-kpi-card.kpi-total { border-top-color: #0284C7; }
.analytics-kpi-card.kpi-urgent { border-top-color: #EF4444; background: #FFF5F5; }
.analytics-kpi-card.kpi-conversions { border-top-color: #10B981; }
.analytics-kpi-card.kpi-hot { border-top-color: #F59E0B; }
.analytics-kpi-card.kpi-active { border-top-color: var(--wa-teal); }

.kpi-icon-wrap {
  font-size: 1.75rem;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wa-bg-panel);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.kpi-data {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

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

.kpi-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

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

/* Analytics Content Grid */
.analytics-content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.analytics-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.analytics-card-header {
  padding: 0.85rem 1.15rem;
  background: var(--wa-bg-panel);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-icon {
  font-size: 1.1rem;
}

.analytics-card-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-primary);
}

.analytics-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: #E0E7FF;
  color: #3730A3;
  text-transform: uppercase;
}

.analytics-card-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 380px;
  overflow-y: auto;
}

.analytics-loading {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
  padding: 1.5rem;
}

/* Stat Progress Bar Item */
.stat-bar-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-bar-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}

.stat-label-name {
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label-count {
  font-weight: 800;
  color: var(--wa-teal);
  font-family: var(--font-mono);
}

.stat-bar-track {
  width: 100%;
  height: 8px;
  background: #E2E8F0;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.stat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--wa-teal), var(--wa-light-green));
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.stat-bar-fill.fill-model {
  background: linear-gradient(90deg, #0284C7, #38BDF8);
}

.stat-bar-fill.fill-stage {
  background: linear-gradient(90deg, #7C3AED, #A78BFA);
}

.stat-bar-fill.fill-won {
  background: linear-gradient(90deg, #059669, #34D399);
}

.stat-bar-fill.fill-hot {
  background: linear-gradient(90deg, #DC2626, #F87171);
}

/* ==========================================================================
   Mobile Responsiveness (Strict Single-Pane Slider for < 768px)
   ========================================================================== */
@media (max-width: 1024px) {
  .summary-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .inbox-workspace {
    grid-template-columns: 320px 1fr;
  }
  .analytics-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .analytics-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .app-container {
    height: 100dvh;
  }

  .app-header {
    padding: 0.5rem 0.75rem;
  }

  .brand-title {
    font-size: 1rem;
  }

  .dealership-tag {
    display: none;
  }

  .summary-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
  }

  .inbox-workspace {
    grid-template-columns: 100%;
    position: relative;
    overflow: hidden;
  }

  /* Analytics Mobile Display Override */
  .analytics-view-container {
    padding: 0.75rem;
    gap: 0.85rem;
    min-height: auto;
    width: 100%;
  }

  .analytics-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .analytics-content-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* Strict Single-Pane View Logic */
  .sidebar-pane {
    width: 100%;
    height: 100%;
    display: flex;
  }

  .chat-pane {
    width: 100%;
    height: 100%;
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
  }

  .inbox-workspace.show-chat .sidebar-pane {
    display: none;
  }

  .inbox-workspace.show-chat .chat-pane {
    display: flex;
  }

  .mobile-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #FFFFFF;
    color: var(--wa-teal, #075E54);
    border: 1.5px solid var(--wa-teal, #075E54);
    padding: 0.35rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(7, 94, 84, 0.15);
    transition: all 0.15s ease;
  }

  .mobile-back-btn:active {
    background: #E6F4F1;
    transform: scale(0.97);
  }

  .chat-header {
    padding: 0.5rem 0.75rem;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .chat-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .msg-bubble {
    max-width: 88%;
  }

  .chat-composer-area {
    padding: 0.5rem 0.75rem;
  }
}

/* ==========================================================================
   TASK 11: Unread Badges, Quick Filters, Tags & Manual Editor Modal
   ========================================================================== */

/* Quick Filter Pills Row (Horizontal Scroll & Swipe) */
.quick-filters-container,
.quick-filter-pills {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  gap: 8px;
  padding: 0.25rem 0 4px 0;
  margin-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.quick-filters-container::-webkit-scrollbar,
.quick-filter-pills::-webkit-scrollbar {
  display: none; /* Hide scrollbar for clean UI */
}

.quick-pill {
  flex-shrink: 0;
  background: var(--wa-bg-panel, #F0F2F5);
  color: var(--text-secondary, #4B5563);
  border: 1px solid var(--border-subtle, #E5E7EB);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.quick-pill:hover {
  background: #E2E8F0;
  color: #1E293B;
}

.quick-pill.active {
  background: var(--wa-teal, #075E54);
  color: #FFFFFF;
  border-color: var(--wa-teal, #075E54);
  box-shadow: 0 1px 4px rgba(7, 94, 84, 0.25);
}

/* Unread Badge & Bold Name (Task 12) */
.unread-badge,
.unread-pill-badge {
  background: #25D366;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  line-height: 20px;
  padding: 0 0.35rem;
  border-radius: 50%;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(37, 211, 102, 0.45);
}

.unread-name,
.card-cust-name.unread-name {
  font-weight: 700 !important;
  color: #0F172A !important;
}

/* Latest Message Snippet (Task 12) */
.message-preview,
.card-msg-snippet {
  font-size: 0.76rem;
  color: var(--text-secondary, #4B5563);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  display: block;
  margin-top: 0.15rem;
  max-width: 100%;
}

/* Tagging on Sidebar Cards */
.card-tags-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}

.lead-tag-chip {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.lead-tag-chip:hover {
  background: #DBEAFE;
  color: #1E40AF;
  border-color: #93C5FD;
}

.lead-tag-chip.active-tag-filter {
  background: #1D4ED8;
  color: #FFFFFF;
  border-color: #1D4ED8;
}

/* Priority Switcher Dropdown */
.priority-switcher-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-md, 6px);
}

.priority-switcher-icon {
  font-size: 0.85rem;
}

.priority-switcher-select {
  background: transparent;
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  color: #B91C1C;
  cursor: pointer;
  outline: none;
  font-family: inherit;
}

/* Edit Details Header Button */
.btn-edit-lead {
  background: #F3F4F6;
  color: #374151;
  border: 1px solid #D1D5DB;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-md, 6px);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.15s ease;
}

.btn-edit-lead:hover {
  background: #E5E7EB;
  color: #111827;
}

/* Edit Lead Qualification Modal */
.edit-lead-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.edit-lead-modal-card {
  background: #FFFFFF;
  border-radius: 12px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.edit-lead-modal-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle, #E5E7EB);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FAFAFA;
}

.modal-edit-icon {
  font-size: 1.2rem;
}

.edit-lead-modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

@media (max-width: 640px) {
  .modal-form-grid {
    grid-template-columns: 1fr;
  }
}

.modal-checkbox-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  background: #F9FAFB;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
}

@media (max-width: 640px) {
  .modal-checkbox-row {
    grid-template-columns: 1fr;
  }
}

.form-check-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.check-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
}

.modal-input-sm {
  font-size: 0.78rem;
  padding: 0.35rem 0.6rem;
}

/* Tagging Builder in Modal */
.tags-builder-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.6rem;
  background: #FFFFFF;
  border: 1px solid var(--border-strong, #D1D5DB);
  border-radius: 6px;
  min-height: 42px;
}

.tags-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.tag-pill-item {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.tag-remove-btn {
  background: none;
  border: none;
  color: #93C5FD;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tag-remove-btn:hover {
  color: #1D4ED8;
}

.tags-input-field {
  flex: 1;
  min-width: 160px;
  border: none;
  outline: none;
  font-size: 0.8rem;
  font-family: inherit;
}

.tags-hint {
  font-size: 0.7rem;
  color: #6B7280;
  margin-top: 0.25rem;
  display: block;
}

.edit-lead-modal-footer {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  background: #FAFAFA;
}

.btn-save-details {
  background: var(--wa-teal, #075E54);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-save-details:hover {
  background: #064E46;
}

/* Direct Dial & WhatsApp Action Icons */
.action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease;
  line-height: 1;
  cursor: pointer;
}

.action-icon:hover {
  background: rgba(0, 0, 0, 0.12);
  transform: scale(1.1);
}

/* Quick Reply Snippets Toolbar */
.quick-replies-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 0.45rem 0.85rem;
  background: rgba(240, 242, 245, 0.95);
  border-top: 1px solid var(--border-subtle, #E5E7EB);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.quick-replies-strip::-webkit-scrollbar {
  display: none;
}

.snippet-btn {
  flex-shrink: 0;
  background: #FFFFFF;
  color: var(--text-secondary, #374151);
  border: 1px solid var(--border-strong, #D1D5DB);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.snippet-btn:hover {
  background: #F0FDF4;
  color: var(--wa-dark-green, #075E54);
  border-color: var(--wa-light-green, #25D366);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.snippet-btn:active {
  transform: translateY(0);
}

/* Super Hot Pulsing Animation */
@keyframes superHotPulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

.lead-card.super-hot-active,
.lead-card-item.super-hot-active,
.lead-item.super-hot-active {
  border-left: 5px solid #dc3545 !important;
  animation: superHotPulse 2s infinite;
}

/* ==========================================================================
   Task 13: Analytics View & Lightweight CSS Visualizations
   ========================================================================== */

.nav-pill-group {
  display: inline-flex;
  align-items: center;
}

.nav-toggle-btn {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.nav-toggle-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.nav-toggle-btn.active {
  background-color: #FFFFFF;
  color: #075E54;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.inbox-view-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.analytics-view-container {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  background-color: var(--wa-bg-panel, #F0F2F5);
  min-height: 0;
}

.analytics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  background: #FFFFFF;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-lg, 12px);
  border: 1px solid var(--border-subtle, #E5E7EB);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.analytics-header h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary, #111B21);
  letter-spacing: -0.01em;
}

.analytics-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

#analytics-timeframe {
  background: var(--wa-bg-panel, #F0F2F5);
  color: var(--text-primary, #111B21);
  border: 1px solid var(--border-strong, #D1D7DB);
  border-radius: var(--radius-md, 8px);
  padding: 0.35rem 0.75rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

#analytics-timeframe:focus {
  border-color: var(--wa-teal, #128C7E);
}

#refresh-analytics-btn,
#retry-analytics {
  background: var(--wa-teal, #128C7E);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md, 8px);
  padding: 0.35rem 0.85rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

#refresh-analytics-btn:hover,
#retry-analytics:hover {
  background: var(--wa-dark-green, #075E54);
}

#analytics-last-updated {
  font-size: 0.72rem;
  color: var(--text-muted, #667781);
  font-weight: 500;
}

#analytics-loading,
#analytics-error,
#analytics-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: #FFFFFF;
  border-radius: var(--radius-lg, 12px);
  border: 1px solid var(--border-subtle, #E5E7EB);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary, #4B5563);
  margin-bottom: 1rem;
}

#analytics-error {
  color: #DC2626;
  background: #FEF2F2;
  border-color: #FECACA;
}

#analytics-error button {
  margin-left: 0.5rem;
}

/* KPI Cards Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.kpi-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg, 12px);
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border-subtle, #E5E7EB);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.kpi-card h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted, #667781);
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.kpi-card div {
  font-size: 1.85rem;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  color: var(--text-primary, #111B21);
  line-height: 1.2;
}

#kpi-total { color: #0284C7; }
#kpi-new { color: #10B981; }
#kpi-unread { color: #F59E0B; }
#kpi-human { color: #DC2626; }

/* Analytics Data Grids */
.analytics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .analytics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.chart-card,
.analytics-view-container .chart-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg, 12px);
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border-subtle, #E5E7EB);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.chart-card h3,
.analytics-view-container .chart-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary, #111B21);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-subtle, #F0F2F5);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Lightweight CSS Horizontal Bar Charts */
.bar-row,
.analytics-view-container .bar-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.bar-row:last-child,
.analytics-view-container .bar-row:last-child {
  margin-bottom: 0;
}

.bar-label,
.analytics-view-container .bar-label {
  width: 140px;
  font-weight: 600;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  color: var(--text-secondary, #374151);
}

.bar-track,
.analytics-view-container .bar-track {
  flex: 1;
  background: #e9ecef;
  height: 12px;
  border-radius: 6px;
  margin: 0 10px;
  overflow: hidden;
}

.bar-fill,
.analytics-view-container .bar-fill {
  background: #0056b3;
  height: 100%;
  border-radius: 6px;
  transition: width 0.3s ease;
}

.bar-value,
.analytics-view-container .bar-value {
  width: 45px;
  text-align: right;
  font-weight: bold;
  font-size: 0.82rem;
  color: var(--text-primary, #111B21);
  font-family: var(--font-mono, monospace);
}

/* Specialized color fills for charts */
#chart-stages .bar-fill { background: linear-gradient(90deg, #10B981, #059669); }
#chart-priority .bar-fill { background: linear-gradient(90deg, #EF4444, #DC2626); }
#chart-intent .bar-fill { background: linear-gradient(90deg, #6366F1, #4F46E5); }
#chart-models .bar-fill { background: linear-gradient(90deg, #0284C7, #0369A1); }
#chart-showrooms .bar-fill { background: linear-gradient(90deg, #128C7E, #075E54); }

/* Restored Full Analytics Information Architecture */
.kpi-grid-5 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) {
  .kpi-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .kpi-grid-5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

.kpi-card.kpi-border-sky { border-top: 4px solid #0284C7; }
.kpi-card.kpi-border-rose { border-top: 4px solid #F43F5E; background: #FFF1F2; }
.kpi-card.kpi-border-emerald { border-top: 4px solid #10B981; }
.kpi-card.kpi-border-amber { border-top: 4px solid #F59E0B; }
.kpi-card.kpi-border-teal { border-top: 4px solid #075E54; }

.kpi-card .kpi-sub {
  font-size: 0.72rem;
  color: var(--text-muted, #6B7280);
  margin-top: 0.35rem;
}

/* Operational / Billing Row */
.ops-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .ops-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ops-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg, 12px);
  padding: 1.25rem;
  border: 1px solid var(--border-subtle, #E5E7EB);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ops-card.ops-meta { border-left: 4px solid #25D366; }
.ops-card.ops-gemini { border-left: 4px solid #6366F1; }
.ops-card.ops-sla { border-left: 4px solid #0284C7; }

.ops-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.ops-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary, #4B5563);
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.badge-est {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  background: #DCFCE7;
  color: #166534;
}
.badge-gemini {
  background: #EEF2FF;
  color: #3730A3;
}
.badge-sla {
  background: #E0F2FE;
  color: #0369A1;
}

.ops-val-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.ops-val {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--text-primary, #111B21);
  font-family: var(--font-mono, monospace);
}
.ops-sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: #10B981;
}

.ops-footer {
  padding-top: 0.75rem;
  border-top: 1px solid #F3F4F6;
  font-size: 0.75rem;
  color: var(--text-secondary, #6B7280);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Charts Grid */
.charts-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 1024px) {
  .charts-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.chart-canvas-box {
  position: relative;
  height: 260px;
  width: 100%;
}

.chart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-subtle, #F0F2F5);
}
.chart-card-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.chart-card-header h3 {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.chart-card-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted, #6B7280);
  margin-top: 0.15rem;
}
.chart-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: #F1F5F9;
  color: #475569;
}

/* Dealership Bars List (Showroom & Vehicle Model) */
.list-chart-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.dealership-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.dealership-row-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: #374151;
}
.dealership-bar-track {
  width: 100%;
  background: #F3F4F6;
  height: 8px;
  border-radius: 9999px;
  overflow: hidden;
}
.dealership-bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.4s ease;
}
.bar-fill-emerald { background: #059669; }
.bar-fill-sky { background: #0284C7; }

/* Pipeline & Lead Quality Grids */
.pipeline-stages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .pipeline-stages-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .pipeline-stages-grid { grid-template-columns: repeat(6, 1fr); }
}

.pipeline-stage-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
}
.stage-name {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748B;
  letter-spacing: 0.03em;
}
.stage-count {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0F172A;
  font-family: var(--font-mono, monospace);
  margin-top: 0.25rem;
}

.quality-scoring-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .quality-scoring-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .quality-scoring-grid { grid-template-columns: repeat(5, 1fr); }
}

.quality-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.quality-card-hot { border-top: 3px solid #DC2626; }
.quality-card-warm { border-top: 3px solid #F59E0B; }
.quality-card-cold { border-top: 3px solid #3B82F6; }
.quality-card-superhot { border-top: 3px solid #9333EA; }
.quality-card-unrated { border-top: 3px solid #94A3B8; }


/* ==========================================================================
   Task 14: CSV Campaign Manager Styles
   ========================================================================== */

.campaign-view-container {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  background-color: var(--wa-bg-panel, #F0F2F5);
  min-height: 0;
}

.campaign-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  background: #FFFFFF;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg, 12px);
  border: 1px solid var(--border-subtle, #E5E7EB);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.campaign-title-group h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary, #111B21);
  margin-bottom: 0.2rem;
}

.campaign-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted, #667781);
  font-weight: 500;
}

.btn-campaign-primary {
  background: linear-gradient(135deg, #128C7E, #075E54);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md, 8px);
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 4px rgba(18, 140, 126, 0.2);
}

.btn-campaign-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(18, 140, 126, 0.3);
}

.btn-campaign-refresh {
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-md, 8px);
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-campaign-refresh:hover {
  background: #E2E8F0;
}

/* Campaign Overview KPI Grid */
.campaign-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .campaign-kpi-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 1024px) {
  .campaign-kpi-grid {
    grid-template-columns: repeat(10, 1fr);
  }
}

.c-kpi-card {
  background: #FFFFFF;
  border-radius: var(--radius-md, 8px);
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border-subtle, #E5E7EB);
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.kpi-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted, #667781);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.c-kpi-card strong {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  color: var(--text-primary, #111B21);
}

.text-sending { color: #D97706 !important; }
.text-completed { color: #059669 !important; }
.text-sent { color: #0284C7 !important; }
.text-delivered { color: #10B981 !important; }
.text-read { color: #6366F1 !important; }
.text-replies { color: #EC4899 !important; }
.text-interested { color: #16A34A !important; }
.text-failed { color: #DC2626 !important; }

/* Wizard Box */
.campaign-wizard-box {
  background: #FFFFFF;
  border-radius: var(--radius-lg, 12px);
  padding: 1.5rem;
  border: 1px solid var(--border-subtle, #E5E7EB);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
  animation: fadeIn 0.2s ease-in-out;
}

.wizard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #F1F5F9;
  margin-bottom: 1rem;
}

.wizard-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.btn-close-wizard,
.btn-close-modal {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
}

.wizard-stepper {
  display: flex;
  background: #F8FAFC;
  padding: 0.35rem;
  border-radius: var(--radius-md, 8px);
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.step-tab {
  flex: 1;
  text-align: center;
  padding: 0.45rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.step-tab.active {
  background: #FFFFFF;
  color: var(--wa-teal, #128C7E);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.wizard-step-content {
  margin-bottom: 1.25rem;
}

.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #F1F5F9;
}

.btn-wizard-next {
  background: var(--wa-teal, #128C7E);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md, 8px);
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-wizard-next:disabled {
  background: #94A3B8;
  cursor: not-allowed;
}

.btn-wizard-back {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-md, 8px);
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

/* Dropzone & Validation */
.dropzone {
  border: 2px dashed #CBD5E1;
  border-radius: var(--radius-md, 8px);
  padding: 2.25rem 1rem;
  text-align: center;
  background: #F8FAFC;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--wa-teal, #128C7E);
  background: #F0FDF4;
}

.dropzone-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 0.4rem;
}

.dropzone-text {
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.dropzone-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.validation-summary-box {
  background: #F8FAFC;
  border: 1px solid var(--border-subtle, #E5E7EB);
  border-radius: var(--radius-md, 8px);
  padding: 1rem;
}

.validation-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .validation-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 900px) {
  .validation-stats-grid {
    grid-template-columns: repeat(7, 1fr);
  }
}

.v-stat-card {
  background: #FFFFFF;
  padding: 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border-subtle, #E5E7EB);
  text-align: center;
}

.v-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.v-stat-card strong {
  font-size: 1.1rem;
  font-family: var(--font-mono, monospace);
  color: var(--text-primary);
}

.v-stat-card.v-valid strong { color: #10B981; }
.v-stat-card.v-invalid strong { color: #EF4444; }
.v-stat-card.v-duplicate strong { color: #F59E0B; }
.v-stat-card.v-matched strong { color: #6366F1; }
.v-stat-card.v-optout strong { color: #DC2626; }
.v-stat-card.v-eligible strong { color: #059669; }

.file-loaded-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.75rem;
  background: #FFFFFF;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.btn-text-danger {
  background: none;
  border: none;
  color: #EF4444;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

/* Template View & Mapping */
.template-raw-box {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 6px;
  padding: 0.85rem;
  margin-bottom: 1rem;
}

.template-meta-tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.badge-cat {
  background: #DCFCE7;
  color: #166534;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.template-buttons-row {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.tpl-btn-chip {
  background: #FFFFFF;
  border: 1px solid #86EFAC;
  color: #166534;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
}

.variable-mapping-section h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.mapping-rows-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mapping-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.var-badge {
  min-width: 120px;
  background: #E2E8F0;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  text-align: center;
}

/* Step 4 Layout Grid */
.step4-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 860px) {
  .step4-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.safety-check-panel {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md, 8px);
  padding: 1rem;
  margin-bottom: 1rem;
}

.safety-check-panel h4 {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.safety-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.safety-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.safety-item.pass { color: #166534; }
.safety-item.pending { color: #92400E; }

/* WhatsApp Mockup Preview */
.wa-mockup-preview {
  background: #EFEAE2;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-md, 8px);
  padding: 1.25rem;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.wa-preview-bubble {
  max-width: 90%;
  background: #FFFFFF;
  border-radius: 8px 8px 8px 0;
  padding: 0.65rem 0.85rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
}

.wa-preview-text {
  font-size: 0.82rem;
  color: #111B21;
  line-height: 1.4;
  word-break: break-word;
}

.wa-preview-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
  margin-top: 0.25rem;
  font-size: 0.68rem;
  color: #667781;
}

.wa-preview-check {
  color: #53BDEB;
  font-weight: 700;
}

/* Test Send & Approval */
.test-send-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md, 8px);
  padding: 1rem;
  margin-bottom: 1rem;
}

.test-input-group {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.btn-test-send {
  background: #3B82F6;
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md, 8px);
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.compliance-checkbox-group {
  margin-bottom: 1.25rem;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  line-height: 1.35;
}

.consent-label input[type="checkbox"] {
  margin-top: 0.15rem;
  width: 16px;
  height: 16px;
  accent-color: var(--wa-teal, #128C7E);
}

.btn-dispatch-large {
  width: 100%;
  background: linear-gradient(135deg, #128C7E, #075E54);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md, 8px);
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(18, 140, 126, 0.25);
  transition: all 0.15s ease;
}

.btn-dispatch-large:hover:not(:disabled) {
  opacity: 0.95;
  transform: translateY(-1px);
}

.btn-dispatch-large:disabled {
  background: #94A3B8;
  cursor: not-allowed;
  box-shadow: none;
}

.dispatch-progress-box {
  margin-top: 0.85rem;
  background: #F8FAFC;
  padding: 0.65rem;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
}

.progress-bar-track {
  height: 8px;
  background: #E2E8F0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.progress-bar-fill {
  height: 100%;
  background: #10B981;
  transition: width 0.3s ease;
}

#dispatch-status-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
}

/* History Table & Action Buttons */
.campaign-history-section {
  background: #FFFFFF;
  border-radius: var(--radius-lg, 12px);
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border-subtle, #E5E7EB);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.campaign-history-section .section-header h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.table-responsive {
  overflow-x: auto;
}

.campaigns-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  text-align: left;
}

.campaigns-table th {
  background: #F8FAFC;
  color: var(--text-muted);
  font-weight: 700;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid #E2E8F0;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.campaigns-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid #F1F5F9;
  color: var(--text-primary);
}

.badge-goal {
  background: #EFF6FF;
  color: #1E40AF;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.campaign-status-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.badge-completed { background: #DCFCE7; color: #166534; }
.badge-sending { background: #FEF3C7; color: #92400E; }
.badge-paused { background: #FDE68A; color: #78350F; }
.badge-ready { background: #E0E7FF; color: #3730A3; }
.badge-failed { background: #FEE2E2; color: #991B1B; }
.badge-draft { background: #F1F5F9; color: #475569; }

.action-cell {
  white-space: nowrap;
}

.btn-action-view,
.btn-action-duplicate,
.btn-action-delete {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  margin-right: 0.25rem;
  transition: all 0.15s ease;
}

.btn-action-view:hover { background: #E2E8F0; }
.btn-action-duplicate:hover { background: #E0E7FF; }
.btn-action-delete:hover { background: #FEE2E2; color: #DC2626; }

/* Campaign Detail Modal */
.campaign-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

.modal-content {
  position: relative;
  background: #FFFFFF;
  border-radius: var(--radius-lg, 12px);
  width: 92%;
  max-width: 960px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  z-index: 10;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid #E2E8F0;
  background: #F8FAFC;
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.modal-body {
  padding: 1.25rem 1.35rem;
  overflow-y: auto;
  flex: 1;
}

.detail-funnel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .detail-funnel-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.funnel-card {
  background: #F8FAFC;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  text-align: center;
}

.f-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.funnel-card strong {
  font-size: 1.25rem;
  font-family: var(--font-mono, monospace);
  color: var(--text-primary);
}

.detail-actions-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.btn-action-pause { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; padding: 0.4rem 0.85rem; border-radius: 6px; font-weight: 700; font-size: 0.8rem; cursor: pointer; }
.btn-action-resume { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; padding: 0.4rem 0.85rem; border-radius: 6px; font-weight: 700; font-size: 0.8rem; cursor: pointer; }
.btn-action-cancel { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; padding: 0.4rem 0.85rem; border-radius: 6px; font-weight: 700; font-size: 0.8rem; cursor: pointer; }

.recipients-filter-bar {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.recipients-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.recipients-table th {
  background: #F8FAFC;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #E2E8F0;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.recipients-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #F1F5F9;
}

.badge-response {
  background: #E0E7FF;
  color: #3730A3;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.text-failed-reason {
  color: #DC2626;
  font-size: 0.72rem;
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.btn-page {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-page:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================================================================
   Task 15: Sales Inbox Reliability, Media & Status Indicators
   ========================================================================== */

/* Copy Phone Feedback Badge */
.copy-feedback-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #10B981;
  background: #DCFCE7;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.35rem;
  animation: fadeIn 0.2s ease;
}

/* Outbound Message Status Checkmarks */
.msg-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.msg-status {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  user-select: none;
}

.msg-status-sending {
  color: var(--text-muted, #94A3B8);
  font-style: italic;
}

.msg-status-sent {
  color: var(--text-muted, #94A3B8);
}

.msg-status-delivered {
  color: var(--text-muted, #94A3B8);
  font-weight: 700;
}

.msg-status-read {
  color: #0284C7; /* WhatsApp Blue Read Checkmarks */
  font-weight: 800;
}

.msg-status-failed {
  color: #DC2626;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-retry-msg {
  background: #FEE2E2;
  border: 1px solid #FCA5A5;
  color: #B91C1C;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-retry-msg:hover {
  background: #FECACA;
}

/* Rich Customer Media Cards in Chat */
/* Rich Customer Media Cards in Chat (Task 15.2: Image Bubble Sizing & Zero Empty Space) */
.msg-bubble-media {
  width: fit-content !important;
  max-width: min(360px, 85vw) !important;
  padding: 0.35rem 0.35rem 0.35rem 0.35rem !important;
}

.media-preview-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
}

.chat-media-img {
  width: 100%;
  max-width: 360px;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
  margin: 0;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: opacity 0.15s ease;
}
.chat-media-img:hover {
  opacity: 0.95;
}

.media-caption-text {
  padding: 0.35rem 0.45rem 0.15rem 0.45rem;
  font-size: 0.88rem;
  color: #111B21;
  word-break: break-word;
  line-height: 1.4;
}

.chat-media-video {
  max-width: 320px;
  max-height: 260px;
  border-radius: 8px;
  margin-bottom: 0.4rem;
  display: block;
  background: #000;
}

.chat-media-audio {
  width: 260px;
  height: 40px;
  margin-bottom: 0.4rem;
  display: block;
}

.chat-media-doc {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.4rem;
  text-decoration: none;
  color: var(--text-primary, #111B21);
  font-weight: 600;
  font-size: 0.82rem;
  transition: background 0.15s ease;
}
.chat-media-doc:hover {
  background: rgba(0, 0, 0, 0.08);
}
.doc-download-icon {
  font-size: 1.25rem;
}

/* Multi-Attachment Preview Tray (Task 15.2: Multi-Image UX) */
.attachment-preview-bar {
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.attachments-tray-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted, #64748B);
}

.btn-clear-all-attachments {
  background: none;
  border: none;
  color: #EF4444;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
.btn-clear-all-attachments:hover {
  background: #FEE2E2;
}

.attachments-thumbnails-grid {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0;
}

.attachment-thumb-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 64px;
  flex-shrink: 0;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 0.25rem;
}

.attachment-thumb-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.attachment-thumb-name {
  font-size: 0.65rem;
  color: var(--text-primary, #1E293B);
  max-width: 56px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.2rem;
  text-align: center;
}

.remove-thumb-btn {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: #EF4444;
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
}
.remove-thumb-btn:hover {
  transform: scale(1.15);
}




