/* "Dos modos de uso": Modo Normal and Modo Contador. */

.modes__sparkle {
  left: -70px;
  top: 60px;
  width: 260px;
  opacity: .05;
}

.modes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}

.mode {
  background: var(--nx-ink-2);
  border: 1px solid var(--nx-ink-3);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mode--accent {
  border-color: var(--nx-billing);
}

.mode__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--nx-white);
}

.mode__text {
  color: var(--nx-400);
  font-size: 15.5px;
  line-height: 1.6;
}

.mode__panel {
  background: var(--nx-ink);
  border: 1px solid var(--nx-ink-3);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.mode__panel--invoice {
  gap: 12px;
}

.mode__panel--portfolio {
  gap: 10px;
}

.mode__panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mode__panel-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--nx-500);
}

.mode__panel-state {
  font-size: 11px;
  color: var(--nx-billing);
  background: rgba(16, 185, 129, .14);
  padding: 4px 9px;
  border-radius: var(--r-pill);
}

.mode__panel-count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--nx-400);
}

.mode__skeleton {
  height: 9px;
  background: var(--nx-ink-3);
  border-radius: var(--r-pill);
}

.mode__skeleton--70 {
  width: 70%;
}

.mode__skeleton--45 {
  width: 45%;
}

.mode__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--nx-ink-3);
  padding-top: 12px;
}

.mode__total-label {
  font-size: 12.5px;
  color: var(--nx-400);
}

.mode__total-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--nx-white);
}

.mode__submit {
  background: var(--nx-billing);
  color: var(--nx-white);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 10px;
  border-radius: 8px;
}

/* Portfolio rows */

.mode__row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--nx-ink-2);
  border-radius: 8px;
  padding: 9px 11px;
}

.mode__row--alert {
  border: 1px solid rgba(239, 68, 68, .35);
}

.mode__row img {
  width: 14px;
  height: 14px;
  opacity: .7;
}

.mode__row-name {
  font-size: 12.5px;
  color: var(--nx-200);
  flex: 1;
}

.mode__row-value {
  font-size: 11px;
}

.mode__row-value--safe {
  color: var(--nx-success);
}

.mode__row-value--warning {
  color: var(--nx-warning);
}

.mode__row-value--danger {
  color: var(--nx-danger);
}

.mode__note {
  font-size: 11.5px;
  color: var(--nx-400);
  display: flex;
  gap: 7px;
  align-items: center;
  padding-top: 2px;
}

.mode__note::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--nx-danger);
  display: block;
}

.mode__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mode__list li {
  display: flex;
  gap: 10px;
  color: var(--nx-200);
  font-size: 15px;
}

.mode__list .icon {
  --icon-size: 18px;
  margin-top: 2px;
  color: var(--nx-billing);
}
