/* Accounts list overview cards */

.fxr-accounts-list-route .fxr-accounts-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.fxr-accounts-list-route .fxr-ov-card {
  position: relative;
  min-height: 136px;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 14px;
  padding: 16px 18px;
  background:
    linear-gradient(135deg, rgba(75, 141, 255, 0.12), transparent 52%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(8, 13, 24, 0.98));
  box-shadow: 0 16px 36px rgba(2, 8, 23, 0.24);
}

.fxr-accounts-list-route .fxr-ov-card::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -24px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: rgba(75, 141, 255, 0.13);
  pointer-events: none;
}

.fxr-accounts-list-route .fxr-ov-card.is-positive::after {
  background: rgba(25, 210, 124, 0.14);
}

.fxr-accounts-list-route .fxr-ov-card.is-negative::after {
  background: rgba(255, 88, 110, 0.14);
}

.fxr-accounts-list-route .fxr-ov-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: rgba(191, 211, 238, 0.82);
  font-size: 13px;
  font-weight: 750;
}

.fxr-accounts-list-route .fxr-ov-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 28px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.fxr-accounts-list-route .fxr-ov-icon--blue {
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.15);
}

.fxr-accounts-list-route .fxr-ov-icon--red {
  color: #fecaca;
  background: rgba(185, 28, 28, 0.14);
}

.fxr-accounts-list-route .fxr-ov-icon--green {
  color: #a7f3d0;
  background: rgba(5, 150, 105, 0.14);
}

.fxr-accounts-list-route .fxr-ov-icon--violet {
  color: #ddd6fe;
  background: rgba(109, 40, 217, 0.16);
}

.fxr-accounts-list-route .fxr-ov-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 18px;
  color: #f8fafc;
  font-size: clamp(28px, 2.05vw, 38px);
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.fxr-accounts-list-route .fxr-ov-card small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 10px;
  color: rgba(191, 211, 238, 0.68);
  font-size: 13px;
  font-weight: 600;
}

.fxr-accounts-list-route .fxr-ov-unit {
  margin-left: 6px;
  color: rgba(191, 211, 238, 0.74);
  font-size: 18px;
  font-weight: 800;
}

.fxr-accounts-list-route .fxr-ov-positive {
  color: #22c55e !important;
}

.fxr-accounts-list-route .fxr-ov-negative {
  color: #ef4444 !important;
}

@media (max-width: 1320px) {
  .fxr-accounts-list-route .fxr-accounts-overview {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}

@media (max-width: 760px) {
  .fxr-accounts-list-route .fxr-accounts-overview {
    grid-template-columns: 1fr;
  }
}
