:root {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color-scheme: dark;
  --bg: #0b0c10;
  --panel: #12141b;
  --panel-soft: #151924;
  --line: #272b36;
  --line-soft: #1f2430;
  --text: #eef1f7;
  --muted: #a7afbf;
  --blue: #86a7ff;
  --green: #7ee0a2;
  --yellow: #ffd36f;
  --red: #ff8b94;
}
body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.45; }
a { color: inherit; }
.container { max-width: 1180px; margin: 0 auto; padding: 18px; }
.header { background: rgba(18, 20, 27, .96); border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; font-size: 18px; letter-spacing: 0; }
.muted { color: var(--muted); font-size: 14px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.user-summary { text-align: right; min-width: 220px; }
.deficit { color: var(--red); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nav .active { font-weight: 700; }
.nav form { margin: 0; }
.grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 800px) { .grid { grid-template-columns: 1fr 1fr; } }
.metric-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 14px; }
@media (min-width: 800px) { .metric-grid { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 14px; }
.metric-card { display: grid; gap: 6px; min-height: 112px; }
.metric-card strong { font-size: 24px; line-height: 1.1; }
.metric-danger { border-color: rgba(255, 110, 118, .55); background: rgba(190, 45, 55, .16); }
.warning-card { border-color: rgba(255, 204, 102, .45); background: rgba(164, 116, 29, .14); margin-bottom: 12px; }
.warning-card p { margin-bottom: 0; }
.card-subsection { margin: 12px 0 16px; }
.card-subsection h3 { margin: 0 0 8px; font-size: 16px; }
.section-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.section-header h2 { margin-bottom: 0; }
.login-card { max-width: 420px; margin: 48px auto 0; }
.error { color: var(--red); }
.success { color: var(--green); }
.badge { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 8px; border-radius: 999px; font-size: 12px; line-height: 1.2; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.badge + .badge { margin-left: 6px; }
.badge-inbound { color: #b7f7d2; background: rgba(36, 143, 85, .18); border-color: rgba(80, 190, 126, .45); }
.badge-outbound { color: #c9d5ff; background: rgba(80, 96, 220, .2); border-color: rgba(127, 145, 255, .48); }
.badge-dispute { color: #ffc7c7; background: rgba(190, 45, 55, .2); border-color: rgba(255, 110, 118, .5); }
.badge-status { color: #e8e8e8; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); }
.badge-status-pending, .badge-business-received { color: #d9e3ff; background: rgba(80, 120, 220, .18); border-color: rgba(127, 165, 255, .45); }
.badge-business-paid_claimed { color: #ffe5a6; background: rgba(190, 125, 35, .22); border-color: rgba(255, 190, 92, .55); }
.badge-business-paid_confirmed { color: #b7f7d2; background: rgba(36, 143, 85, .18); border-color: rgba(80, 190, 126, .45); }
.badge-business-dispute { color: #ffc7c7; background: rgba(190, 45, 55, .2); border-color: rgba(255, 110, 118, .5); }
.badge-business-cancelled, .badge-status-muted { color: #c7ccd6; background: rgba(150, 158, 176, .12); border-color: rgba(180, 187, 202, .22); }
.badge-status-success { color: #b7f7d2; background: rgba(36, 143, 85, .18); border-color: rgba(80, 190, 126, .45); }
.badge-status-warning { color: #ffe5a6; background: rgba(190, 125, 35, .22); border-color: rgba(255, 190, 92, .55); }
.badge-status-danger { color: #ffc7c7; background: rgba(190, 45, 55, .2); border-color: rgba(255, 110, 118, .5); }
.badge-severity-info { color: #c9d5ff; background: rgba(80, 96, 220, .18); border-color: rgba(127, 145, 255, .45); }
.badge-severity-warning { color: #ffe5a6; background: rgba(190, 125, 35, .22); border-color: rgba(255, 190, 92, .55); }
.badge-severity-critical { color: #ffc7c7; background: rgba(190, 45, 55, .22); border-color: rgba(255, 110, 118, .55); }
.nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 999px; background: #b93645; color: #fff; font-size: 12px; font-weight: 700; }
h1 { margin: 10px 0 14px; font-size: 28px; line-height: 1.15; }
h2 { margin: 0 0 10px; font-size: 18px; }
.form { display: grid; gap: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: end; }
@media (min-width: 760px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
input, textarea, select { width: 100%; min-height: 42px; padding: 9px 10px; border-radius: 8px; border: 1px solid #2a2d36; background: #0b0c10; color: #e8e8e8; box-sizing: border-box; }
input[type="checkbox"] { width: auto; }
.password-field { position: relative; display: block; }
.password-field input { min-width: 0; padding-right: 44px; }
.password-toggle-icon { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); }
.password-toggle-icon svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.9; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.password-toggle-icon .password-eye-off { display: none; }
.password-toggle-icon.is-visible .password-eye { display: none; }
.password-toggle-icon.is-visible .password-eye-off { display: block; }
.checkbox-label { display: inline-flex; align-items: center; gap: 8px; width: auto; }
.checkbox-label input[type="checkbox"] { flex: 0 0 auto; }
textarea { resize: vertical; }
button, .button, .button-link { min-height: 38px; padding: 9px 12px; border-radius: 8px; border: 1px solid #323846; background: #1b1f2a; color: #e8e8e8; cursor: pointer; font-weight: 650; }
button:hover, .button:hover, .button-link:hover { border-color: #485064; background: #202635; }
.button-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 34px; min-width: 34px; height: 34px; min-height: 34px; padding: 0; border-radius: 8px; font-size: 16px; line-height: 1; }
.button-primary { border-color: rgba(126, 224, 162, .4); background: rgba(36, 143, 85, .18); color: #d8ffe8; }
.button-secondary { border-color: #323846; background: #151924; color: #dce3ef; }
.button-danger { border-color: rgba(255, 110, 118, .42); background: rgba(190, 45, 55, .18); color: #ffe0e3; }
.button-small { min-height: 30px; padding: 6px 9px; border-radius: 8px; font-size: 13px; line-height: 1.2; white-space: nowrap; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table th, .table td { border-bottom: 1px solid var(--line-soft); padding: 10px; text-align: left; vertical-align: top; }
.table th { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.table tbody tr:hover { background: rgba(255, 255, 255, .025); }
.table-compact th, .table-compact td { padding: 7px 8px; vertical-align: middle; }
.table-scroll { width: 100%; overflow-x: auto; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; min-width: 260px; }
.actions form { margin: 0; }
.table .actions { min-width: 0; }
.action-cell { width: 1%; white-space: nowrap; }
.action-cell-sticky { position: sticky; right: 0; z-index: 1; background: var(--panel); box-shadow: -8px 0 12px rgba(11, 12, 16, .35); }
.cell-truncate { display: block; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-muted-line { display: block; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inline-form { display: grid; gap: 8px; min-width: 220px; }
.admin-user-create { max-width: 680px; }
.admin-user-create .form-grid { align-items: start; }
.admin-user-create .form-actions { grid-column: 1 / -1; justify-content: flex-start; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.form-wide { grid-column: 1 / -1; }
.form-modal { grid-template-columns: 1fr; align-items: start; }
@media (min-width: 680px) { .form-modal { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.compact-inline-form { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; margin: 0; padding: 8px; border: 1px solid var(--line-soft); border-radius: 8px; background: rgba(255, 255, 255, .025); }
.compact-inline-form .toolbar-field { display: inline-flex; flex: 0 0 auto; flex-direction: column; gap: 4px; width: auto; min-width: 0; color: var(--muted); font-size: 12px; font-weight: 700; }
.compact-inline-form input,
.compact-inline-form select { width: 170px; min-width: 0; min-height: 34px; padding: 6px 9px; border-radius: 7px; font-size: 13px; }
.compact-inline-form .toolbar-field-wide { flex: 1 1 300px; }
.compact-inline-form .toolbar-field-wide input { width: 100%; min-width: 220px; }
.compact-inline-form button { width: auto; flex: 0 0 auto; min-height: 34px; padding: 6px 10px; align-self: flex-end; }
.balance-deposit-form .toolbar-field-amount input { width: 150px; }
.balance-deposit-form .toolbar-field-currency select { width: 118px; }
.balance-deposit-form .toolbar-field-method select { width: 180px; }
.orders-filter-form .toolbar-field-status select { width: 170px; }
.orders-filter-form .toolbar-field-sort select { width: 170px; }
.compact-filter-toolbar,
.orders-filter-toolbar { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 0; padding: 8px; border: 1px solid var(--line-soft); border-radius: 8px; background: rgba(255, 255, 255, .025); }
.compact-filter-toolbar .toolbar-field,
.orders-filter-toolbar .toolbar-field { display: flex; flex: 0 0 220px; flex-direction: column; gap: 4px; min-width: 180px; width: auto; color: var(--muted); font-size: 12px; font-weight: 700; }
.compact-filter-toolbar .toolbar-field-wide,
.orders-filter-toolbar .toolbar-field-wide { flex: 1 1 360px; min-width: 260px; }
.compact-filter-toolbar input,
.compact-filter-toolbar select,
.orders-filter-toolbar input,
.orders-filter-toolbar select { width: 100%; min-height: 34px; padding: 6px 9px; border-radius: 7px; font-size: 13px; }
.compact-filter-toolbar .toolbar-submit,
.orders-filter-toolbar .toolbar-submit { width: auto; flex: 0 0 auto; min-height: 34px; padding: 6px 12px; white-space: nowrap; align-self: flex-end; }
.orders-filter-toolbar .toolbar-field { flex: 0 0 170px; min-width: 150px; }
.orders-filter-toolbar .toolbar-field-wide { flex: 1 1 280px; min-width: 220px; }
.orders-filter-toolbar .toolbar-submit,
.balance-deposit-form .toolbar-submit { margin-left: auto; }
@media (max-width: 760px) {
  .orders-filter-toolbar .toolbar-submit,
  .balance-deposit-form .toolbar-submit { margin-left: 0; }
}
.tabs, .quick-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tabs a, .quick-tabs a { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--muted); background: rgba(255, 255, 255, .03); }
.tabs a.active, .quick-tabs a.active { color: var(--text); background: rgba(127, 145, 255, .16); border-color: rgba(127, 145, 255, .45); }
.orders-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.orders-filter-toolbar,
.balance-deposit-form {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: flex-end !important;
  gap: 12px !important;
  width: 100%;
}
.orders-filter-toolbar > .toolbar-field,
.balance-deposit-form > .toolbar-field {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  min-width: 0 !important;
  width: auto !important;
  margin: 0 !important;
}
.orders-filter-toolbar > .toolbar-field {
  flex: 0 0 156px !important;
}
.orders-filter-toolbar > .toolbar-field-wide {
  flex: 1 1 auto !important;
  min-width: 240px !important;
}
.orders-filter-toolbar > .toolbar-field input,
.orders-filter-toolbar > .toolbar-field select,
.balance-deposit-form > .toolbar-field input,
.balance-deposit-form > .toolbar-field select {
  width: 100% !important;
}
.orders-filter-toolbar > input[type="hidden"],
.balance-deposit-form > input[type="hidden"] {
  display: none;
}
.orders-filter-toolbar > .toolbar-submit,
.balance-deposit-form > .toolbar-submit {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: max-content !important;
  margin-left: auto !important;
  white-space: nowrap !important;
}
.balance-deposit-form > .toolbar-field-amount {
  flex: 0 0 150px !important;
}
.balance-deposit-form > .toolbar-field-currency {
  flex: 0 0 120px !important;
}
.balance-deposit-form > .toolbar-field-method {
  flex: 0 0 220px !important;
}
@media (max-width: 760px) {
  .orders-filter-toolbar,
  .balance-deposit-form {
    overflow-x: auto;
    padding-bottom: 10px;
  }
  .orders-filter-toolbar > .toolbar-submit,
  .balance-deposit-form > .toolbar-submit {
    margin-left: 0 !important;
  }
}
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 760px) { .detail-grid { grid-template-columns: repeat(3, 1fr); } }
.order-detail-card { margin-top: 12px; }
.orders-table { min-width: 820px; font-size: 14px; }
.orders-table th, .orders-table td { padding: 7px 8px; vertical-align: middle; }
.orders-table td { min-width: auto; }
.restore-requests-table { min-width: 1300px; table-layout: fixed; font-size: 14px; }
.restore-requests-table th:nth-child(1) { width: 110px; }
.restore-requests-table th:nth-child(2) { width: 110px; }
.restore-requests-table th:nth-child(3) { width: 180px; }
.restore-requests-table th:nth-child(4) { width: 190px; }
.restore-requests-table th:nth-child(5) { width: 220px; }
.restore-requests-table th:nth-child(6) { width: 130px; }
.restore-requests-table th:nth-child(7) { width: 300px; }
.restore-requests-table td { overflow-wrap: anywhere; }
.restore-requests-table .actions { display: grid; gap: 12px; min-width: 0; }
.restore-requests-table .form { width: 100%; }
.restore-requests-table .form label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.restore-requests-table .form button { width: 100%; }
.orders-table .badge { min-height: 20px; padding: 2px 7px; font-size: 11px; }
.order-id-cell { width: 72px; }
.order-link { font-weight: 700; text-decoration: none; }
.order-link:hover { text-decoration: underline; }
.amount, .amount-cell, .reserve-cell { white-space: nowrap; font-weight: 750; font-variant-numeric: tabular-nums; }
.date-cell { white-space: nowrap; color: #d8d8d8; }
.payment-to-cell { max-width: 220px; overflow-wrap: anywhere; }
.payment-method { display: grid; gap: 3px; min-width: 0; }
.payment-method strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.payment-method code { display: inline-block; max-width: 100%; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .05); color: #dce3ef; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact-actions { min-width: 0; align-items: center; gap: 6px; }
.compact-actions form { display: inline-flex; }
.order-row.order-status-paid_claimed { background: rgba(190, 125, 35, .06); }
.order-row.order-status-dispute { background: rgba(190, 45, 55, .07); }
.reserve-note { margin-top: 6px; color: #ffe5a6; font-size: 13px; }
.pagination { display: flex; gap: 12px; margin-top: 12px; }
.dispute-open { min-width: 220px; }
.dispute-open summary { display: inline-flex; align-items: center; justify-content: center; padding: 10px 12px; border-radius: 10px; border: 1px solid #2a2d36; background: #1b1f2a; color: #e8e8e8; cursor: pointer; list-style: none; }
.dispute-open summary::-webkit-details-marker { display: none; }
.dispute-open[open] summary { margin-bottom: 8px; }
.dispute-panel { display: grid; gap: 8px; min-width: 260px; padding: 10px; border: 1px solid #222; border-radius: 8px; background: #0b0c10; }
dialog.modal-dialog { position: fixed; inset: 0; width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 32px); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); box-shadow: 0 24px 80px rgba(0, 0, 0, .55); }
dialog.modal-dialog:not([open]) { display: none; }
dialog.modal-dialog::backdrop { background: rgba(0, 0, 0, .68); }
.modal-card { display: grid; gap: 12px; max-height: calc(100vh - 34px); overflow: auto; padding: 16px; }
.modal-card h2 { margin: 0; }
.modal-card form { margin: 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.modal-dialog-wide { width: min(680px, calc(100vw - 32px)); }
.dispute-modal-dialog { width: min(560px, calc(100vw - 32px)); }
.dispute-modal-form label { display: grid; gap: 6px; }
.file-field input[type="file"] { min-height: 38px; padding: 7px; }
.file-preview { min-height: 20px; color: var(--muted); font-size: 13px; }
.file-preview a { color: #c9d5ff; text-decoration: none; }
.file-preview a:hover { text-decoration: underline; }
.event-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.notification-list { display: grid; gap: 10px; }
.notification-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid var(--line-soft); border-radius: 8px; background: #0b0c10; }
.notification-unread { border-color: rgba(127, 145, 255, .45); background: rgba(80, 96, 220, .08); }
.notification-main { min-width: 0; }
.notification-main h2 { margin-top: 8px; }
.notification-main p { margin: 8px 0; overflow-wrap: anywhere; }
.notification-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.empty-state { padding: 22px; border: 1px dashed rgba(180, 187, 202, .28); border-radius: 8px; color: var(--muted); background: rgba(255, 255, 255, .025); }
.empty-state strong { display: block; margin-bottom: 4px; color: var(--text); }
.stack { display: grid; gap: 6px; }
.pair { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.pair span:first-child { color: var(--muted); }
.accounts-toolbar { display: grid; gap: 10px; margin-bottom: 12px; }
.accounts-toolbar h2 { margin: 0; }
.page-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px; border: 1px solid var(--line-soft); border-radius: 8px; background: rgba(255, 255, 255, .025); }
.admin-toolbar { margin-top: 10px; }
.toolbar-form { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; flex-wrap: wrap; margin: 0; }
.toolbar-form .control-field { flex: 0 0 auto; }
.toolbar-form .toolbar-search { flex: 1 1 280px; }
.toolbar-form input { width: 100%; min-width: 220px; min-height: 32px; padding: 5px 9px; border-radius: 7px; font-size: 13px; }
.toolbar-form select { width: 190px; min-width: 190px; min-height: 32px; padding: 5px 28px 5px 9px; border-radius: 7px; font-size: 13px; }
.toolbar-form button { width: auto; flex: 0 0 auto; }
.payment-accounts-toolbar { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; padding: 8px; border: 1px solid var(--line-soft); border-radius: 8px; background: rgba(255, 255, 255, .025); }
.accounts-filter-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.control-field { display: inline-flex; align-items: center; gap: 6px; width: auto; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.control-field select { width: 180px; min-width: 180px; min-height: 32px; padding: 5px 28px 5px 9px; border-radius: 7px; font-size: 13px; }
.accounts-table { min-width: 860px; table-layout: fixed; font-size: 13px; }
.accounts-table th, .accounts-table td { padding: 6px 8px; vertical-align: middle; }
.accounts-table th { font-size: 11px; letter-spacing: .02em; }
.accounts-table th:nth-child(1) { width: 72px; }
.accounts-table th:nth-child(2) { width: 220px; }
.accounts-table th:nth-child(3) { width: 122px; }
.accounts-table th:nth-child(4) { width: 132px; }
.accounts-table th:nth-child(5) { width: 140px; }
.accounts-table th:nth-child(6) { width: 72px; }
.accounts-table th:nth-child(7) { width: 86px; }
.accounts-table th:nth-child(8) { width: 104px; }
.account-main { display: grid; gap: 2px; min-width: 0; line-height: 1.25; }
.account-name, .account-requisite-copy { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-name { font-weight: 750; color: var(--text); }
.account-requisite-copy { min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; text-align: left; cursor: copy; }
.account-requisite-copy:hover { color: #dce3ef; background: transparent; border-color: transparent; }
.copy-feedback { display: none; margin-left: 6px; color: #9ee6bd; font-size: 11px; }
.account-requisite-copy.is-copied .copy-feedback { display: inline; }
.account-form .form-field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.account-form .form-field input, .account-form .form-field select { width: 100%; }
.account-limits { display: grid; gap: 1px; white-space: nowrap; line-height: 1.25; }
.account-limits strong, .account-range, .accounts-table td:nth-child(6) { font-variant-numeric: tabular-nums; }
.action-group { display: inline-flex; gap: 6px; flex-wrap: nowrap; align-items: center; }
.action-group form { margin: 0; }
.action-group .icon-button { width: 30px; min-width: 30px; height: 30px; min-height: 30px; border-radius: 7px; }
.action-group .button-danger { border-color: rgba(255, 110, 118, .24); background: rgba(190, 45, 55, .08); color: #ffc7c7; }
.account-range { white-space: nowrap; font-weight: 700; font-size: 12px; }
.payment-account-deleted { opacity: .58; }
.payment-account-deleted:hover { opacity: .72; }
.toggle-switch { position: relative; width: 38px; min-width: 38px; height: 22px; min-height: 22px; padding: 0; border-radius: 999px; border-color: rgba(180, 187, 202, .22); background: rgba(150, 158, 176, .14); }
.toggle-switch::before { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 999px; background: #c7ccd6; transition: transform .14s ease, background .14s ease; }
.toggle-switch.is-on { border-color: rgba(80, 190, 126, .45); background: rgba(36, 143, 85, .28); }
.toggle-switch.is-on::before { transform: translateX(16px); background: #b7f7d2; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.admin-users-table { min-width: 920px; table-layout: fixed; font-size: 13px; }
.admin-users-table th, .admin-users-table td { padding: 8px; vertical-align: middle; }
.admin-users-table th:nth-child(1) { width: 56px; }
.admin-users-table th:nth-child(2) { width: 230px; }
.admin-users-table th:nth-child(3) { width: 98px; }
.admin-users-table th:nth-child(4) { width: 104px; }
.admin-users-table th:nth-child(5) { width: 190px; }
.admin-users-table th:nth-child(6) { width: 112px; }
.admin-users-table th:nth-child(7) { width: 88px; }
.admin-users-table th:nth-child(8) { width: 126px; }
.admin-users-table th:nth-child(9) { width: 76px; }
.table-cell-main { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 750; line-height: 1.25; }
.table-cell-muted { display: block; min-width: 0; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; line-height: 1.25; }
.cell-ellipsis { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge-row { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.online-dot { display: inline-block; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 999px; background: #7f8796; box-shadow: 0 0 0 3px rgba(127, 135, 150, .12); }
.online-dot.is-online { background: #7ee0a2; box-shadow: 0 0 0 3px rgba(126, 224, 162, .12); }
.online-dot.is-offline { background: #7f8796; }
.admin-traders-table { min-width: 0; table-layout: fixed; font-size: 13px; }
.admin-traders-table th, .admin-traders-table td { padding: 7px 8px; vertical-align: middle; }
.admin-traders-table th:nth-child(1) { width: 54px; }
.admin-traders-table th:nth-child(2) { width: 285px; }
.admin-traders-table th:nth-child(3) { width: 250px; }
.admin-traders-table th:nth-child(4) { width: 170px; }
.admin-traders-table th:nth-child(5) { width: 98px; }
.admin-traders-table th:nth-child(6) { width: 72px; }
.admin-traders-table .table-cell-main { display: flex; align-items: center; gap: 6px; }
.admin-traders-table .badge { margin-bottom: 2px; }
.admin-balance-adjust-form { align-items: flex-end; margin-top: 8px; }
.admin-balance-adjust-form .control-field { align-items: flex-start; flex-direction: column; gap: 4px; text-transform: none; font-size: 12px; }
.admin-balance-adjust-form .toolbar-search { flex: 1 1 300px; }
.admin-balance-adjust-form .toolbar-search select { width: 100%; min-width: 240px; }
.admin-balance-adjust-form .admin-amount-field { flex: 0 0 150px; }
.admin-balance-adjust-form .admin-reason-field { flex: 2 1 280px; }
.admin-balance-adjust-form input,
.admin-balance-adjust-form select { min-height: 34px; padding: 6px 9px; border-radius: 7px; font-size: 13px; }
.admin-balances-table { min-width: 0; table-layout: fixed; font-size: 13px; }
.admin-balances-table th:nth-child(1) { width: 64px; }
.admin-balances-table th:nth-child(2) { width: 260px; }
.admin-balances-table th:nth-child(3),
.admin-balances-table th:nth-child(4) { width: 150px; }
.admin-balances-table th:nth-child(5) { width: 150px; }
.admin-ledger-table { min-width: 0; table-layout: fixed; font-size: 12px; }
.admin-ledger-table th:nth-child(1) { width: 136px; }
.admin-ledger-table th:nth-child(2) { width: 240px; }
.admin-ledger-table th:nth-child(3) { width: 132px; }
.admin-ledger-table th:nth-child(4) { width: 190px; }
.admin-ledger-table th:nth-child(5) { width: 170px; }
.admin-ledger-table th:nth-child(6) { width: 260px; }
.admin-deposits-table { min-width: 0; table-layout: fixed; font-size: 13px; }
.admin-deposits-table th:nth-child(1) { width: 58px; }
.admin-deposits-table th:nth-child(2) { width: 250px; }
.admin-deposits-table th:nth-child(3) { width: 116px; }
.admin-deposits-table th:nth-child(4) { width: 170px; }
.admin-deposits-table th:nth-child(5) { width: 155px; }
.admin-deposits-table th:nth-child(6) { width: 136px; }
.admin-deposits-table th:nth-child(7) { width: 166px; }
.admin-action-details { position: relative; min-width: 0; }
.admin-action-details summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.admin-action-details summary::-webkit-details-marker { display: none; }
.admin-action-details[open] .dispute-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; min-width: 260px; box-shadow: 0 18px 46px rgba(0, 0, 0, .42); border-color: var(--line); }
.admin-deposit-actions { align-items: flex-start; }
.admin-dispute-reasons-header p { margin: 4px 0 0; max-width: 760px; }
.admin-dispute-reasons-table { min-width: 0; table-layout: fixed; font-size: 13px; }
.admin-dispute-reasons-table th, .admin-dispute-reasons-table td { padding: 7px 8px; vertical-align: middle; }
.admin-dispute-reasons-table th:nth-child(1) { width: 150px; }
.admin-dispute-reasons-table th:nth-child(2) { width: 260px; }
.admin-dispute-reasons-table th:nth-child(3) { width: 112px; }
.admin-dispute-reasons-table th:nth-child(4) { width: 96px; }
.admin-dispute-reasons-table th:nth-child(5) { width: 72px; }
.admin-dispute-reasons-table th:nth-child(6) { width: 164px; }
.admin-dispute-reasons-table th:nth-child(7) { width: 104px; }
.admin-providers-table { min-width: 0; table-layout: fixed; font-size: 13px; }
.admin-providers-table th, .admin-providers-table td { padding: 7px 8px; vertical-align: middle; }
.admin-providers-table th:nth-child(1) { width: 58px; }
.admin-providers-table th:nth-child(2) { width: 300px; }
.admin-providers-table th:nth-child(3) { width: 165px; }
.admin-providers-table th:nth-child(4) { width: 112px; }
.admin-providers-table th:nth-child(5) { width: 158px; }
.admin-providers-table th:nth-child(6) { width: 190px; }
.admin-provider-actions { justify-content: flex-end; }
.admin-provider-actions .button-small { padding: 5px 7px; font-size: 12px; }
.table code.cell-ellipsis,
.table code.table-cell-main { display: block; max-width: 100%; }
.secret-once pre { max-width: 100%; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.amount-positive { color: #b7f7d2; font-weight: 750; }
.amount-reserved { color: #ffe5a6; font-weight: 750; }
.amount-cell { text-align: right; }
.table-compact .amount-cell { vertical-align: middle; }
.accounts-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 900px) { .accounts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.account-card { display: grid; gap: 12px; background: var(--panel-soft); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.account-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.account-title { display: grid; gap: 4px; min-width: 0; }
.account-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-meta { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 560px) { .account-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.limit-box { display: grid; gap: 4px; padding: 9px; border-radius: 8px; background: rgba(255, 255, 255, .035); }
.text-clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row input[type="checkbox"] { width: 20px; height: 20px; }
.compact-form { margin-top: 12px; }
.secret-box { margin: 12px 0; padding: 10px; border: 1px solid #222; border-radius: 8px; background: #0b0c10; overflow-wrap: anywhere; }
.secret-box code { display: block; margin-top: 4px; white-space: normal; }
.secret-once { padding: 12px; border: 1px solid rgba(255, 204, 102, .45); border-radius: 8px; background: rgba(164, 116, 29, .14); overflow-wrap: anywhere; }
.secret-once h3 { margin: 0 0 8px; font-size: 16px; }
.secret-once pre { white-space: pre-wrap; }
