/* ===== Админка: депозиты (таблица/фильтры — из admin-users.css, карточки — из admin-dash.css) ===== */
.deposits-view { display: none !important; }
body.mode-deposits .chat-view, body.mode-deposits .kyc-view { display: none !important; }
body.mode-deposits .deposits-view { display: block !important; }

.ds-grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ds-grid.g4 .us-stat { padding: 16px 18px; gap: 14px; }
.ds-grid.g4 .ds-val.sm { font-size: 24px; }
.ds-grid.g4 .ds-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

/* --- Подвкладки --- */
.dp-tabs { display: flex; gap: 6px; margin: 4px 0 14px; }
.dp-tabs button {
  border: 0; background: transparent; cursor: pointer; padding: 9px 16px; border-radius: 11px;
  font: inherit; font-size: 14px; font-weight: 600; color: #6b7280; transition: background .15s, color .15s;
}
.dp-tabs button:hover { background: #fff; color: #111827; }
.dp-tabs button.on { background: #3b5bfd; color: #fff; box-shadow: 0 6px 16px rgba(59, 91, 253, .28); }
.dp-pane[hidden] { display: none !important; }

/* --- Фильтры --- */
.dp-dates { display: flex; align-items: center; gap: 6px; color: #a3aab9; }
.dp-dates input {
  padding: 8px 10px; border-radius: 11px; outline: none; border: 1.5px solid #eef0f4; background: #f7f8fb;
  font: inherit; font-size: 13px; color: #374151;
}
.dp-dates input:focus { border-color: #3b5bfd; background: #fff; }
.dp-count { margin-left: auto; font-size: 13px; color: #8b93a7; white-space: nowrap; }

/* --- Ячейки --- */
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; letter-spacing: -.01em; }
.mono.strong { color: #0f172a; font-weight: 600; }
.addr {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; margin: -4px -8px;
  border: 0; border-radius: 8px; background: none; cursor: pointer; color: #4b5563; white-space: nowrap;
}
.addr svg { width: 13px; height: 13px; color: #a3aab9; opacity: 0; transition: opacity .12s; }
.addr:hover { background: #f1f3f9; }
.addr:hover svg { opacity: 1; }
.net { display: inline-block; padding: 3px 8px; border-radius: 7px; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; background: #f1f2f6; color: #4b5563; }
.net.n-BEP20 { background: #fff7db; color: #a16207; }
.net.n-TRC20 { background: #feecec; color: #c2410c; }
.net.n-ERC20 { background: #eef1ff; color: #4f46e5; }
.money small { font-size: 11px; font-weight: 600; color: #a3aab9; }
.money.soft { color: #6b7280; }
tr.dp-cancelled .money, tr.dp-expired .money { text-decoration: line-through; text-decoration-color: #d1d5db; }
.pill.live { position: relative; padding-left: 20px; }
.pill.live::before {
  content: ''; position: absolute; left: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: #f59e0b; animation: dp-blink 1.4s ease-in-out infinite;
}
@keyframes dp-blink { 50% { opacity: .25; } }
.us-act.view { color: #3b5bfd; }
.us-act.view:hover { background: #eef1ff; border-color: #c9d2ff; }

.dp-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dp-empty .ds-ic { margin-bottom: 6px; }
.dp-empty b { font-size: 15px; color: #111827; }
.dp-empty span:last-child { font-size: 13px; }

/* пагинация с номерами */
.us-pager .pg { width: auto; min-width: 32px; padding: 0 8px; font: inherit; font-size: 13px; font-weight: 600; }
.us-pager .pg.on { background: #3b5bfd; border-color: #3b5bfd; color: #fff; }
.pg-gap { display: grid; place-items: center; width: 20px; color: #a3aab9; }

/* история баланса */
.op { display: flex; align-items: center; gap: 10px; }
.op-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; flex: none; }
.op-ic svg { width: 16px; height: 16px; }
.op.in .op-ic { background: #e6f7ef; color: #059669; }
.op.out .op-ic { background: #feecec; color: #dc2626; }
.tx { display: inline-flex; align-items: center; gap: 5px; color: #3b5bfd; text-decoration: none; }
.tx:hover { text-decoration: underline; }
.tx svg { width: 12px; height: 12px; }

/* --- Крипто-шлюз --- */
.gw-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.gw-card { padding: 20px 22px; }
.gw-head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid #f0f1f6; }
.gw-coin {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, #26a17b, #3cc79a); color: #fff; font-size: 22px; font-weight: 800;
  box-shadow: 0 6px 16px rgba(38, 161, 123, .3);
}
.gw-title { font-size: 16px; font-weight: 700; color: #0f172a; }
.gw-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; font-size: 13.5px; border-bottom: 1px dashed #eef0f5; }
.gw-row:last-child { border-bottom: 0; }
.gw-row span { color: #6b7280; }
.gw-row b { color: #0f172a; font-weight: 600; text-align: right; }
.gw-row b.bad { color: #dc2626; }
.gw-note { padding: 22px; }
.gw-note h3 { margin: 14px 0 10px; font-size: 16px; }
.gw-note ol { margin: 0 0 14px; padding-left: 20px; font-size: 13.5px; line-height: 1.7; color: #4b5563; }
.gw-note p { margin: 0; padding: 12px 14px; border-radius: 12px; background: #fff7e6; color: #92400e; font-size: 13px; line-height: 1.5; }

/* --- Окно «Подробнее» --- */
.dp-dialog { position: relative; max-width: 520px; text-align: left; }
.dp-x {
  position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px;
  border: 0; border-radius: 10px; background: #f4f5fa; color: #6b7280; cursor: pointer;
}
.dp-x svg { width: 17px; height: 17px; }
.dp-dlg-top { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px 0 16px; }
.dp-dlg-amt { font-size: 32px; font-weight: 800; letter-spacing: -.03em; color: #0f172a; font-variant-numeric: tabular-nums; }
.dp-dlg-amt small { font-size: 15px; color: #a3aab9; font-weight: 700; }
.dp-dlg-who { padding: 12px 14px; margin-bottom: 12px; border-radius: 12px; background: #f7f8fc; }
.dp-dlg-who .us-user { max-width: none; }
.dp-box { background: #f7f8fc; border-color: #eceef5; }
.dp-box b.mono { font-size: 12px; word-break: break-all; }
.dp-cp {
  display: inline-grid; place-items: center; width: 24px; height: 24px; margin-left: 4px; vertical-align: middle;
  border: 0; border-radius: 7px; background: #e9ecf5; color: #4b5563; cursor: pointer;
}
.dp-cp svg { width: 13px; height: 13px; }
.dp-tl { margin-top: 4px; }

/* --- Адаптив --- */
@media (max-width: 1280px) {
  .ds-grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .gw-grid { grid-template-columns: 1fr; }
  .dp-count { margin-left: 0; }
}
@media (max-width: 820px) {
  .ds-grid.g4 { grid-template-columns: 1fr 1fr; }
  .ds-grid.g4 .us-stat { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ds-grid.g4 .ds-val.sm { font-size: 20px; }
  .dp-tabs { overflow-x: auto; }
  .dp-tabs button { flex: none; padding: 8px 12px; font-size: 13px; }
  .dp-dates { width: 100%; }
  .dp-dates input { flex: 1; min-width: 0; }
  .us-act.view { border-color: #c9d2ff; }
}
