/* RU: Экран кошелька — compact pass, утилитарный и сдержанный. */
/* EN: Wallet screen — compact pass, utilitarian and restrained. */

.wallet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.wallet-panel {
  padding: 16px;
  border-radius: 18px;
  min-height: 100%;
}

.wide-wallet {
  grid-column: span 2;
}

.balance {
  margin-top: 4px;
  margin-bottom: 12px;
  font-size: 1.34rem;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.wallet-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: 0.84rem;
}

.wallet-line:last-of-type {
  border-bottom: none;
}

.wallet-line strong {
  font-size: 0.84rem;
  line-height: 1.25;
}

.wallet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.wallet-actions .primary-btn,
.wallet-actions .secondary-btn {
  min-height: 34px;
  padding: 0.56rem 0.8rem;
  border-radius: 11px;
  font-size: 0.82rem;
}

.monet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.monet-card {
  min-height: 82px;
  padding: 12px;
  border-radius: 14px;
  display: flex;
  align-items: end;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  border: 1px solid rgba(255,255,255,.04);
  background:
    linear-gradient(180deg, rgba(255,255,255,.026), rgba(255,255,255,.01)),
    linear-gradient(135deg, rgba(103,185,181,.04), rgba(214,167,108,.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.wallet-history {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.04);
  background:
    linear-gradient(180deg, rgba(255,255,255,.022), rgba(255,255,255,.008)),
    rgba(255,255,255,.01);
}

.history-item strong {
  font-size: 0.86rem;
  line-height: 1.24;
}

.history-value {
  min-width: 44px;
  text-align: right;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.history-value.plus {
  color: var(--color-primary);
}

.history-value.minus {
  color: var(--color-accent);
}

@media (max-width: 980px) {
  .wallet-grid {
    grid-template-columns: 1fr;
  }

  .wide-wallet {
    grid-column: span 1;
  }

  .monet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .monet-grid {
    grid-template-columns: 1fr;
  }

  .history-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .history-value {
    text-align: left;
  }
}
