/* ================================================================
   FOLLOW-UP SALES & MASTER CRM — SFT "AURORA NAVY & CRIMSON" ELITE
   High-End Glassmorphism, Micro-Animations & Luxury Automotive UI
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

/* --- ROOT VARIABLES --- */
:root {
  --fu-navy-dark: #070d22;
  --fu-navy: #0d1b3e;
  --fu-navy-light: #16305f;
  --fu-crimson: #d7123a;
  --fu-crimson-hover: #b80c2f;
  --fu-crimson-glow: rgba(215, 18, 58, 0.22);
  --fu-emerald: #10b981;
  --fu-emerald-dark: #059669;
  --fu-emerald-glow: rgba(16, 185, 129, 0.25);
  --fu-amber: #f59e0b;
  --fu-amber-glow: rgba(245, 158, 11, 0.2);
  --fu-blue: #3b82f6;
  --fu-purple: #8b5cf6;
  --fu-bg: #f3f5fa;
  --fu-card: #ffffff;
  --fu-border: #e2e8f0;
  --fu-border-subtle: #f1f5f9;
  --fu-text-main: #0f172a;
  --fu-text-muted: #64748b;
  --fu-radius-sm: 10px;
  --fu-radius-md: 14px;
  --fu-radius-lg: 20px;
  --fu-radius-full: 9999px;
  --fu-shadow-card: 0 4px 20px -2px rgba(13, 27, 62, 0.06), 0 2px 6px -1px rgba(13, 27, 62, 0.04);
  --fu-shadow-hover: 0 14px 34px -4px rgba(13, 27, 62, 0.12), 0 4px 12px -2px rgba(13, 27, 62, 0.06);
}

/* --- LUXURY BUTTON SYSTEM --- */
.btn-fu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--fu-radius-md);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  line-height: 1.2;
}

.btn-fu:active {
  transform: scale(0.97);
}

.btn-fu i {
  font-size: 14px;
}

/* Emerald Green Button (Import / Excel / WA) */
.btn-fu-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  border: none;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.32);
}

.btn-fu-emerald:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.42);
  transform: translateY(-2px);
  color: #ffffff !important;
}

/* Crimson Red Button (Primary Actions) */
.btn-fu-crimson {
  background: linear-gradient(135deg, #f43f5e 0%, #d7123a 60%, #9f1239 100%);
  color: #ffffff !important;
  border: none;
  box-shadow: 0 4px 14px var(--fu-crimson-glow);
}

.btn-fu-crimson:hover {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  box-shadow: 0 6px 20px rgba(215, 18, 58, 0.38);
  transform: translateY(-2px);
  color: #ffffff !important;
}

/* Navy Blue Button */
.btn-fu-navy {
  background: linear-gradient(135deg, #1e293b 0%, #0d1b3e 100%);
  color: #ffffff !important;
  border: none;
  box-shadow: 0 4px 14px rgba(13, 27, 62, 0.25);
}

.btn-fu-navy:hover {
  background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
  box-shadow: 0 6px 20px rgba(13, 27, 62, 0.35);
  transform: translateY(-2px);
  color: #ffffff !important;
}

/* Secondary White Glass Button */
.btn-fu-secondary {
  background: #ffffff;
  color: #1e293b !important;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(13, 27, 62, 0.04);
}

.btn-fu-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--fu-crimson) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13, 27, 62, 0.08);
}

.btn-fu-secondary i {
  color: var(--fu-crimson);
}

/* Danger Outline Button (Reset DB) */
.btn-fu-danger-outline {
  background: #ffffff;
  color: #ef4444 !important;
  border: 1.5px solid #fecaca;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.06);
}

.btn-fu-danger-outline:hover {
  background: #fef2f2;
  border-color: #f87171;
  color: #dc2626 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.12);
}

.btn-fu-danger-outline i {
  color: #ef4444;
}

/* --- MASTER ACTION TOOLBAR --- */
.fu-master-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 18px;
  margin-bottom: 18px;
  box-shadow: 0 4px 18px -2px rgba(13, 27, 62, 0.05);
  gap: 12px;
  flex-wrap: wrap;
}

.fu-toolbar-left,
.fu-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .fu-master-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .fu-toolbar-left,
  .fu-toolbar-right {
    justify-content: flex-start;
  }
}

/* --- HIGH-END FORM CONTROLS & FILTERS --- */
.fu-filter-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--fu-radius-lg);
  padding: 14px 18px;
  margin-bottom: 18px;
  box-shadow: var(--fu-shadow-card);
  display: grid;
  grid-template-columns: minmax(260px, 2fr) 1.2fr 1.2fr 1fr;
  gap: 12px;
  align-items: center;
}

@media (max-width: 1024px) {
  .fu-filter-card {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .fu-filter-card {
    grid-template-columns: 1fr;
  }
}

.fu-input,
.fu-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fu-text-main);
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.fu-input:focus,
.fu-select:focus {
  background: #ffffff;
  border-color: var(--fu-crimson);
  box-shadow: 0 0 0 3px rgba(215, 18, 58, 0.12);
}

.fu-input-with-icon {
  position: relative;
}

.fu-input-with-icon i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 13px;
  pointer-events: none;
}

.fu-input-with-icon .fu-input {
  padding-left: 38px;
}

/* --- TAB SWITCHER IN SALES APP --- */
.followup-nav-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #ffffff;
  padding: 6px;
  border-radius: var(--fu-radius-lg);
  border: 1.5px solid #e2e8f0;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(13, 27, 62, 0.05);
  position: relative;
}

.followup-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--fu-radius-md);
  border: none;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  color: var(--fu-text-muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.followup-tab-btn.active {
  background: linear-gradient(135deg, var(--fu-navy) 0%, var(--fu-navy-light) 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(13, 27, 62, 0.25);
  transform: translateY(-1px);
}

.followup-tab-btn:hover:not(.active) {
  background: #f8fafc;
  color: var(--fu-text-main);
}

/* --- HERO SUMMARY BANNER --- */
.followup-hero-banner {
  background: linear-gradient(135deg, #0d1b3e 0%, #16305f 60%, #1e1b4b 100%);
  border-radius: var(--fu-radius-lg);
  padding: 18px 20px;
  color: #ffffff;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(13, 27, 62, 0.18);
}

.followup-hero-banner::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(215, 18, 58, 0.35) 0%, rgba(215, 18, 58, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}

@media (max-width: 600px) {
  .hero-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hero-kpi-chip {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
  transition: all 0.2s ease;
}

.hero-kpi-chip:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.hero-kpi-chip .num {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.hero-kpi-chip .lbl {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  margin-top: 2px;
}

/* --- FILTER CHIPS BAR (HORIZONTAL SCROLL) --- */
.category-chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.category-chips-scroll::-webkit-scrollbar {
  height: 4px;
}
.category-chips-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.category-pill-btn {
  padding: 8px 14px;
  border-radius: var(--fu-radius-full);
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: var(--fu-text-main);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-pill-btn.active {
  background: var(--fu-crimson);
  color: #ffffff;
  border-color: var(--fu-crimson);
  box-shadow: 0 4px 14px var(--fu-crimson-glow);
}

.category-pill-btn:hover:not(.active) {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

/* --- STATUS FILTER PILLS & BUTTONS --- */
.status-fu-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--fu-radius-md);
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: var(--fu-text-main);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.status-fu-tab-btn:hover:not(.active) {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.status-fu-tab-btn.active {
  background: linear-gradient(135deg, var(--fu-navy) 0%, var(--fu-navy-light) 100%);
  color: #ffffff !important;
  border-color: var(--fu-navy);
  box-shadow: 0 4px 14px rgba(13, 27, 62, 0.25);
  transform: translateY(-1px);
}

.status-fu-tab-btn.tab-belum.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: #d97706;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
  color: #ffffff !important;
}

.status-fu-tab-btn.tab-sudah.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #059669;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  color: #ffffff !important;
}

.fu-filter-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 9999px;
  font-size: 10.5px;
  font-weight: 800;
  background: #f1f5f9;
  color: #475569;
  transition: all 0.2s ease;
}

.status-fu-tab-btn.active .fu-filter-count-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
}

.fu-filter-count-badge.badge-amber {
  background: #fef3c7;
  color: #b45309;
}

.fu-filter-count-badge.badge-green {
  background: #dcfce7;
  color: #15803d;
}

.fu-filter-count-badge.badge-yellow {
  background: #fef9c3;
  color: #a16207;
}

.fu-filter-count-badge.badge-blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.fu-filter-count-badge.badge-emerald {
  background: #d1fae5;
  color: #047857;
}

/* --- CUSTOMER CARDS (SALES POV - ULTRA POLISHED) --- */
.followup-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 20px;
}

@media (max-width: 768px) {
  .followup-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.followup-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--fu-radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.followup-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: #cbd5e1;
  transition: all 0.25s ease;
}

.followup-card.pending::before {
  background: linear-gradient(180deg, var(--fu-amber) 0%, #d97706 100%);
}

.followup-card.deal::before {
  background: linear-gradient(180deg, var(--fu-emerald) 0%, var(--fu-emerald-dark) 100%);
}

.followup-card.interested::before {
  background: linear-gradient(180deg, var(--fu-blue) 0%, #1d4ed8 100%);
}

.followup-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
  border-color: #cbd5e1;
}

/* Card & Row Just Followed-Up Highlight Pulse */
@keyframes fu-just-sent-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6), 0 4px 16px rgba(16, 185, 129, 0.15);
    border-color: #10b981;
  }
  50% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0), 0 8px 24px rgba(16, 185, 129, 0.25);
    border-color: #059669;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0), 0 4px 16px rgba(15, 23, 42, 0.05);
    border-color: #10b981;
  }
}

.followup-card.card-just-followed-up {
  border-color: #10b981 !important;
  animation: fu-just-sent-pulse 1.8s ease-in-out 3;
}

tr.card-just-followed-up td {
  background: #f0fdf4 !important;
  transition: background 0.5s ease;
}

.just-followed-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #15803d;
  border: 1px solid #86efac;
  padding: 2px 7px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 800;
  animation: fuPopIn 0.3s ease;
}

/* Header Inside Card */
.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.cust-name {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--fu-text-main);
  letter-spacing: -0.2px;
  margin-bottom: 3px;
  line-height: 1.3;
}

.cust-phone-link {
  font-size: 12px;
  font-family: monospace;
  font-weight: 700;
  color: var(--fu-emerald-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.cust-phone-link:hover {
  color: #047857;
  text-decoration: underline;
}

/* Vehicle Journey Comparison Flow Box */
.vehicle-journey-box {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: var(--fu-radius-md);
  padding: 12px 14px;
  margin: 12px 0;
  position: relative;
}

.vehicle-journey-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.vehicle-unit-side {
  flex: 1;
}

.vehicle-unit-side .sub-lbl {
  font-size: 9.5px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--fu-text-muted);
  margin-bottom: 2px;
}

.vehicle-unit-side .model-name {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--fu-text-main);
  line-height: 1.2;
}

.journey-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fu-crimson);
  font-size: 11px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

/* Badges Styling */
.badge-cluster-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #1e40af;
  border: 1px solid #bfdbfe;
  padding: 3px 9px;
  border-radius: var(--fu-radius-full);
  font-size: 10.5px;
  font-weight: 700;
}

.badge-priority-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.badge-age-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fef08a;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
}

.badge-loc-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
}

/* BIG HIGH-CONVERSION WHATSAPP BUTTON */
.btn-wa-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--fu-radius-md);
  font-size: 13.5px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-wa-action:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.45);
  transform: translateY(-2px);
  color: #ffffff;
}

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

/* --- WHATSAPP MODAL LIVE CHAT BUBBLE --- */
.wa-chat-preview {
  background: #e5ddd5;
  background-image: radial-gradient(#d1c7bc 1px, transparent 1px);
  background-size: 16px 16px;
  border-radius: 12px;
  padding: 10px 12px;
  margin: 8px 0;
  position: relative;
  max-height: 120px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.wa-chat-preview::-webkit-scrollbar {
  width: 5px;
}

.wa-chat-preview::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.wa-bubble-sent {
  background: #dcf8c6;
  border-radius: 10px 10px 0 10px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #111b21;
  max-width: 96%;
  margin-left: auto;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  white-space: pre-wrap;
  position: relative;
}

.wa-bubble-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 9.5px;
  color: #667781;
  margin-top: 3px;
}

.wa-bubble-footer i {
  color: #53bdeb;
}

/* Variable Chips In Modal */
.variable-chip-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-family: monospace;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.15s ease;
}

.variable-chip-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

/* --- KPI GRID FOR MASTER SPV & KACAB (LUXURY EXECUTIVE CARDS) --- */
.kpi-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

@media (max-width: 1200px) {
  .kpi-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (max-width: 480px) {
  .kpi-grid-5 {
    grid-template-columns: 1fr;
  }
}

.kpi-grid-5 .kpi-card,
.fu-kpi-card {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 18px !important;
  padding: 16px 18px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-shadow: 0 4px 16px -2px rgba(13, 27, 62, 0.05) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  cursor: default;
}

.kpi-grid-5 .kpi-card::before,
.fu-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: transparent;
  transition: all 0.25s ease;
}

.kpi-grid-5 .kpi-card.card-blue::before,
.fu-kpi-card.card-blue::before {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}
.kpi-grid-5 .kpi-card.card-amber::before,
.fu-kpi-card.card-amber::before {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.kpi-grid-5 .kpi-card.card-cyan::before,
.fu-kpi-card.card-cyan::before {
  background: linear-gradient(90deg, #06b6d4, #38bdf8);
}
.kpi-grid-5 .kpi-card.card-purple::before,
.fu-kpi-card.card-purple::before {
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}
.kpi-grid-5 .kpi-card.card-emerald::before,
.fu-kpi-card.card-emerald::before {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.kpi-grid-5 .kpi-card:hover,
.fu-kpi-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 28px -4px rgba(13, 27, 62, 0.12) !important;
  border-color: #cbd5e1 !important;
}

.fu-kpi-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
}

.fu-kpi-lbl {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

.fu-kpi-icon-wrap {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  color: #ffffff !important;
  flex-shrink: 0 !important;
  transition: transform 0.25s ease !important;
}

.kpi-grid-5 .kpi-card:hover .fu-kpi-icon-wrap,
.fu-kpi-card:hover .fu-kpi-icon-wrap {
  transform: scale(1.08);
}

/* Icon Gradients with Glowing Soft Shadows */
.fu-kpi-icon-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
}
.fu-kpi-icon-amber {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35) !important;
}
.fu-kpi-icon-cyan {
  background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%) !important;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.35) !important;
}
.fu-kpi-icon-purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%) !important;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35) !important;
}
.fu-kpi-icon-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35) !important;
}

.fu-kpi-val {
  font-size: 28px !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  line-height: 1.1 !important;
  letter-spacing: -0.5px !important;
  margin: 10px 0 6px !important;
  font-feature-settings: "tnum";
}

.fu-kpi-sub {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-top: auto !important;
}

.fu-badge-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  padding: 3px 8px !important;
  border-radius: 9999px !important;
  line-height: 1.2 !important;
}

.pill-blue {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border: 1px solid #bfdbfe !important;
}
.pill-amber {
  background: #fffbeb !important;
  color: #b45309 !important;
  border: 1px solid #fde68a !important;
}
.pill-cyan {
  background: #ecfeff !important;
  color: #0369a1 !important;
  border: 1px solid #a5f3fc !important;
}
.pill-purple {
  background: #f5f3ff !important;
  color: #6d28d9 !important;
  border: 1px solid #ddd6fe !important;
}
.pill-emerald {
  background: #f0fdf4 !important;
  color: #15803d !important;
  border: 1px solid #bbf7d0 !important;
}

/* --- MASTER TABLE STYLES (ULTRA-POLISHED) --- */
.followup-table-wrap {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--fu-radius-lg);
  overflow: hidden;
  box-shadow: var(--fu-shadow-card);
  margin-bottom: 24px;
}

.followup-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 12.5px;
}

.followup-table thead th {
  background: #f8fafc;
  padding: 14px 18px;
  color: #475569;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.6px;
  border-bottom: 1.5px solid #e2e8f0;
  white-space: nowrap;
}

.followup-table tbody td {
  padding: 16px 18px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
  transition: background 0.15s ease;
}

.followup-table tbody tr:hover td {
  background: #fbfcfe;
}

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

/* Custom Table Select (No Clipping, Elegant Rounded Pills) */
.fu-table-select {
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fu-table-select:hover {
  background: #ffffff;
  border-color: #cbd5e1;
}

.fu-table-select:focus {
  background: #ffffff;
  border-color: var(--fu-crimson);
  box-shadow: 0 0 0 3px rgba(215, 18, 58, 0.1);
}

/* Customer Avatar Circle */
.cust-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0d1b3e 0%, #1e3a8a 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(13, 27, 62, 0.18);
}

/* --- PAGINATION BAR & CONTROLS --- */
.fu-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #f8fafc;
  border-top: 1.5px solid #e2e8f0;
  flex-wrap: wrap;
  gap: 12px;
}

.fu-pagination-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #475569;
  font-weight: 600;
  flex-wrap: wrap;
}

.fu-pagination-info strong,
.fu-pagination-info b {
  color: #0f172a;
  font-weight: 800;
}

.fu-per-page-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}

.fu-per-page-select {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 800;
  color: #0f172a;
  outline: none;
  cursor: pointer;
}

.fu-pagination-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.fu-page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fu-page-btn:hover:not(:disabled):not(.active) {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-1px);
}

.fu-page-btn.active {
  background: linear-gradient(135deg, #d7123a 0%, #9f1239 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 2px 8px rgba(215, 18, 58, 0.35) !important;
  font-weight: 900 !important;
}

.fu-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #f8fafc;
  border-color: #e2e8f0;
}

.fu-page-ellipsis {
  padding: 0 4px;
  color: #94a3b8;
  font-weight: 800;
  font-size: 12px;
  user-select: none;
}

/* --- MODAL SYSTEM --- */
.modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: rgba(7, 13, 34, 0.72) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  display: none;
  align-items: flex-start !important;
  justify-content: center !important;
  padding: 16px 12px !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  z-index: 999999 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  box-sizing: border-box !important;
}

.modal-overlay.active,
.modal-overlay.show {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.modal-content {
  background: #ffffff !important;
  border-radius: var(--fu-radius-lg, 16px) !important;
  box-shadow: 0 24px 60px -8px rgba(7, 13, 34, 0.4) !important;
  border: 1.5px solid #e2e8f0 !important;
  width: 100% !important;
  max-width: 550px !important;
  max-height: calc(100dvh - 32px) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  position: relative !important;
  margin: auto !important;
  padding: 18px 20px !important;
  transform: translateY(0) scale(1) !important;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  box-sizing: border-box !important;
}

.modal-overlay.active .modal-content,
.modal-overlay.show .modal-content {
  transform: translateY(0) scale(1) !important;
  display: block !important;
}

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

.btn-close-modal {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

/* --- IMPORT PROGRESS MODAL (LUXURY CARD & ANIMATIONS) --- */
.import-progress-box {
  background: #ffffff !important;
  border-radius: 20px;
  padding: 30px 24px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 24px 60px -8px rgba(7, 13, 34, 0.4);
  border: 1.5px solid #e2e8f0;
  text-align: center;
  position: relative;
  transform: translateY(0) scale(1);
  animation: fuModalPop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fuModalPop {
  0% { transform: translateY(20px) scale(0.95); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.progress-track {
  width: 100%;
  height: 10px;
  background: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
  margin: 14px 0 6px;
  border: 1px solid #e2e8f0;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #d7123a 0%, #f43f5e 50%, #10b981 100%);
  border-radius: 9999px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.import-step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 5px;
  transition: all 0.2s ease;
}

.import-step-item i {
  font-size: 13px;
  width: 18px;
  text-align: center;
}

.import-step-item.active {
  background: #eff6ff;
  color: #1e40af;
  font-weight: 700;
  border: 1px solid #bfdbfe;
}

.import-step-item.done {
  background: #f0fdf4;
  color: #15803d;
  font-weight: 700;
  border: 1px solid #bbf7d0;
}

/* --- TAM FOLLOW-UP RESPONSES BOX & STEPPED FUNNEL --- */
.tam-fu-box {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  margin: 12px 0 14px 0;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.tam-fu-box:hover {
  border-color: #cbd5e1;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.tam-fu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #e2e8f0;
  gap: 10px;
  flex-wrap: wrap;
}

.tam-fu-title {
  font-size: 12.5px;
  font-weight: 900;
  color: #0d1b3e;
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: -0.2px;
}

.tam-fu-title i {
  color: var(--fu-crimson);
  font-size: 14px;
}

/* Local Time / Status Badge */
.fu-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  color: #475569;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 3px 9px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.fu-date-badge.recorded {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.fu-date-badge.empty {
  background: #f8fafc;
  color: #94a3b8;
  border-color: #e2e8f0;
}

/* Stepped Funnel Grid (4 TAM Pillars) */
.fu-funnel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

@media (max-width: 520px) {
  .fu-funnel-grid {
    grid-template-columns: 1fr;
  }
}

.fu-step-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 0;
}

.fu-step-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(13, 27, 62, 0.06);
}

.fu-step-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.fu-step-num {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #0d1b3e;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(13, 27, 62, 0.2);
}

.fu-step-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.fu-step-name {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.fu-step-desc {
  font-size: 9.5px;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
  line-height: 1.2;
}

/* Modern Segmented Control Buttons (50% - 50% Full-Width Grid) */
.fu-segmented-btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 9px;
  gap: 3px;
  border: 1px solid #e2e8f0;
  width: 100%;
  box-sizing: border-box;
}

.fu-tog-btn {
  border: none;
  background: transparent;
  padding: 6px 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  line-height: 1;
}

.fu-tog-btn:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.7);
}

.fu-tog-btn.active-yes {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
}

.fu-tog-btn.active-no {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important;
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.35);
}

/* Remarks & Status Row */
.fu-controls-row {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 8px;
  margin-bottom: 10px;
}

@media (max-width: 520px) {
  .fu-controls-row {
    grid-template-columns: 1fr;
  }
}

.fu-select-remarks {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  padding: 9px 12px !important;
  border-radius: 10px !important;
  border: 1.5px solid #cbd5e1 !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
  min-width: 0;
}

.fu-select-remarks:focus {
  border-color: #d7123a !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(215, 18, 58, 0.15) !important;
}

.fu-select-status {
  font-size: 11.5px !important;
  font-weight: 800 !important;
  padding: 9px 10px !important;
  border-radius: 10px !important;
  border: 1.5px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #0f172a !important;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
  min-width: 0;
}

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

/* Quick Notes Preset Chips (1-Click Suggestions) */
.fu-quick-chips-wrapper {
  margin-bottom: 8px;
}

.fu-quick-chips-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.fu-quick-chips-scroll {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.fu-quick-chips-scroll::-webkit-scrollbar {
  display: none;
}

.fu-chip-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 8px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.fu-chip-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
  transform: translateY(-1px);
}

.fu-chip-btn:active {
  transform: scale(0.96);
}

.fu-chip-clear {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  color: #dc2626 !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 800 !important;
}

.fu-chip-clear:hover {
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
  color: #991b1b !important;
  transform: translateY(-1px);
}

.fu-btn-clear-inline {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #64748b;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  z-index: 2;
}

.fu-btn-clear-inline:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: translateY(-50%) scale(1.1);
}

/* Note Input & Save Button Row */
.fu-note-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.fu-note-input {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
}

.fu-note-input:focus {
  border-color: var(--fu-crimson);
  box-shadow: 0 0 0 3px rgba(215, 18, 58, 0.12);
}

.fu-btn-save {
  padding: 9px 14px;
  font-size: 11.5px;
  font-weight: 800;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.fu-btn-save:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

.fu-btn-save:active {
  transform: scale(0.97);
}

/* --- SALES CRM TABLE VIEW (SPREADSHEET MODE) --- */
.sales-table-wrapper {
  background: #ffffff;
  border-radius: var(--fu-radius-lg);
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  overflow-x: auto;
  margin-top: 14px;
}

.sales-fu-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.sales-fu-table thead th {
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 16px;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.sales-fu-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  transition: background 0.15s ease;
}

.sales-fu-table tbody tr:hover td {
  background: #f8fafc;
}

.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-toggle-btn.active {
  background: #0d1b3e;
  color: #ffffff;
  border-color: #0d1b3e;
  box-shadow: 0 2px 8px rgba(13, 27, 62, 0.25);
}

.btn-close-modal:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #ef4444;
}

/* --- LOAD MORE & SKELETON SHIMMER (HIGH PERFORMANCE) --- */
.load-more-container {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 0 24px 0;
}

.btn-load-more-fu {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #0d1b3e;
  font-size: 13px;
  font-weight: 800;
  padding: 12px 28px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(13, 27, 62, 0.06);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-load-more-fu:hover {
  background: #0d1b3e;
  color: #ffffff;
  border-color: #0d1b3e;
  box-shadow: 0 4px 14px rgba(13, 27, 62, 0.2);
  transform: translateY(-2px);
}

.btn-load-more-fu:active {
  transform: translateY(0);
}

.skeleton-card-fu {
  background: #ffffff;
  border-radius: var(--fu-radius-lg);
  border: 1.5px solid #e2e8f0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.skeleton-card-fu::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  transform: translateX(-100%);
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: skeletonShimmer 1.5s infinite;
}

@keyframes skeletonShimmer {
  100% {
    transform: translateX(100%);
  }
}

.skeleton-line {
  height: 12px;
  background: #e2e8f0;
  border-radius: 6px;
}

/* --- POOL REBUTAN PROSPEK (PREMIUM EXECUTIVE REDESIGN) --- */
.sub-nav-fu-wrapper {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  background: #ffffff;
  padding: 6px;
  border-radius: 16px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.sub-nav-fu-btn {
  flex: 1;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sub-nav-fu-btn:hover {
  background: #f8fafc;
  color: #0d1b3e;
}

.sub-nav-fu-btn.active {
  background: #0d1b3e;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(13, 27, 62, 0.25);
}

.sub-nav-fu-btn.pool-tab.active {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.4);
}

.badge-pulse-fire {
  background: #ea580c;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 9999px;
  box-shadow: 0 0 12px rgba(234, 88, 12, 0.6);
  animation: flamePulse 2s infinite;
}

@keyframes flamePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(234, 88, 12, 0.5); }
  50% { transform: scale(1.06); box-shadow: 0 0 16px rgba(234, 88, 12, 0.85); }
}

.pool-rebutan-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #371b58 50%, #431407 100%);
  border-radius: 18px;
  padding: 18px 24px;
  color: #ffffff;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  box-shadow: 0 8px 24px rgba(67, 20, 7, 0.25);
  border: 1.5px solid rgba(254, 215, 170, 0.25);
}

.orphan-card-banner {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1.5px solid #fed7aa;
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.orphan-fire-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 900;
  color: #c2410c;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.orphan-ready-pill {
  font-size: 10.5px;
  font-weight: 800;
  background: #ea580c;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.3);
}

.ex-sales-dossier-card {
  background: #fffbf7;
  border: 1.5px solid #fdba74;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 12px 0;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.06);
}

.dossier-header {
  font-size: 11.5px;
  font-weight: 800;
  color: #9a3412;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dossier-chips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.dossier-chip {
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 4px 6px;
  text-align: center;
  font-size: 10px;
}

.dossier-chip .chip-lbl {
  color: #78716c;
  font-weight: 700;
  margin-bottom: 1px;
}

.dossier-chip .chip-val {
  font-weight: 900;
  font-size: 11px;
}

.dossier-quote-box {
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-left: 3px solid #ea580c;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 11.5px;
  color: #431407;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 6px;
}

.btn-claim-lead-premium {
  width: 100%;
  background: linear-gradient(135deg, #ea580c 0%, #d97706 100%);
  color: #ffffff;
  border: none;
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.2px;
}

.btn-claim-lead-premium:hover {
  background: linear-gradient(135deg, #c2410c 0%, #b45309 100%);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.5);
  transform: translateY(-2px);
}

.btn-claim-lead-premium:active {
  transform: translateY(0);
}

/* ============================================================
   ULTRA-PREMIUM MODERN OPERATION LOADER (DISTRIBUTION / SYNC)
   ============================================================ */
.fu-loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(13, 27, 62, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fuFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fu-loader-card {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  padding: 34px 28px 28px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 60px -15px rgba(13, 27, 62, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  border: 1.5px solid rgba(226, 232, 240, 0.85);
  animation: fuPopIn 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  overflow: hidden;
}

.fu-loader-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #d7123a, #f97316, #3b82f6, #10b981, #d7123a);
  background-size: 300% 100%;
  animation: fuGradientShift 3s linear infinite;
}

/* Center Pulse Icon with Dual Spinning Rings */
.fu-loader-icon-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fu-loader-icon-center {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  z-index: 2;
  position: relative;
  transition: all 0.3s ease;
}

.fu-loader-icon-center.red-theme {
  background: linear-gradient(135deg, #d7123a 0%, #b91c1c 100%);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(215, 18, 58, 0.35);
}

.fu-loader-icon-center.blue-theme {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

.fu-loader-icon-center.emerald-theme {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(5, 150, 105, 0.35);
}

.fu-loader-ring-outer {
  position: absolute;
  inset: -6px;
  border: 2px dashed rgba(215, 18, 58, 0.35);
  border-radius: 28px;
  animation: fuSpin 6s linear infinite;
}

.fu-loader-ring-pulse {
  position: absolute;
  inset: -2px;
  border: 2.5px solid transparent;
  border-top-color: #d7123a;
  border-right-color: #d7123a;
  border-radius: 24px;
  animation: fuSpin 1.1s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

.fu-loader-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 12px;
  border-radius: 9999px;
  margin-bottom: 8px;
}

.fu-loader-tag.red {
  background: #fef2f2;
  color: #d7123a;
  border: 1px solid #fecaca;
}

.fu-loader-tag.blue {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.fu-loader-tag.emerald {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.fu-loader-title {
  font-size: 19px;
  font-weight: 900;
  color: #0d1b3e;
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
}

.fu-loader-subtitle {
  font-size: 12.5px;
  color: #64748b;
  margin: 0 0 20px 0;
  line-height: 1.55;
}

/* Modern Track & Shimmer Progress */
.fu-loader-track {
  width: 100%;
  height: 8px;
  background: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
}

.fu-loader-bar {
  height: 100%;
  width: 65%;
  border-radius: 9999px;
  position: relative;
  overflow: hidden;
  transition: width 0.35s ease;
}

.fu-loader-bar.red {
  background: linear-gradient(90deg, #d7123a 0%, #f43f5e 100%);
}

.fu-loader-bar.blue {
  background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
}

.fu-loader-bar.emerald {
  background: linear-gradient(90deg, #059669 0%, #10b981 100%);
}

.fu-loader-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.7) 50%, transparent 100%);
  animation: fuShimmer 1.4s infinite;
}

.fu-loader-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
}

.fu-loader-dots::after {
  content: '...';
  display: inline-block;
  animation: fuDots 1.5s infinite steps(4, end);
  width: 14px;
  text-align: left;
}

@keyframes fuGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fuShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

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

@keyframes fuPopIn {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes fuDots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

/* =============================================================
   RESPONSIVE MODAL & LAYOUT RULES (MOBILE, TABLET, DESKTOP)
   ============================================================= */
@media (max-width: 991px), (max-height: 760px) {
  .modal-overlay {
    padding: 10px 8px !important;
  }

  .modal-content {
    max-width: 96% !important;
    max-height: calc(100dvh - 20px) !important;
    padding: 14px 16px !important;
    border-radius: 14px !important;
  }

  .modal-header h3 {
    font-size: 14.5px !important;
  }

  .wa-chat-preview {
    max-height: 95px !important;
    padding: 8px 10px !important;
    margin: 6px 0 !important;
  }

  .wa-bubble-sent {
    font-size: 11px !important;
    padding: 5px 8px !important;
  }

  .variable-chip-btn {
    font-size: 9.5px !important;
    padding: 2px 5px !important;
  }

  .btn-wa-action {
    padding: 10px 14px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 480px) {
  .modal-overlay {
    padding: 6px !important;
  }

  .modal-content {
    max-width: 100% !important;
    max-height: calc(100dvh - 12px) !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
  }
}

/* --- CUSTOMER NUMBERING SYSTEM (ELITE AUTOMOTIVE) --- */
.fu-card-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 7px;
  border-radius: 7px;
  background: linear-gradient(135deg, #0d1b3e 0%, #1e293b 100%);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: -0.2px;
  box-shadow: 0 2px 6px rgba(13, 27, 62, 0.25);
  font-family: 'Plus Jakarta Sans', sans-serif;
  vertical-align: middle;
  flex-shrink: 0;
}

.fu-card-num-badge.orphan-badge {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.3);
}

.fu-row-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 6px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  font-size: 11.5px;
  font-weight: 800;
  border: 1px solid #e2e8f0;
  font-family: 'Plus Jakarta Sans', monospace, sans-serif;
  transition: all 0.2s ease;
}

tr:hover .fu-row-num-badge {
  background: #0d1b3e;
  color: #ffffff;
  border-color: #0d1b3e;
}

/* ================================================================
   EXECUTIVE DASHBOARD (GOOGLE SPREADSHEET SYNCED) - KACAB PANEL
   ================================================================ */

/* View Switcher Bar */
.fu-view-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.fu-view-segmented {
  display: inline-flex;
  background: #e2e8f0;
  padding: 4px;
  border-radius: 14px;
  gap: 4px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.fu-view-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.fu-view-tab:hover {
  color: #0f172a;
}

.fu-view-tab.active {
  background: #ffffff;
  color: var(--fu-crimson);
  box-shadow: 0 4px 12px rgba(13, 27, 62, 0.08);
}

.fu-view-tab .badge-count {
  background: #f1f5f9;
  color: #0f172a;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 800;
}

.fu-view-tab.active .badge-count {
  background: #ffe4e6;
  color: var(--fu-crimson);
}

/* Live Sync Header Card */
.fu-sync-banner {
  background: linear-gradient(135deg, #0d1b3e 0%, #1e1014 50%, #3b0d19 100%);
  color: #ffffff;
  border-radius: 18px;
  padding: 16px 22px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(13, 27, 62, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.fu-sync-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fu-sync-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.15);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.fu-sync-info h4 {
  font-size: 14.5px;
  font-weight: 800;
  margin: 0 0 4px 0;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fu-sync-info p {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
}

.fu-sync-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: fuPulse 2s infinite;
}

@keyframes fuPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.fu-model-filter-pills {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.fu-model-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.fu-model-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.fu-model-btn.active {
  background: #d7123a;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(215, 18, 58, 0.4);
}

/* 7 Funnel KPI Grid */
.fu-funnel-grid-7 {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

@media (max-width: 1400px) {
  .fu-funnel-grid-7 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 800px) {
  .fu-funnel-grid-7 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.fu-funnel-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 16px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(13, 27, 62, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.fu-funnel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(13, 27, 62, 0.12);
  border-color: #cbd5e1;
}

.fu-funnel-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--funnel-accent, #3b82f6);
}

.fu-funnel-card.step-1 { --funnel-accent: linear-gradient(90deg, #3b82f6, #60a5fa); }
.fu-funnel-card.step-2 { --funnel-accent: linear-gradient(90deg, #0ea5e9, #38bdf8); }
.fu-funnel-card.step-3 { --funnel-accent: linear-gradient(90deg, #06b6d4, #22d3ee); }
.fu-funnel-card.step-4 { --funnel-accent: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.fu-funnel-card.step-5 { --funnel-accent: linear-gradient(90deg, #f59e0b, #fbbf24); }
.fu-funnel-card.step-6 { --funnel-accent: linear-gradient(90deg, #d7123a, #f43f5e); }
.fu-funnel-card.step-7 { --funnel-accent: linear-gradient(90deg, #10b981, #34d399); }

.fu-fcard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.fu-fcard-step-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
  background: #f8fafc;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.fu-fcard-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

.fu-fcard-name {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 4px;
}

.fu-fcard-val {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
  margin-bottom: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.5px;
}

.fu-fcard-ratio {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  width: fit-content;
}

.fu-fcard-ratio.ratio-high {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}

.fu-fcard-progress-bar {
  width: 100%;
  height: 5px;
  background: #f1f5f9;
  border-radius: 3px;
  margin-top: 10px;
  overflow: hidden;
}

.fu-fcard-progress-fill {
  height: 100%;
  background: var(--funnel-accent, #3b82f6);
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Charts Grid Layout */
.fu-charts-row-2 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.fu-charts-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 1100px) {
  .fu-charts-row-2, .fu-charts-row-3 {
    grid-template-columns: 1fr;
  }
}

.fu-chart-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 6px 24px rgba(13, 27, 62, 0.05);
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.fu-chart-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid #f1f5f9;
}

.fu-chart-card-head h3 {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fu-chart-card-head .card-sub {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
}

.fu-chart-canvas-wrap {
  position: relative;
  flex: 1;
  min-height: 250px;
  width: 100%;
}

/* Performance Tables */
.fu-table-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 6px 24px rgba(13, 27, 62, 0.05);
  margin-bottom: 26px;
  overflow: hidden;
}

.fu-table-head-bar {
  padding: 18px 24px;
  border-bottom: 1.5px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.fu-table-head-bar h3 {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fu-analytics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.fu-analytics-table th {
  background: #0d1b3e;
  color: #ffffff;
  font-weight: 700;
  padding: 14px 18px;
  text-align: left;
  white-space: nowrap;
  font-size: 11.5px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.fu-analytics-table th.num, .fu-analytics-table td.num {
  text-align: right;
}

.fu-analytics-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  font-weight: 600;
  vertical-align: middle;
  transition: background 0.15s ease;
}

.fu-analytics-table tbody tr:hover td {
  background: #f8fafc;
}

.fu-cluster-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  background: #f8fafc;
  color: #0f172a;
  border: 1.5px solid #e2e8f0;
  white-space: nowrap;
}

.fu-cluster-badge.cl-1 { background: #f8fafc; color: #475569; border-color: #cbd5e1; }
.fu-cluster-badge.cl-2 { background: #eef2ff; color: #4338ca; border-color: #c7d2fe; }
.fu-cluster-badge.cl-3 { background: #ecfeff; color: #0e7490; border-color: #a5f3fc; }
.fu-cluster-badge.cl-4 { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
.fu-cluster-badge.cl-5 { background: #fefce8; color: #a16207; border-color: #fde047; }
.fu-cluster-badge.cl-6 { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.fu-cluster-badge.cl-7 { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.fu-cluster-badge.cl-8 { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.fu-cluster-badge.cl-9 { background: #faf5ff; color: #7e22ce; border-color: #e9d5ff; }

.fu-row-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 800;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

.fu-spk-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  background: linear-gradient(135deg, #ecfdf5 0%, #dcfce7 100%) !important;
  color: #15803d !important;
  font-weight: 800 !important;
  font-size: 11.5px !important;
  padding: 5px 12px !important;
  border-radius: 20px !important;
  border: 1.5px solid #86efac !important;
  box-shadow: 0 2px 6px rgba(22, 101, 52, 0.08) !important;
  min-width: 72px !important;
}

.fu-do-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  background: linear-gradient(135deg, #fefce8 0%, #fef08a 100%) !important;
  color: #854d0e !important;
  font-weight: 800 !important;
  font-size: 11.5px !important;
  padding: 5px 12px !important;
  border-radius: 20px !important;
  border: 1.5px solid #fde047 !important;
  box-shadow: 0 2px 6px rgba(133, 77, 14, 0.08) !important;
  min-width: 72px !important;
}

.fu-hot-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  background: #fff7ed !important;
  color: #ea580c !important;
  font-weight: 800 !important;
  font-size: 11.5px !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  border: 1px solid #fed7aa !important;
}

.fu-rate-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.fu-rate-track {
  width: 64px;
  height: 5px;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.fu-rate-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* ================================================================
   MOBILE RESPONSIVENESS (KACAB EXECUTIVE FOLLOW-UP CRM)
   ================================================================ */
@media (max-width: 992px) {
  .kcb-main {
    padding: 16px 12px 32px !important;
    width: 100% !important;
  }

  .kcb-topbar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding-bottom: 14px !important;
    margin-bottom: 16px !important;
  }

  .kcb-topbar h2 {
    font-size: 18px !important;
    line-height: 1.3 !important;
  }

  .kcb-topbar .page-sub {
    font-size: 12px !important;
  }

  .fu-view-nav-wrap {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    margin-bottom: 18px !important;
  }

  .fu-view-segmented {
    width: 100% !important;
    display: flex !important;
  }

  .fu-view-tab {
    flex: 1 !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 10px 8px !important;
    font-size: 12px !important;
  }

  .fu-sync-banner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    padding: 16px 14px !important;
    border-radius: 16px !important;
  }

  .fu-sync-banner-left {
    width: 100% !important;
  }

  .fu-sync-info h4 {
    font-size: 13.5px !important;
  }

  .fu-model-filter-pills {
    width: 100% !important;
    display: flex !important;
    justify-content: stretch !important;
  }

  .fu-model-btn {
    flex: 1 !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 8px 6px !important;
    font-size: 11.5px !important;
  }

  .fu-charts-row-2,
  .fu-charts-row-3 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin-bottom: 18px !important;
  }

  .fu-chart-card {
    padding: 16px !important;
    border-radius: 16px !important;
  }

  .fu-chart-canvas-wrap {
    min-height: 220px !important;
    height: 230px !important;
  }

  .fu-table-card {
    border-radius: 16px !important;
    margin-bottom: 20px !important;
  }

  .fu-table-head-bar {
    padding: 14px 16px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }

  .fu-table-head-bar h3 {
    font-size: 13.5px !important;
  }

  .fu-analytics-table {
    min-width: 680px !important;
  }

  .fu-analytics-table th,
  .fu-analytics-table td {
    padding: 11px 12px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 640px) {
  .fu-funnel-grid-7 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 18px !important;
  }

  .fu-funnel-card {
    padding: 14px 12px !important;
    border-radius: 14px !important;
  }

  .fu-fcard-val {
    font-size: 20px !important;
    margin-bottom: 6px !important;
  }

  .fu-fcard-name {
    font-size: 11px !important;
  }

  .fu-fcard-step-tag {
    font-size: 9.5px !important;
    padding: 2px 6px !important;
  }

  .fu-fcard-icon {
    width: 26px !important;
    height: 26px !important;
    font-size: 11px !important;
  }

  .fu-fcard-ratio {
    font-size: 10px !important;
    padding: 3px 6px !important;
  }

  .fu-view-tab {
    font-size: 11px !important;
    padding: 8px 4px !important;
  }

  .fu-view-tab .badge-count {
    display: none !important;
  }
}

@media (max-width: 400px) {
  .fu-funnel-grid-7 {
    grid-template-columns: 1fr !important;
  }
}

.fu-table-scroll-hint {
  display: none;
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
  padding: 8px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

@media (max-width: 992px) {
  .fu-table-scroll-hint {
    display: flex !important;
    align-items: center;
    gap: 6px;
  }
}

