/* =========================================================
   OVERVIEW SUMMARY KPI CARDS (4 Cards with 3D PNG Icons)
   Strictly scoped to #overview top 4 summary cards.
   Does not affect #social, #sims, sidebar, or global styles.
   ========================================================= */

.overview-kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin-bottom: 24px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.overview-kpi-card {
  position: relative !important;
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.92) !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
  padding: 14px 16px 13px 16px !important;
  min-height: 132px !important;
  height: 132px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  transform: none !important;
  transition: box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.overview-kpi-card:hover {
  transform: none !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
  border-color: #cbd5e1 !important;
}

/* Neutralize all hover lift, floating, rotating, scaling */
.overview-kpi-card:hover,
.overview-kpi-card *:hover,
.overview-kpi-illustration,
.overview-kpi-illustration:hover,
.overview-kpi-visual-wrap,
.overview-kpi-visual-wrap:hover,
.overview-kpi-col-visual,
.overview-kpi-col-visual:hover {
  transform: none !important;
  animation: none !important;
}

/* Header Row: Full width at top, small rounded icon box + title */
.overview-kpi-header {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  z-index: 2 !important;
  position: relative !important;
}

.overview-kpi-icon-box {
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.overview-kpi-icon-box svg {
  width: 16px !important;
  height: 16px !important;
}

.overview-kpi-icon-box--blue {
  background: #e0f2fe !important;
  color: #0284c7 !important;
}

.overview-kpi-icon-box--purple {
  background: #f3e8ff !important;
  color: #9333ea !important;
}

.overview-kpi-icon-box--pink {
  background: #ffe4e6 !important;
  color: #e11d48 !important;
}

.overview-kpi-title {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  white-space: nowrap !important;
  letter-spacing: -0.01em !important;
  line-height: 1.2 !important;
}

/* Left Content Area (Middle & Bottom) */
.overview-kpi-content-left {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  z-index: 2 !important;
  position: relative !important;
  max-width: 54% !important;
  min-width: 0 !important;
}

/* Body: Number with identical vertical baseline */
.overview-kpi-body {
  margin: 0 0 5px 0 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding: 0 !important;
}

.overview-kpi-value {
  font-size: 2.15rem !important;
  font-weight: 800 !important;
  color: #0a1128 !important;
  line-height: 1 !important;
  letter-spacing: -0.03em !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  white-space: nowrap !important;
}

/* Followers count e.g. 163,553 has 7 chars */
.overview-kpi-value--followers {
  font-size: 1.62rem !important;
  letter-spacing: -0.03em !important;
}

/* Footer: Badges / Subtext on identical vertical baseline */
.overview-kpi-footer {
  display: flex !important;
  align-items: center !important;
  min-height: 22px !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.overview-kpi-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 3px 8px !important;
  border-radius: 9999px !important;
  font-size: 0.70rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

.overview-kpi-badge--green {
  background: #f0fdf4 !important;
  color: #15803d !important;
  border: 1px solid #dcfce7 !important;
}

.overview-kpi-badge--red {
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border: 1px solid #fee2e2 !important;
}

.overview-kpi-dot {
  width: 5px !important;
  height: 5px !important;
  border-radius: 50% !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

.overview-kpi-dot--green {
  background: #16a34a !important;
}

.overview-kpi-dot--red {
  background: #dc2626 !important;
}

.overview-kpi-arrow-up {
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  line-height: 1 !important;
  color: #15803d !important;
}

.overview-kpi-subtext {
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  color: #64748b !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}

/* Right Column: 3D PNG Illustration positioned precisely according to reference */
.overview-kpi-col-visual {
  position: absolute !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-end !important;
  z-index: 1 !important;
  pointer-events: none !important;
  user-select: none !important;
}

.overview-kpi-card--web .overview-kpi-col-visual {
  right: 12px !important;
  bottom: 14px !important;
}

.overview-kpi-card--followers .overview-kpi-col-visual {
  right: 14px !important;
  bottom: 23px !important;
}

.overview-kpi-card--sim .overview-kpi-col-visual {
  right: 16px !important;
  bottom: 22px !important;
}

.overview-kpi-card--accounts .overview-kpi-col-visual {
  right: 16px !important;
  bottom: 20px !important;
}

.overview-kpi-visual-wrap {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-end !important;
  pointer-events: none !important;
  user-select: none !important;
}

/* Sized to match target reference 100% with zero clipping */
.overview-kpi-visual-wrap--globe {
  width: 96px !important;
  height: 76px !important;
}

.overview-kpi-visual-wrap--followers {
  width: 88px !important;
  height: 62px !important;
}

.overview-kpi-visual-wrap--sim {
  width: 68px !important;
  height: 72px !important;
}

.overview-kpi-visual-wrap--accounts {
  width: 82px !important;
  height: 77px !important;
}

.overview-kpi-illustration {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: bottom right !important;
  display: block !important;
  pointer-events: none !important;
  user-select: none !important;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .overview-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}

@media (max-width: 640px) {
  .overview-kpi-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .overview-kpi-card {
    min-height: 126px !important;
    height: 126px !important;
    padding: 12px 14px 12px 16px !important;
  }
  .overview-kpi-card--web .overview-kpi-col-visual {
    right: 10px !important;
    bottom: 10px !important;
  }
  .overview-kpi-visual-wrap--globe {
    width: 98px !important;
    height: 78px !important;
  }
  .overview-kpi-card--followers .overview-kpi-col-visual {
    right: 14px !important;
    bottom: 16px !important;
  }
  .overview-kpi-visual-wrap--followers {
    width: 88px !important;
    height: 62px !important;
  }
  .overview-kpi-card--sim .overview-kpi-col-visual {
    right: 16px !important;
    bottom: 18px !important;
  }
  .overview-kpi-visual-wrap--sim {
    width: 70px !important;
    height: 74px !important;
  }
  .overview-kpi-card--accounts .overview-kpi-col-visual {
    right: 14px !important;
    bottom: 16px !important;
  }
  .overview-kpi-visual-wrap--accounts {
    width: 80px !important;
    height: 75px !important;
  }
  .overview-kpi-value {
    font-size: 1.85rem !important;
  }
  .overview-kpi-value--followers {
    font-size: 1.50rem !important;
  }
}
