/* ================================================================
   SALES SUPERPOWERS 7.0 - LUXURY FIELD SALES TOOLKIT
   Tunas Toyota Kiara Condong (SFT)
   ================================================================ */

/* --- 1. SUB-NAV HARMONIZATION --- */
.sub-nav-fu-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  background: #e2e8f0;
  padding: 5px;
  border-radius: 16px;
}

@media (max-width: 768px) {
  .sub-nav-fu-wrapper {
    grid-template-columns: 1fr;
  }
}

.sub-nav-fu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.sub-nav-fu-btn:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.6);
}

.sub-nav-fu-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.sub-nav-fu-btn.radar-tab.active {
  background: linear-gradient(135deg, #0d1b3e 0%, #1e3a8a 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(13, 27, 62, 0.25);
}

/* --- 2. RADAR PROSPEK COMMAND CENTER (COCKPIT) --- */
.radar-cockpit-hero {
  background: linear-gradient(135deg, #070d22 0%, #0d1b3e 60%, #162a5b 100%);
  border: 1.5px solid rgba(59, 130, 246, 0.3);
  border-radius: 20px;
  padding: 22px 24px;
  color: #ffffff;
  margin-bottom: 20px;
  box-shadow: 0 15px 35px rgba(7, 13, 34, 0.35);
  position: relative;
  overflow: hidden;
}

.radar-cockpit-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(215, 18, 58, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.radar-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.radar-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.radar-sonar-mini {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(59, 130, 246, 0.5);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, #070d22 80%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.radar-sonar-mini::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(59, 130, 246, 0.7) 0deg, transparent 70deg);
  animation: radar-spin 2s linear infinite;
}

.radar-sonar-mini .center-blip {
  width: 10px;
  height: 10px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 14px #ef4444;
  z-index: 2;
  animation: pulse-dot 1.2s infinite;
}

@keyframes radar-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.8; }
}

.radar-gps-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  color: #93c5fd;
}

.radar-radius-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.radar-radius-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #cbd5e1;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.radar-radius-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.radar-radius-btn.active {
  background: linear-gradient(135deg, #d7123a 0%, #b80c2f 100%);
  color: #ffffff;
  border-color: #d7123a;
  box-shadow: 0 4px 14px rgba(215, 18, 58, 0.4);
}

.radar-search-box-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 9px 14px;
  margin-top: 14px;
}

.radar-search-box-wrap i {
  color: #94a3b8;
  font-size: 14px;
}

.radar-search-box-wrap input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 13px;
  width: 100%;
  outline: none;
  font-family: inherit;
}

.radar-search-box-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

/* --- 3. RADAR LEADS GRID & CARDS (EXECUTIVE FLIGHT CARDS) --- */
.radar-leads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}

@media (max-width: 768px) {
  .radar-leads-grid {
    grid-template-columns: 1fr;
  }
}

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

.radar-lead-card-deluxe:hover {
  border-color: #3b82f6;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(13, 27, 62, 0.1);
}

.radar-lead-card-deluxe::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: #d7123a;
}

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

.radar-customer-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.radar-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0d1b3e 0%, #1e3a8a 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(13, 27, 62, 0.15);
}

.radar-customer-name {
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}

.radar-district-tag {
  font-size: 11.5px;
  color: #64748b;
  margin: 2px 0 0 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.radar-dist-chip {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  padding: 5px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.radar-vehicle-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: #334155;
}

.radar-vehicle-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.radar-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-radar-map {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-radar-map:hover {
  background: #dbeafe;
  transform: translateY(-1px);
}

.btn-radar-wa {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  transition: all 0.2s;
}

.btn-radar-wa:hover {
  background: #059669;
  transform: translateY(-1px);
}

/* --- 4. LUXURY SMART OCR SCANNER BANNER --- */
.ocr-scanner-banner {
  background: linear-gradient(135deg, #070d22 0%, #0d1b3e 60%, #16305f 100%);
  border: 1.5px solid rgba(59, 130, 246, 0.3);
  border-radius: 18px;
  padding: 18px 22px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(13, 27, 62, 0.2);
  position: relative;
  overflow: hidden;
}

.ocr-scanner-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(215, 18, 58, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.ocr-scanner-banner:hover {
  border-color: #d7123a;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(215, 18, 58, 0.25);
}

.ocr-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 1;
}

.ocr-icon-glow {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #d7123a 0%, #990e24 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(215, 18, 58, 0.4);
  flex-shrink: 0;
  animation: pulse-dot 2s infinite;
}

.ocr-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #93c5fd;
  margin-bottom: 4px;
}

.ocr-banner-title {
  font-size: 15px;
  font-weight: 900;
  margin: 0;
  color: #ffffff;
  line-height: 1.2;
}

.ocr-banner-sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.8);
  margin: 3px 0 0 0;
  max-width: 440px;
}

.btn-ocr-action {
  background: linear-gradient(135deg, #d7123a 0%, #b80c2f 100%);
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 12.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(215, 18, 58, 0.35);
  z-index: 1;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-ocr-action:hover {
  background: #e11d48;
  transform: scale(1.03);
}

/* --- 5. SLEEK VOICE NOTE MIC TOOLBAR --- */
.voice-input-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.btn-voice-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f1f5f9;
  color: #334155;
  border: 1.5px solid #cbd5e1;
  padding: 6px 14px;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.btn-voice-pill:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
}

.btn-voice-pill.recording {
  background: #fee2e2;
  color: #dc2626;
  border-color: #f87171;
  animation: mic-glow 1s infinite alternate;
}

@keyframes mic-glow {
  from { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  to { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

.voice-wave-bars {
  display: none;
  align-items: center;
  gap: 3px;
  height: 14px;
}

.btn-voice-pill.recording .voice-wave-bars {
  display: inline-flex;
}

.voice-wave-bar {
  width: 2.5px;
  background: #dc2626;
  border-radius: 2px;
  animation: wave-anim 0.8s ease-in-out infinite alternate;
}

.voice-wave-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.voice-wave-bar:nth-child(2) { height: 14px; animation-delay: 0.2s; }
.voice-wave-bar:nth-child(3) { height: 9px; animation-delay: 0.3s; }
.voice-wave-bar:nth-child(4) { height: 12px; animation-delay: 0.4s; }

@keyframes wave-anim {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1.2); }
}

.voice-live-status-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 11.5px;
  color: #166534;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

/* --- 6. MORNING BRIEFING & DUE FOLLOW-UP ALERT --- */
.morning-briefing-banner {
  background: linear-gradient(135deg, #0d1b3e 0%, #1e3a8a 100%);
  border-radius: 18px;
  padding: 18px 20px;
  color: white;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 25px rgba(13, 27, 62, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.briefing-badge {
  background: #d7123a;
  color: white;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* --- 7. BATTLE CARD & OBJECTION HANDLING --- */
.battle-card-box {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.battle-header {
  background: linear-gradient(135deg, #0d1b3e 0%, #16305f 100%);
  color: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.battle-vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 20px;
  background: #f8fafc;
}

@media (max-width: 768px) {
  .battle-vs-grid {
    grid-template-columns: 1fr;
  }
}

.battle-item-toyota {
  background: #ffffff;
  border: 1.5px solid #d7123a;
  border-radius: 14px;
  padding: 16px;
}

.battle-item-rival {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 16px;
}

.objection-accordion {
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.2s;
}

.objection-accordion:hover {
  border-color: #cbd5e1;
}

.objection-trigger {
  padding: 15px 18px;
  font-weight: 800;
  font-size: 13.5px;
  color: #0f172a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: #ffffff;
}

.objection-trigger:hover {
  background: #f8fafc;
}

.objection-answer {
  padding: 18px 20px;
  background: #f0fdf4;
  border-top: 1px solid #dcfce7;
  font-size: 13px;
  color: #166534;
  line-height: 1.65;
}
