.deals-kpi-strip {
  overflow: visible;
  margin-bottom: 1.25rem;
  font-family: 'Google Sans', system-ui, -apple-system, sans-serif;
}

.deals-kpi-strip__primary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.deals-kpi-strip__secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
  padding-top: 0.75rem;
}

.deals-kpi-strip__more {
  margin-top: 0.75rem;
}

.deals-kpi-strip__more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #3b339c;
  user-select: none;
}

.deals-kpi-strip__more-toggle::-webkit-details-marker {
  display: none;
}

.deals-kpi-strip__more-toggle::after {
  content: '';
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(135deg);
  transition: transform 0.15s ease;
}

.deals-kpi-strip__more[open] .deals-kpi-strip__more-toggle::after {
  transform: rotate(45deg);
}

.deals-kpi-strip__more-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #3b339c;
  background: #e2e7fd;
}

.deals-kpi-strip__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.375rem;
  width: 100%;
  min-width: 0;
  min-height: 8.75rem;
  max-height: 9.6875rem;
  padding: 1.25rem 1.375rem;
  border-radius: 0.875rem;
  border: 1px solid #e2e7fd;
  background: #f8fafc;
  box-shadow: none;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.deals-kpi-strip__card:hover {
  border-color: #7a73d1;
  background: #e2e7fd;
}

.deals-kpi-strip__card:focus {
  outline: none;
}

.deals-kpi-strip__card:focus-visible {
  border-color: #7a73d1;
  outline: 2px solid rgb(122 115 209 / 0.35);
  outline-offset: 1px;
}

.deals-kpi-strip__card--active {
  border-color: #7a73d1;
  background: #e2e7fd;
  box-shadow: inset 0 0 0 1px rgb(122 115 209 / 0.2);
}

.deals-kpi-strip__card--compact {
  min-height: 5.5rem;
  max-height: none;
  padding: 0.875rem 1rem;
}

.deals-kpi-strip__card--compact .deals-kpi-strip__value {
  font-size: 1.5rem;
}

.deals-kpi-strip__card--compact .deals-kpi-strip__label {
  font-size: 0.75rem;
}

.deals-kpi-strip__card--zero {
  opacity: 0.72;
}

.deals-kpi-strip__card--zero .deals-kpi-strip__value {
  color: #64748b;
}

.deals-kpi-strip__card--skeleton {
  background: rgb(var(--color-neutral-100));
  border-color: transparent;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.deals-kpi-strip__active-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 0.125rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 600;
  color: #3b339c;
  background: rgb(122 115 209 / 0.15);
}

.deals-kpi-strip__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.375rem;
}

.deals-kpi-strip__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  color: #3b339c;
  background: transparent;
}

.deals-kpi-strip__icon--whatsapp {
  color: #22c55e;
}

.deals-kpi-strip__icon--ai,
.deals-kpi-strip__icon--ai_inbound_leads {
  color: #7c3aed;
}

.deals-kpi-strip__dot {
  display: block;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  background: #3b339c;
}

.deals-kpi-strip__label {
  min-width: 0;
  flex: 1;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  color: #3b339c;
}

.deals-kpi-strip__value {
  font-size: 2.125rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #3b339c;
}

.deals-kpi-strip__subtitle {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.2;
}

.deals-kpi-strip__subtitle--neutral {
  color: #94a3b8;
}

.deals-kpi-strip__subtitle--up {
  color: #16a34a;
}

.deals-kpi-strip__subtitle--down {
  color: #dc2626;
}

html.dark .deals-kpi-strip__more-toggle {
  color: #c7d2fe;
}

html.dark .deals-kpi-strip__more-count {
  color: #ddd6fe;
  background: rgb(91 33 182 / 0.35);
}

html.dark .deals-kpi-strip__card {
  border-color: rgb(122 115 209 / 0.32);
  background: rgb(36 32 86);
  box-shadow: none;
}

html.dark .deals-kpi-strip__card:hover {
  border-color: rgb(122 115 209 / 0.62);
  background: rgb(49 44 112);
}

html.dark .deals-kpi-strip__card--active {
  border-color: #9d97e8;
  background: rgb(58 52 128);
  box-shadow: inset 0 0 0 1px rgb(122 115 209 / 0.35);
}

html.dark .deals-kpi-strip__card--zero {
  opacity: 0.85;
}

html.dark .deals-kpi-strip__card--zero .deals-kpi-strip__value {
  color: #94a3b8;
}

html.dark .deals-kpi-strip__card--skeleton {
  background: rgb(45 40 98);
  border-color: rgb(122 115 209 / 0.22);
}

html.dark .deals-kpi-strip__active-badge {
  color: #ddd6fe;
  background: rgb(122 115 209 / 0.28);
}

html.dark .deals-kpi-strip__label,
html.dark .deals-kpi-strip__value {
  color: #c7d2fe;
}

html.dark .deals-kpi-strip__icon {
  color: #a5b4fc;
  background: transparent;
}

html.dark .deals-kpi-strip__dot {
  background: #a5b4fc;
}

html.dark .deals-kpi-strip__icon--whatsapp {
  color: #4ade80;
}

html.dark .deals-kpi-strip__icon--ai,
html.dark .deals-kpi-strip__icon--ai_inbound_leads {
  color: #c4b5fd;
}

html.dark .deals-kpi-strip__subtitle--neutral {
  color: #94a3b8;
}

html.dark .deals-kpi-strip__subtitle--up {
  color: #4ade80;
}

html.dark .deals-kpi-strip__subtitle--down {
  color: #f87171;
}

@media (min-width: 480px) {
  .deals-kpi-strip__primary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .deals-kpi-strip__secondary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

@media (min-width: 1024px) {
  .deals-kpi-strip__primary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }

  .deals-kpi-strip__secondary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

@media (max-width: 379px) {
  .deals-kpi-strip__primary-grid,
  .deals-kpi-strip__secondary-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
