/* Блок TON в карточке баланса на главном экране. */
.ton-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 152, 234, .28);
  border-radius: var(--radius-small);
  background: linear-gradient(135deg, rgba(0, 152, 234, .12), rgba(255, 255, 255, .04));
}
.ton-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ton-badge {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: linear-gradient(135deg, #0098ea, #0075b8);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}
.ton-text {
  min-width: 0;
  display: grid;
  gap: 1px;
}
.ton-amount {
  color: #fff;
  font-size: 15px;
  line-height: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ton-sub {
  color: var(--muted-2);
  font-size: 11px;
  line-height: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ton-sub.ok { color: var(--green); }
.ton-sub.err { color: var(--red); }
.ton-action {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(0, 152, 234, .5);
  border-radius: var(--radius-small);
  background: rgba(0, 152, 234, .16);
  color: #7fd0ff;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: background 160ms cubic-bezier(.22, 1, .36, 1), border-color 160ms cubic-bezier(.22, 1, .36, 1), transform 160ms cubic-bezier(.22, 1, .36, 1);
}
.ton-action:hover { background: rgba(0, 152, 234, .26); border-color: rgba(0, 152, 234, .8); }
.ton-action:active { transform: scale(.97); }
.ton-action:disabled { opacity: .55; cursor: default; }
@media (max-width: 380px) {
  .ton-amount { font-size: 13px; }
  .ton-action { padding: 0 8px; font-size: 12px; }
}

/* Содержимое GRAM-кошелька переехало сюда из фотосессии */
.ton-wallet {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--card-strong);
}
.ton-wallet[hidden] { display: none; }
.ton-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.ton-line-k {
  flex: 0 0 auto;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 15px;
  letter-spacing: .04em;
}
.ton-line-v {
  min-width: 0;
  color: #fff;
  font-size: 13px;
  line-height: 15px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ton-line-v.ok { color: var(--green); }
