/* ===== Админка: пул адресов (таблица/карточки/окна — из admin-users/admin-deposits/admin-withdrawals.css) ===== */
.addresses-view { display: none !important; }
body.mode-addresses .chat-view { display: none !important; }
body.mode-addresses .addresses-view { display: block !important; }

.ad-head-btns { display: flex; gap: 10px; }
.ad-add {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 12px; cursor: pointer;
  background: #3b5bfd; color: #fff; font: inherit; font-size: 14px; font-weight: 700;
  box-shadow: 0 6px 16px rgba(59, 91, 253, .3); transition: transform .1s, box-shadow .15s;
}
.ad-add:hover { box-shadow: 0 8px 22px rgba(59, 91, 253, .4); }
.ad-add:active { transform: scale(.98); }
.ad-add svg { width: 18px; height: 18px; }

/* по сетям */
.ds-card.ad-nets { padding: 6px 20px; margin-bottom: 16px; }
.ad-net { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px dashed #eef0f5; }
.ad-net:last-child { border-bottom: 0; }
.ad-net .net { min-width: 64px; text-align: center; }
.ad-bar { flex: 1; max-width: 360px; height: 8px; border-radius: 99px; background: #eef0f6; overflow: hidden; display: flex; }
.ad-bar .a { background: #7c3aed; }
.ad-bar .f { background: #10b981; }
.ad-bar .d { background: #d1d5db; }
.ad-net-txt { font-size: 13px; color: #8b93a7; }
.ad-net-txt b { color: #0f172a; }
.ad-net-txt b.ok { color: #059669; }
.ad-net-txt b.low { color: #d97706; }
.ad-warn { margin-bottom: 16px; }

/* таблица */
.ad-addr { display: flex; flex-direction: column; gap: 2px; padding: 4px 8px; margin: -4px -8px; border: 0; border-radius: 8px; background: none; cursor: pointer; text-align: left; }
.ad-addr:hover { background: #f1f3f9; }
.ad-addr .mono.dim { font-size: 11px; }
.ad-label { display: inline-block; max-width: 160px; padding: 3px 8px; border-radius: 7px; background: #f1f2f6; color: #374151; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.ad-free { color: #059669; font-weight: 700; font-size: 13px; }
tr.disabled .ad-addr .mono, tr.disabled .net { opacity: .5; }
.ad-acts { display: inline-flex; gap: 2px; }
.ad-btn {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; cursor: pointer;
  border: 1px solid transparent; background: transparent; color: #8b93a7; transition: background .15s, color .15s;
}
.ad-btn svg { width: 16px; height: 16px; }
.ad-btn:hover { background: #eef1ff; color: #3b5bfd; }
.ad-btn.warn:hover { background: #fff4e0; color: #d97706; }
.ad-btn.bad:hover { background: #fef2f2; color: #dc2626; }
.ad-btn.on { color: #059669; }

/* окна */
.us-dialog.ad-dialog { max-width: 480px; }
.ad-dialog .us-dlg-ic.ok.ad-ic { background: #eaeeff; color: #3b5bfd; }
.ad-dlg-addr { margin: -2px 0 14px; padding: 8px 10px; border-radius: 10px; background: #f4f5fa; color: #374151; word-break: break-all; }
.ad-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; text-align: left; }
.ad-field span { font-size: 12.5px; font-weight: 700; color: #374151; }
.ad-field .us-select { width: 100%; }
.ad-text { min-height: 150px; font-size: 12.5px; line-height: 1.6; }
.ad-text:focus, .ad-input:focus { border-color: #3b5bfd !important; }
.ad-input { min-height: 0; margin-bottom: 14px; }
.ad-count { margin: -4px 0 14px; text-align: left; font-size: 12.5px; color: #8b93a7; }
.ad-count b.ok { color: #059669; }
.ad-count b.bad { color: #dc2626; }
.ad-dialog .wd-warn { text-align: left; }

@media (max-width: 820px) {
  .ad-add span { display: none; }
  .ad-add { width: 40px; padding: 0; justify-content: center; }
  .ad-net { flex-wrap: wrap; gap: 8px 12px; }
  .ad-bar { max-width: none; flex-basis: 100%; order: 3; }
  .ad-addr .mono.dim { display: none; }
  .ad-acts { width: 100%; justify-content: flex-end; }
}
