*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root {
  --bg: #1B1B1E;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --bg-sidebar: #18181b;
  --bg-input: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08);
  --border-focus: #00c26f;
  --primary: #00c26f;
  --primary-hover: #00a85e;
  --primary-light: #6fe3ae;
  --info: #0098e0;
  --danger: #ef4444;
  --success: #22c55e;
  --warning: #eab308;
  --text: rgba(255,255,255,0.97);
  --text-muted: rgba(255,255,255,0.7);
  --radius: 12px;
  --radius-sm: 8px;
}

html { height: 100%; }

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  color-scheme: dark;
}

.hidden { display: none !important; }

/* ====== LOGIN ====== */
.login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.login__card {
  background: none;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px 40px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  backdrop-filter: blur(20px);
}

.header__logo-name {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.login__logo {
  margin-bottom: 20px;
}

.login__logo-name {
  font-size: 22px;
}

.login__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}

.login__subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.login__field {
  margin-bottom: 16px;
}

.login__input {
  width: 100%;
  padding: 14px 16px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
}

.login__input:focus {
  border-color: var(--border-focus);
}

.login__btn {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}

.login__btn:hover {
  background: var(--primary-hover);
}

.login__error {
  color: var(--danger);
  font-size: 13px;
  margin-top: 12px;
  min-height: 18px;
}

/* ====== DASHBOARD ====== */
.dashboard {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Header (was a left sidebar — now one rounded row up top) ── */
.sidebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  width: calc(100% - 40px);
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 10px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  position: sticky;
  top: 16px;
  z-index: 100;
}

.sidebar__header {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 4px 0;
}

.sidebar__header .header__logo-name {
  font-size: 18px;
}

.sidebar__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s;
  background: none;
  border: none;
  color: var(--text-muted);
  text-decoration: none;
  width: auto;
  text-align: left;
  white-space: nowrap;
}

.sidebar__link:hover {
  background: var(--bg-card-hover);
  color: var(--text);
}

.sidebar__link.active {
  background: none;
  color: var(--primary);
}

.sidebar__badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.sidebar__badge.hidden {
  display: none;
}

.sidebar__link--muted { color: var(--text-muted); }
.sidebar__link--danger { color: var(--danger); }
.sidebar__link--danger:hover { background: rgba(239,68,68,0.1); }

.sidebar__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.profile-menu {
  position: relative;
}

.sidebar__profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 4px 4px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: background .15s;
}

.sidebar__profile:hover,
.sidebar__profile[aria-expanded="true"] {
  background: var(--bg-card-hover);
}

.profile-menu__chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform .15s;
}

.sidebar__profile[aria-expanded="true"] .profile-menu__chevron {
  transform: rotate(180deg);
}

.profile-menu__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  min-width: 200px;
  padding: 6px;
  background: #202024;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.profile-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .15s;
}

.profile-menu__item:hover { background: var(--bg-card-hover); }
.profile-menu__item--danger { color: var(--danger); }
.profile-menu__item--danger:hover { background: rgba(239,68,68,0.1); }

.profile-menu__lang {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  margin: 2px 0;
}

.profile-menu__lang-icon {
  display: flex;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Сегментированный переключатель со скользящей заливкой — как Крипто/Фиат на сайте */
.lang-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  padding: 3px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  isolation: isolate;
  transition: background .25s ease, border-color .25s ease;
}

.lang-switch:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.lang-switch::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 7px;
  background: var(--primary);
  transition: transform .32s cubic-bezier(0.34, 0.11, 0.18, 1);
}

.lang-switch:has(.profile-menu__lang-btn:nth-child(2).active)::before {
  transform: translateX(100%);
}

.profile-menu__lang-btn {
  padding: 7px 12px;
  border: none;
  border-radius: 7px;
  background: none;
  color: rgba(255, 255, 255, 0.55);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: color .22s ease;
  -webkit-tap-highlight-color: transparent;
}

.profile-menu__lang-btn:hover:not(.active) { color: rgba(255, 255, 255, 0.9); }

.profile-menu__lang-btn.active {
  color: #08130c;
}

.sidebar__profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--bg-card-hover) center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  border: 1px solid var(--border);
}

.sidebar__profile-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar__profile-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.sidebar__profile-role {
  font-size: 11px;
  color: var(--text-muted);
}

/* ── Main ── */
.main {
  flex: 1;
  width: calc(100% - 40px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px;
  overflow-x: auto;
}

/* ── Tabs ── */
.tab__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tab__header h2 {
  font-size: 22px;
  font-weight: 700;
}

/* ── Table ── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table th {
  text-align: left;
  padding: 12px 14px;
  background: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}

.table td {
  padding: 10px 14px;
  vertical-align: middle;
}

.table tbody tr:hover {
  background: var(--bg-card-hover);
}

.table .mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}

/* Действия в строке домена — тот же язык, что у бейджей DNS/SSL рядом:
   мягкая заливка без рамки, акцент появляется только на ховере. */
.domain-link {
  display: inline-block;
  padding: 6px 13px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.domain-link:hover {
  background: rgba(0, 194, 111, 0.14);
  color: var(--primary);
}

.domain-link--danger:hover {
  background: rgba(239, 68, 68, 0.14);
  color: var(--danger);
}

.table-link {
  color: var(--accent, #00c26f);
  text-decoration: none;
}

.table-link:hover {
  text-decoration: underline;
}

.text-muted {
  color: var(--text-muted);
}

/* ── Orders table ── */
.table-wrap--orders {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  overflow-x: auto;
}

.orders-table tbody tr.orders-row:first-child td {
  border-top: none;
}

.orders-table {
  width: 100%;
}

.orders-table th {
  padding: 11px 12px;
  background: none;
  border-bottom: 1px solid var(--border);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  white-space: nowrap;
}

.orders-table td {
  padding: 12px;
  vertical-align: middle;
  white-space: nowrap;
  font-size: 13px;
}

.orders-table tbody tr.orders-row,
.orders-table tbody tr.dep-log__row {
  transition: background .15s;
}

.orders-table tbody tr.orders-row:hover,
.orders-table tbody tr.dep-log__row:hover {
  background: rgba(0,194,111,0.06);
}

.order-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: #6fe3ae;
  letter-spacing: 0.02em;
}

.order-exchange {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.oleg {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 76px;
  text-align: center;
}

.oleg__top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.oleg__ic {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.oleg__sym {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.oleg__net {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .02em;
}

.oleg__amt {
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.order-arrow {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  opacity: 0.55;
  flex-shrink: 0;
}

/* Deposit address — truncated, links to the block explorer */
.addr-link,
.addr-text {
  display: inline-block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.addr-link {
  text-decoration: none;
  transition: color .15s;
}

.addr-link:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.order-country {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
}

.order-flag {
  width: 20px;
  height: 15px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.order-country__code {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: .02em;
}

.orders-table .order-date {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.order-pair {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
}

.order-pair__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
}

.order-coin {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.order-coin__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.order-coin__icon--placeholder {
  display: block;
}

.order-coin__info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.order-coin__symbol {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.order-coin__network {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.2;
}

.order-coin__amount {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  margin-top: 2px;
}

.wallet-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 180px;
  padding: 6px 10px;
  border-radius: 8px;
  background: none;
  border: 1px solid var(--border);
  color: #6fe3ae;
  font-size: 12px;
  text-decoration: none;
  transition: border-color .15s, background .15s, color .15s;
}

.wallet-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-chip__icon {
  flex-shrink: 0;
  opacity: 0.7;
}

.wallet-chip:hover {
  border-color: rgba(0,194,111,0.5);
  background: rgba(0,194,111,0.1);
  color: #9ef0c4;
  text-decoration: none;
}

.wallet-chip--static {
  color: var(--text-muted);
  cursor: default;
}

.country-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  white-space: nowrap;
}

.country-cell--empty {
  font-size: 12px;
  font-style: italic;
}

.country-cell__name {
  color: rgba(255,255,255,0.85);
}

.country-flag {
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}

.order-date {
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
}

.order-date__day {
  font-size: 13px;
  font-weight: 500;
}

.order-date__time {
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1100px) {
  .order-pair {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 200px;
  }

  .order-pair__arrow {
    transform: rotate(90deg);
    width: 24px;
    height: 24px;
  }
}

/* ── Status badges ── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.badge--pending   { background: rgba(234,179,8,0.15); color: var(--warning); }
.badge--paid      { background: rgba(0,152,224,0.15); color: #0098e0; }
.badge--completed { background: rgba(34,197,94,0.15); color: var(--success); }
.badge--cancelled { background: rgba(239,68,68,0.15);  color: var(--danger); }
.badge--open      { background: rgba(234,179,8,0.15); color: var(--warning); }
.badge--closed    { background: rgba(255,255,255,0.08); color: var(--text-muted); }

/* ── Action buttons ── */
.btn-sm {
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  transition: all .15s;
}

.btn-sm:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm--danger { color: var(--danger); border-color: rgba(239,68,68,0.35); }
.btn-sm--danger:hover { border-color: var(--danger); color: var(--danger); }

.table-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.btn-primary {
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: var(--primary);
  color: #fff;
  transition: background .2s;
  margin-top: 16px;
}

.btn-primary:hover { background: var(--primary-hover); }

.empty-msg {
  text-align: center;
  color: var(--text-muted);
  padding: 48px 20px;
  font-size: 14px;
}

/* ── Orders controls (search + filter chips) ── */
.orders-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 260px;
}

.orders-search svg {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

.orders-search input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
}

.orders-search input::placeholder { color: var(--text-muted); }
.orders-search input:focus { border-color: var(--border-focus); }
.orders-search input::-webkit-search-cancel-button { cursor: pointer; }

.orders-filters {
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
}

.ord-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 2px;
  margin-right: 18px;
  border: none;
  border-radius: 0;
  background: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s;
}

.ord-chip:last-child { margin-right: 0; }
.ord-chip:hover { color: var(--text); }
.ord-chip.active { color: #fff; }

.ord-chip::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transition: transform .18s ease;
}

.ord-chip.active::after { transform: scaleX(1); }

.ord-chip__count {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.ord-chip.active .ord-chip__count { color: var(--primary); }

.orders-table tbody tr.orders-row { cursor: pointer; }

/* ── Flat status indicator (table + modal) ── */
.ostatus {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.2;
}

.ostatus--pending   { color: var(--warning); }
.ostatus--paid      { color: #0098e0; }
.ostatus--completed { color: var(--success); }
.ostatus--cancelled { color: var(--danger); }
.ostatus--closed    { color: var(--text-muted); }

.ostatus__txt--short { display: none; }

/* ══════════════════════════════════════
   SETTINGS — modern, no card blocks
   ══════════════════════════════════════ */

.settings-page {
  max-width: none;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.settings-page::before {
  display: none;
}

.settings-page > * {
  position: relative;
  z-index: 1;
}

.set-header {
  grid-column: 1 / -1;
  margin-bottom: 40px;
}

.set-header__title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 20%, rgba(111, 227, 174, 0.9) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.set-header__sub {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.set-zone {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
}

.set-zone--flat {
  padding: 0;
  border: none;
  border-radius: 0;
}

.set-zone--flat .set-update {
  margin-top: 20px;
}

.set-zone .set-update {
  margin-top: auto;
}

.set-zone--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.set-zone__col .set-zone__head {
  margin-bottom: 20px;
}

.set-zone__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.set-zone__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.set-zone__sub {
  margin-top: 4px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.set-zone__tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.set-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.set-search-wrap__icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.set-search {
  width: 220px;
  padding: 10px 14px 10px 40px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.set-search:focus {
  border-color: rgba(0, 194, 111, 0.55);
  background: rgba(0, 194, 111, 0.06);
  box-shadow: 0 0 0 3px rgba(0, 194, 111, 0.12);
}

.set-search::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.set-save {
  padding: 9px 18px;
  border: 1px solid rgba(0, 194, 111, 0.45);
  border-radius: 999px;
  background: rgba(0, 194, 111, 0.14);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #9ef0c4;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.set-save:hover {
  background: rgba(0, 194, 111, 0.28);
  border-color: rgba(0, 194, 111, 0.65);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 194, 111, 0.25);
  transform: translateY(-1px);
}

.set-save:active {
  transform: translateY(0);
}

/* Wallets — reference-style deposit addresses */
.set-zone--addrs {
  border-bottom: none;
  padding-bottom: 24px;
}

.set-zone__title--lg {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 12px;
}

.set-addr-section {
  margin-bottom: 28px;
}

.set-addr-section:last-of-type {
  margin-bottom: 20px;
}

.set-wallets {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.set-wallet {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 0;
  transition: border-color 0.15s;
}

.set-wallet--switch {
  justify-content: space-between;
}

.set-wallet--switch .set-wallet__name {
  flex: 1 1 auto;
}

.set-wallet:hover {
  border-color: rgba(255,255,255,0.16);
}

.set-wallet--ok {
  border-color: rgba(0,194,111,0.4);
}

.set-wallet__name {
  flex: 0 0 80px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.03em;
}

.set-wallet__addr {
  flex: 1;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.78);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.35;
  outline: none;
}

.set-wallet__addr::placeholder {
  color: rgba(255, 255, 255, 0.22);
}

.set-wallet__addr:focus {
  color: #fff;
}

.set-wallet__icons {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  flex-shrink: 0;
  min-width: 28px;
}

.set-wallet__icons-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  margin-left: -8px;
  position: relative;
}

.set-wallet__icons-img:last-child {
  margin-left: 0;
}

.set-wallet__file {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.set-wallet__pick {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #141414;
  background: var(--primary);
  border: none;
  cursor: pointer;
  transition: filter 0.15s;
}

.set-wallet__pick:hover {
  filter: brightness(1.06);
}

.set-wallet__file-name {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.set-update {
  display: inline-block;
  margin-top: 20px;
  padding: 11px 28px;
  background: var(--primary);
  color: #141414;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
}

.set-update:hover {
  filter: brightness(1.06);
}

.set-update:active {
  transform: scale(0.98);
}

.set-update:disabled {
  background: var(--bg-input);
  color: var(--text-muted);
  cursor: not-allowed;
  filter: none;
}

/* Spreads — compact modal */
.set-zone--spreads {
  border-bottom: none;
  padding-bottom: 24px;
}

.set-spreads-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: #28282c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}

.set-spreads-card:hover {
  background: #2a2a2e;
  border-color: rgba(0, 194, 111, 0.35);
}

.set-spreads-card:active {
  transform: scale(0.99);
}

.set-spreads-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 194, 111, 0.14);
  color: #4dd68c;
  flex-shrink: 0;
}

.set-spreads-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.set-spreads-card__title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.set-spreads-card__meta {
  font-size: 12px;
  color: var(--text-muted);
}

.set-spreads-card__arrow {
  font-size: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.modal--spreads {
  z-index: 1001;
}

.modal--spreads .modal__content {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  max-height: min(640px, 88vh);
}

.modal--spreads .modal__header {
  padding: 14px 16px;
  flex-shrink: 0;
}

.modal--spreads .modal__header h3 {
  font-size: 15px;
}

.spread-modal__body {
  padding: 12px 14px 8px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.spread-modal__hint {
  margin: 0 0 10px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-muted);
}

.spread-modal__list .set-spreads {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spread-modal__foot {
  padding: 10px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.set-update--full {
  width: 100%;
  margin-top: 0;
}

/* ── Domain add button + wizard ── */
.domain-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 8px 16px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .1s;
}

.domain-add-btn:hover { background: var(--primary-hover); }
.domain-add-btn:active { transform: scale(0.97); }
.domain-add-btn svg { flex-shrink: 0; }

.modal--wizard .modal__content {
  max-width: 400px;
}

.modal--wizard .modal__body {
  padding: 20px 20px 24px;
}

.wizard-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 18px;
}

.wizard-dots__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  transition: background .15s;
}

.wizard-dots__dot.active {
  background: var(--primary);
  width: 18px;
  border-radius: 4px;
}

.wizard-dots__dot.done {
  background: rgba(0,194,111,0.4);
}

.wizard-step { margin-bottom: 18px; }

.wizard-input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
}

.wizard-input:focus { border-color: var(--border-focus); }

.wizard-error {
  min-height: 16px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--danger);
}

.wizard-hint {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.wizard-hint b { color: var(--text); font-weight: 600; }

.wizard-ns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wizard-ns__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.wizard-ns__val {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text);
}

.wizard-ns .copy-btn {
  flex-shrink: 0;
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}

.wizard-ns .copy-btn:hover {
  color: #fff;
  border-color: var(--primary);
  background: rgba(0,194,111,0.14);
}

.wizard-step--done {
  text-align: center;
  padding: 8px 0 4px;
}

.wizard-done__badge {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(234,179,8,0.15);
  color: var(--warning);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.wizard-done__host {
  margin-bottom: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.wizard-step--done .wizard-hint {
  margin-bottom: 0;
}

body.spread-modal-open {
  overflow: hidden;
}

.set-spreads {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.set-spread {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  min-width: 0;
  transition: background 0.15s, border-color 0.15s;
}

.set-spread:hover {
  background: rgba(255, 255, 255, 0.06);
}

.set-spread--ok {
  border-color: rgba(0, 194, 111, 0.28);
  background: rgba(0, 194, 111, 0.08);
}

.set-spread__coin {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 72px;
  min-width: 0;
}

.set-spread__name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.set-spread__fields {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.set-spread__field {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: text;
}

.set-spread__dir {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.set-spread__field--up .set-spread__dir {
  color: rgba(34, 197, 94, 0.85);
}

.set-spread__field--down .set-spread__dir {
  color: rgba(238, 136, 136, 0.85);
}

.set-spread__inp {
  width: 48px;
  padding: 4px 6px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  text-align: center;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.set-spread__inp::-webkit-outer-spin-button,
.set-spread__inp::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.set-spread__inp[type="number"] {
  -moz-appearance: textfield;
}

.set-spread__inp::placeholder {
  color: rgba(255, 255, 255, 0.22);
}

.set-spread__inp:focus {
  border-color: rgba(0, 194, 111, 0.55);
  background: rgba(0, 194, 111, 0.08);
}

.set-spread__field--up .set-spread__inp:focus {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.06);
}

.set-spread__field--down .set-spread__inp:focus {
  border-color: rgba(238, 136, 136, 0.45);
  background: rgba(238, 136, 136, 0.06);
}

.set-spread__pct {
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.set-spread__icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.set-spread__icon--ph {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
}

.set-spread__save {
  flex-shrink: 0;
  padding: 5px 12px;
  background: var(--primary);
  color: #141414;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
}

.set-spread__save:hover {
  filter: brightness(1.06);
}

.set-spread__save:active {
  transform: scale(0.97);
}

.set-spread__save:disabled {
  background: var(--bg-input);
  color: var(--text-muted);
  cursor: not-allowed;
  filter: none;
}

/* Site — logo + telegram */
.set-zone--site {
  padding-bottom: 24px;
}

.set-site {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

/* Settings cards are narrow — stack label above the field instead of
   side-by-side, so long labels (e.g. "Current password") don't wrap and
   throw row heights out of sync with the short-label rows next to them.
   The border moves from the row onto the input itself, so the label
   reads as a plain caption above a distinct field box, not packed
   inside the same bordered row as the input. */
.set-site .set-wallet {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 0;
  border: none;
}

.set-site .set-wallet__name {
  flex: none;
}

.set-site .set-wallet__addr {
  padding: 10px 14px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.15s;
}

.set-site .set-wallet__addr:focus {
  border-color: var(--border-focus);
}

.set-site .set-wallet--switch {
  flex-direction: row;
  align-items: center;
}

.set-site-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.set-site-group__head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.set-site-group__head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}


.set-coin {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 130px;
}

.set-coin__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.set-coin__icon--ph {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
}

.set-coin__sym {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.set-coin__net {
  font-size: 10px;
  font-weight: 600;
  color: #6fe3ae;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 194, 111, 0.15);
}

/* Inputs */
.set-inp {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.set-inp:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
}

.set-inp:focus {
  border-color: rgba(0, 194, 111, 0.55);
  background: rgba(0, 194, 111, 0.05);
  box-shadow: 0 0 0 3px rgba(0, 194, 111, 0.1);
}

.set-inp::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.set-inp--mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}

.set-inp--num {
  width: 80px;
  flex: none;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.set-inp--wide {
  width: 100%;
}

/* Rates */
.set-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
}

.set-table th {
  padding: 0 14px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  border: none;
}

.set-th--up { color: rgba(34, 197, 94, 0.75); }
.set-th--down { color: rgba(238, 136, 136, 0.75); }

.set-table th:nth-child(2),
.set-table th:nth-child(3) {
  text-align: center;
  width: 110px;
}

.set-table td {
  padding: 12px 14px;
  vertical-align: middle;
  border: none;
  background: transparent;
  transition: background 0.2s;
}

.set-table tbody tr {
  transition: transform 0.15s;
}

.set-table tbody tr td:first-child {
  border-radius: 12px 0 0 12px;
}

.set-table tbody tr td:last-child {
  border-radius: 0 12px 12px 0;
}

.set-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.035);
}

.set-table td:nth-child(2),
.set-table td:nth-child(3) {
  text-align: center;
}

.set-table td:nth-child(2) .set-inp:focus {
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.set-table td:nth-child(3) .set-inp:focus {
  border-color: rgba(238, 136, 136, 0.45);
  box-shadow: 0 0 0 3px rgba(238, 136, 136, 0.1);
}

/* Logo / Telegram */
.set-form-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.set-form-row--stack {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.set-form-row__label {
  flex: 0 0 64px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.set-upload {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #9ef0c4;
  background: rgba(0, 194, 111, 0.12);
  border: 1px solid rgba(0, 194, 111, 0.3);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.set-upload:hover {
  background: rgba(0, 194, 111, 0.22);
  border-color: rgba(0, 194, 111, 0.5);
  color: #fff;
}

.set-file {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.logo-upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

/* ── Cards (legacy) ── */
.card {
  background: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.card__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.card__desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ── Wallets grid ── */
.wallets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.wallet-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.wallet-row__label {
  font-size: 13px;
  font-weight: 600;
  min-width: 100px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wallet-row__label img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.wallet-row__input {
  flex: 1;
  padding: 8px 10px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  outline: none;
  transition: border-color .2s;
}

.wallet-row__input:focus { border-color: var(--border-focus); }

/* ── Settings fields ── */
.settings-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 12px;
}

.settings-field {
  margin-bottom: 12px;
}

.settings-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.settings-hint {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}

.settings-input,
.settings-textarea {
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color .2s;
  font-family: inherit;
}

.settings-textarea {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  resize: vertical;
}

.settings-input:focus,
.settings-textarea:focus { border-color: var(--border-focus); }

.logo-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  min-height: 48px;
}

.logo-preview svg {
  height: 28px;
  width: auto;
}

.logo-preview__icon {
  height: 28px;
  max-width: 40px;
  object-fit: contain;
}

.logo-preview__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.logo-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.logo-upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.logo-upload__btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.logo-upload__btn:hover {
  border-color: var(--border-focus);
  background: var(--bg-card);
}

.logo-upload__name {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Rate toggle ── */
.toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle__slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 11px;
  cursor: pointer;
  transition: background .2s;
}

.toggle__slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}

.toggle input:checked + .toggle__slider {
  background: var(--primary);
}

.toggle input:checked + .toggle__slider::before {
  transform: translateX(18px);
}

.rate-input {
  -moz-appearance: textfield;
  appearance: textfield;
}

.rate-input::-webkit-outer-spin-button,
.rate-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ====== MODAL ====== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal:not(.hidden) .modal__backdrop {
  animation: backdropIn 0.22s ease;
}

.modal:not(.hidden) .modal__content {
  animation: modalIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes backdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.modal__content {
  position: relative;
  background: #1B1B1E;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal__header h3 {
  font-size: 16px;
  font-weight: 700;
}

.modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.modal__close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.modal__body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.modal__body .field {
  margin-bottom: 16px;
}

.modal__body .field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.modal__body .field-value {
  font-size: 14px;
  padding: 8px 0;
  word-break: break-all;
}

.modal__body select,
.modal__body textarea,
.modal__body input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

.modal__body select:focus,
.modal__body textarea:focus { border-color: var(--border-focus); }

.modal__body select option { background: #202024; }

.modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.modal__actions .btn-primary { margin-top: 0; flex: 1; }
.modal__actions .btn-cancel {
  flex: 1;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

.modal__body .set-zone:not(:last-child) {
  margin-bottom: 16px;
}

/* ── Свой выпадающий список вместо нативного select ── */
.pick {
  position: relative;
}

.pick__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.pick__btn:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.pick.is-open .pick__btn {
  border-color: var(--primary);
}

.pick__val {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pick__chev {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.18s ease;
}

.pick.is-open .pick__chev {
  transform: rotate(180deg);
}

/* Высота ограничена — длинный список прокручивается своей узкой полосой */
.pick__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
  padding: 6px;
  max-height: 232px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.pick__list::-webkit-scrollbar { width: 4px; }
.pick__list::-webkit-scrollbar-track { background: transparent; }
.pick__list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); border-radius: 4px; }
.pick__list::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.28); }

.pick__opt {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: none;
  border-radius: 8px;
  background: none;
  color: var(--text-muted);
  font: inherit;
  font-size: 13.5px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.pick__opt:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.pick__opt.is-active {
  background: rgba(0, 194, 111, 0.12);
  color: var(--primary);
  font-weight: 600;
}

/* ── Domain settings page: разделы слева, панель справа ── */
.dsec {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}

.dsec__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 20px;
}

.dsec__back {
  padding: 4px 16px 12px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}

.dsec__back:hover {
  color: var(--text);
}

.dsec__link {
  padding: 11px 16px;
  border: none;
  border-radius: 10px;
  background: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.dsec__link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.dsec__link.is-active {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.dsec__panel {
  max-width: 600px;
  padding: 0;
  border: none;
  background: none;
}

.dsec__panel[hidden] {
  display: none;
}

.dsec__title {
  margin-bottom: 18px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

/* Курсы — таблица: актив, курс, памп/дамп, кнопка */
.drt-table {
  width: 100%;
  max-width: 600px;
  border-collapse: separate;
  border-spacing: 0 8px;
}

/* Лишнюю ширину забирает только колонка актива — иначе браузер растягивает
   промежутки между узкими колонками с числами. */
.drt-table th:nth-child(2), .drt-table td:nth-child(2) { width: 112px; }
.drt-table th:nth-child(3), .drt-table td:nth-child(3),
.drt-table th:nth-child(4), .drt-table td:nth-child(4) { width: 88px; }
.drt-table th:nth-child(5), .drt-table td:nth-child(5) { width: 104px; }

.drt-table th {
  padding: 0 12px 8px;
  border: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  white-space: nowrap;
}

.drt-table td {
  padding: 10px 12px;
  vertical-align: middle;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-left: none;
  border-right: none;
}

.drt-table td:first-child {
  border-left: 1px solid var(--border);
  border-radius: 12px 0 0 12px;
}

.drt-table td:last-child {
  border-right: 1px solid var(--border);
  border-radius: 0 12px 12px 0;
  text-align: right;
}

.drt-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.14);
}

.drt__asset {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.drt__icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.drt__sym {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.drt__name {
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drt__price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  white-space: nowrap;
}

.drt__base { display: block; }

.drt__eff {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--primary);
}

.drt__eff[hidden] { display: none; }

.drt__inp {
  width: 68px;
  padding: 7px 9px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  outline: none;
  transition: border-color 0.15s;
}

.drt__inp::placeholder { color: rgba(255, 255, 255, 0.22); }
.drt__inp:focus { border-color: rgba(255, 255, 255, 0.4); }

.drt__inp::-webkit-outer-spin-button,
.drt__inp::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.drt__inp[type="number"] { -moz-appearance: textfield; }

.drt__save {
  padding: 8px 15px;
  background: var(--primary);
  color: #141414;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.15s, transform 0.1s;
}

.drt__save:hover { filter: brightness(1.06); }
.drt__save:active { transform: scale(0.97); }

.drt__save:disabled {
  background: var(--bg-input);
  color: var(--text-muted);
  cursor: not-allowed;
  filter: none;
}

/* Адреса выплат — строка: монета, сеть, поле адреса */
#domainWalletsList {
  max-width: 600px;
  gap: 8px;
}

.dwl {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  min-width: 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: background 0.15s, border-color 0.15s;
}

.dwl:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.14);
}

.dwl__icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

span.dwl__icon {
  background: rgba(255, 255, 255, 0.06);
}

.dwl__meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 0 0 92px;
  min-width: 0;
}

.dwl__sym {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
}

.dwl__net {
  font-size: 10.5px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dwl__addr {
  flex: 1;
  min-width: 0;
  padding: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.82);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.45;
  outline: none;
  resize: none;
  overflow: hidden;
  word-break: break-all;
  transition: color 0.15s;
}

.dwl__addr::placeholder { color: rgba(255, 255, 255, 0.22); }

.dwl__addr:focus { color: #fff; }

.dwl__addr[readonly] {
  color: var(--text-muted);
  cursor: default;
}

.dwl__edit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.dwl__edit:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.ns-cell {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.ns-cell .ns-copy {
  padding: 3px 9px;
  border: none;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  line-height: 1.5;
  white-space: nowrap;
}

.ns-cell .ns-copy:hover {
  background: rgba(0, 194, 111, 0.14);
  color: var(--primary);
}

.ns-cell__sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 11px;
}

.ns-copy {
  cursor: pointer;
  color: var(--text);
  border-bottom: 1px dashed var(--text-muted);
  transition: color .15s, border-color .15s;
}

.ns-copy:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.domain-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 14px 0 0;
}

.domain-action {
  flex: 1;
  min-width: 0;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.domain-action:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.domain-action--danger {
  border-color: transparent;
  background: var(--danger);
  color: #fff;
}

.domain-action--danger:hover {
  background: #dc2626;
  color: #fff;
}

/* ── Order modal ── */
.modal--order .modal__content {
  max-width: 430px;
  display: flex;
  flex-direction: column;
}

.modal--order .modal__content::before {
  content: '';
  display: none;
}

.modal--order .modal__header {
  padding: 16px 20px;
  flex-shrink: 0;
}

.modal--order .modal__header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal--order .modal__body {
  padding: 0;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.omx { display: flex; flex-direction: column; }

.omx-pair {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px;
}

.omx-coin {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1;
  min-width: 0;
}

.omx-coin--to {
  flex-direction: row-reverse;
  text-align: right;
}

.omx-coin--from {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.omx-coin__ic {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.omx-coin__txt { min-width: 0; }

.omx-coin__amt {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

.omx-coin__sym {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

.omx-arrow {
  flex-shrink: 0;
  display: flex;
  color: var(--text-muted);
}

.omx-rows { padding: 4px 22px; }

.omx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.omx-row__k {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.omx-row__v {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  word-break: break-word;
}

.omx-country {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.omx-country img { border-radius: 2px; }

.omx-sec {
  padding: 14px 22px;
}

.omx-sec__k {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.omx-sec__hint {
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}

.omx-addr {
  display: flex;
  align-items: center;
  gap: 10px;
}

.omx-addr__v {
  flex: 1;
  min-width: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.5;
  color: #6fe3ae;
  word-break: break-all;
  text-decoration: none;
}

a.omx-addr__v:hover { text-decoration: underline; }

.omx-addr__v--empty {
  color: var(--text-muted);
  font-style: italic;
  font-family: inherit;
}

.omx-copy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color .15s, background .15s;
}

.omx-copy:hover {
  color: #fff;
  background: rgba(0, 194, 111, 0.12);
}

.omx-seg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.omx-seg__btn {
  padding: 9px 4px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, border-color .15s, background .15s;
}

.omx-seg__btn:hover:not(:disabled):not(.active) {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.omx-seg__btn.active { cursor: default; }
.omx-seg__btn--pending.active   { color: var(--warning); border-color: rgba(234,179,8,0.45); background: rgba(234,179,8,0.1); }
.omx-seg__btn--paid.active      { color: #0098e0;        border-color: rgba(0,152,224,0.45); background: rgba(0,152,224,0.1); }
.omx-seg__btn--completed.active { color: var(--success); border-color: rgba(34,197,94,0.45); background: rgba(34,197,94,0.1); }
.omx-seg__btn--cancelled.active { color: var(--danger);  border-color: rgba(239,68,68,0.45);  background: rgba(239,68,68,0.1); }

.omx-status-btn {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}

.omx-status-row {
  display: flex;
  gap: 10px;
}

.omx-status-row .omx-status-btn {
  width: auto;
  flex: 1;
}

.omx-status-btn--complete {
  background: var(--primary);
  color: #fff;
}

.omx-status-btn--complete:hover {
  filter: brightness(1.08);
}

.omx-status-btn--cancel {
  background: var(--danger);
  color: #fff;
}

.omx-status-btn--cancel:hover {
  filter: brightness(1.08);
}

/* ====== TOAST ====== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #202024;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 500;
  z-index: 2000;
  animation: toastIn .3s ease;
}

.toast--success { border-color: var(--success); color: var(--success); }
.toast--error   { border-color: var(--danger);  color: var(--danger); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ====== MOBILE LAYOUT ====== */
.dashboard__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.mobile-topbar {
  display: none;
}

.sidebar-overlay {
  display: none;
}

body.no-scroll {
  overflow: hidden;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .login {
    padding: 16px;
    align-items: flex-start;
    padding-top: max(16px, env(safe-area-inset-top));
  }

  .login__card {
    padding: 32px 24px;
    margin-top: 10vh;
  }

  .dashboard {
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .mobile-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 16px;
    padding-top: max(12px, env(safe-area-inset-top));
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  /* Роль кнопки меню играет профиль справа в шапке */
  .mobile-topbar__burger {
    display: none;
  }

  .mobile-topbar .sidebar__profile {
    order: 2;
    margin-left: auto;
    width: auto;
    max-width: 62%;
    padding: 5px 10px 5px 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
  }

  .mobile-topbar .sidebar__profile:active {
    background: rgba(255, 255, 255, 0.1);
  }

  .mobile-topbar .profile-menu__chevron {
    display: block;
  }

  .mobile-topbar__burger--legacy {
    display: flex;
    align-items: center;
    justify-content: center;
    order: 2;
    margin-left: auto;
    width: 44px;
    height: 44px;
    margin-right: -6px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: none;
    color: var(--text);
    cursor: pointer;
    flex-shrink: 0;
  }

  .mobile-topbar__burger:active {
    background: rgba(255,255,255,0.08);
  }

  .mobile-topbar__title {
    order: 1;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
  }

  .sidebar-overlay {
    display: block;
    position: fixed;
    top: var(--topbar-h, 57px);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
  }

  .sidebar-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }

  /* Меню — выпадающий список из-под шапки, а не боковая панель */
  .sidebar {
    position: fixed;
    top: var(--topbar-h, 57px);
    left: 0;
    right: 0;
    bottom: auto;
    z-index: 210;
    width: 100%;
    height: auto;
    max-height: calc(100dvh - var(--topbar-h, 57px));
    margin: 0;
    max-width: none;
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    border-radius: 0 0 16px 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    overflow-y: auto;
  }

  .sidebar.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .sidebar__header {
    display: none;
  }

  .sidebar__nav {
    flex-direction: column;
    gap: 4px;
  }

  .sidebar__link {
    width: 100%;
    padding: 12px 14px;
    justify-content: flex-start;
    min-height: 48px;
  }

  .sidebar__link span {
    display: inline;
  }

  .sidebar__footer {
    flex-direction: column;
    align-items: stretch;
    border: none;
    padding-top: 4px;
    padding-left: 0;
    margin-top: 4px;
    margin-left: 0;
  }

  /* В выпадающем меню пункты профиля показаны сразу, без второго уровня */
  /* !important — чтобы перебить утилиту .hidden{display:none!important},
     которой JS прячет дропдаун профиля на десктопе. */
  .sidebar .profile-menu__dropdown,
  .sidebar .profile-menu__dropdown.hidden {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    position: static;
    width: 100%;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
  }

  .sidebar .profile-menu__item {
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
  }

  .sidebar .profile-menu__lang {
    padding: 8px 14px;
  }

  .sidebar .lang-switch {
    flex: 0 0 auto;
    width: 128px;
  }

  .sidebar .profile-menu__lang-btn {
    min-height: 32px;
    font-size: 12px;
  }

  .dashboard__body {
    width: 100%;
  }

  .main {
    width: 100%;
    padding: 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    max-width: none;
    margin: 0;
  }

  .tab__header {
    margin-bottom: 10px;
  }

  .tab__header h2 {
    display: none;
  }

  /* ── Orders controls (mobile) ── */
  .orders-search {
    min-width: 0;
    width: 100%;
    max-width: 260px;
  }

  .orders-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .orders-filters::-webkit-scrollbar { display: none; }
  .ord-chip { flex-shrink: 0; }

  /* ── Orders: compact cards on mobile ── */
  .table-wrap--orders {
    overflow: visible;
    background: transparent;
    border: none;
    border-radius: 0;
  }

  .orders-table {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .orders-table thead {
    display: none;
  }

  .orders-table tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .orders-table tr.orders-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    padding: 0;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    overflow: hidden;
  }

  .orders-table tr.orders-row:hover {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(0, 194, 111, 0.22);
  }

  .orders-table tr.orders-row:active {
    transform: scale(0.995);
  }

  .orders-table td {
    display: block;
    padding: 0;
    border: none;
    white-space: normal;
  }

  .orders-table td::before {
    display: none;
  }

  /* Header: ID + status */
  .orders-table td:nth-child(1) {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 14px 0;
  }

  .orders-table td:nth-child(6) {
    order: 2;
    flex: 0 0 auto;
    padding: 12px 14px 0;
  }

  /* Exchange band */
  .orders-table td:nth-child(2) {
    order: 3;
    flex: 1 1 100%;
    padding: 10px 14px;
    margin-top: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.12);
  }

  /* Footer meta row */
  .orders-table td:nth-child(4) {
    order: 4;
    flex: 0 0 auto;
    padding: 0 0 12px 14px;
  }

  .orders-table td:nth-child(5) {
    order: 5;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 0 12px;
    text-align: left;
  }

  /* Адрес получает свою строку в подвале карточки и показывается целиком */
  .orders-table td:nth-child(3) {
    order: 6;
    flex: 1 1 100%;
    padding: 0 14px 12px;
    margin-left: 0;
  }

  .addr-link,
  .addr-text {
    display: block;
    max-width: 100%;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-break: break-all;
    font-size: 11px;
    line-height: 1.4;
  }

  .order-id {
    font-size: 13px;
    letter-spacing: 0.03em;
  }

  .ostatus {
    font-size: 11px;
    gap: 5px;
  }

  .ostatus__txt--full { display: none; }
  .ostatus__txt--short { display: inline; }

  /* ── Списки-таблицы → карточки: подпись колонки берётся из data-label,
     поэтому раскладка не зависит от порядка и числа колонок. ── */
  #tab-domains .table-wrap--orders,
  #tab-deposits .table-wrap--orders,
  #tab-support .table-wrap,
  #tab-workers .table-wrap {
    overflow: visible;
    background: transparent;
    border: none;
    border-radius: 0;
  }

  #tab-domains .orders-table,
  #tab-deposits .orders-table,
  #tab-support .table,
  #tab-workers .table {
    display: block;
    width: 100%;
    min-width: 0;
    border-collapse: separate;
  }

  #tab-domains .orders-table thead,
  #tab-deposits .orders-table thead,
  #tab-support .table thead,
  #tab-workers .table thead {
    display: none;
  }

  #tab-domains .orders-table tbody,
  #tab-deposits .orders-table tbody,
  #tab-support .table tbody,
  #tab-workers .table tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  #tab-domains .orders-table tr,
  #tab-deposits .orders-table tr,
  #tab-support .table tr,
  #tab-workers .table tr {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    overflow: hidden;
  }

  #tab-domains .orders-table td,
  #tab-deposits .orders-table td,
  #tab-support .table td,
  #tab-workers .table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 5px 0;
    border: none;
    background: none;
    white-space: normal;
    text-align: right;
    min-width: 0;
  }

  #tab-domains .orders-table td::before,
  #tab-deposits .orders-table td::before,
  #tab-support .table td::before,
  #tab-workers .table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: left;
    white-space: nowrap;
  }

  /* Ячейки без подписи (иконка-галочка, кнопки) занимают всю ширину */
  #tab-domains .orders-table td:not([data-label]),
  #tab-deposits .orders-table td:not([data-label]),
  #tab-support .table td:not([data-label]),
  #tab-workers .table td:not([data-label]) {
    justify-content: flex-start;
    text-align: left;
  }

  #tab-domains .orders-table td:not([data-label])::before,
  #tab-deposits .orders-table td:not([data-label])::before,
  #tab-support .table td:not([data-label])::before,
  #tab-workers .table td:not([data-label])::before {
    display: none;
  }

  /* Заголовок карточки — имя домена во всю ширину, крупно */
  #tab-domains .orders-table td.dom-host {
    padding: 0 0 8px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    word-break: break-all;
  }

  /* Кнопки действий — в ряд под содержимым карточки */
  #tab-domains .orders-table td.table-actions,
  #tab-support .table td.table-actions,
  #tab-workers .table td.table-actions {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    padding-top: 4px;
  }

  #tab-domains .orders-table td.table-actions > *,
  #tab-support .table td.table-actions > *,
  #tab-workers .table td.table-actions > * {
    flex: 1 1 auto;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Депозит: галочка и сумма — в одну «шапку» карточки */
  #tab-deposits .orders-table td.dep-log__check {
    display: none;
  }

  #tab-deposits .orders-table td.dep-log__usd {
    padding: 0 0 8px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 18px;
  }

  .ns-cell {
    justify-content: flex-end;
  }

  .ns-cell__sep {
    display: none;
  }

  /* Ячейка с длинным адресом: подпись сверху, значение целиком под ней */
  #tab-deposits .orders-table td:has(.addr-link),
  #tab-deposits .orders-table td:has(.addr-text) {
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    text-align: left;
  }

  /* Пустая ячейка действий не должна рисовать разделитель в карточке */
  #tab-domains .orders-table td.table-actions:empty,
  #tab-support .table td.table-actions:empty,
  #tab-workers .table td.table-actions:empty {
    display: none;
  }

  /* Кнопка «Добавить домен» — во всю ширину, удобная для пальца */
  .domain-add-btn {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }

  /* Тач-таргеты в карточках */
  .btn-sm,
  .domain-link {
    padding: 9px 14px;
    font-size: 12.5px;
  }

  .worker-rate-input {
    min-height: 38px;
    padding: 6px 10px;
    font-size: 16px;
  }

  .order-exchange {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 6px 8px;
    width: 100%;
  }

  .oleg {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    min-width: 0;
    text-align: left;
  }

  .order-exchange .oleg:last-of-type {
    align-items: flex-end;
    text-align: right;
  }

  .oleg__top {
    gap: 5px;
  }

  .oleg__ic {
    width: 20px;
    height: 20px;
  }

  .oleg__sym {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .oleg__net {
    font-size: 9px;
    opacity: 0.85;
  }

  .oleg__amt {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
  }

  .order-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: none;
    opacity: 0.55;
    flex-shrink: 0;
  }

  .order-arrow svg {
    width: 14px;
    height: 14px;
  }

  .order-country {
    font-size: 12px;
    gap: 6px;
  }

  .order-flag {
    width: 18px;
    height: 13px;
  }

  .orders-table .order-date {
    font-size: 12px;
    white-space: nowrap;
    color: var(--text-muted);
  }


  .orders-filters {
    margin-bottom: 4px;
  }

  .ord-chip {
    padding: 8px 12px;
    font-size: 13px;
  }

  .wallet-chip {
    max-width: 100%;
    width: 100%;
    padding: 5px 8px;
    font-size: 11px;
    gap: 4px;
  }

  .wallet-chip span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .country-cell--compact span {
    max-width: 72px;
  }

  /* ── Settings (mobile) ── */
  .settings-page {
    grid-template-columns: 1fr;
  }

  .set-header__title {
    font-size: 20px;
  }

  .set-header {
    margin-bottom: 16px;
  }

  .set-zone--addrs,
  .set-zone--spreads,
  .set-zone--site {
    padding-bottom: 16px;
  }

  .set-zone__title--lg {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .set-addr-section {
    margin-bottom: 18px;
  }

  .set-addr-section:last-of-type {
    margin-bottom: 12px;
  }

  .set-site {
    gap: 14px;
  }

  .set-site-group {
    gap: 6px;
  }

  .set-site-group__head {
    font-size: 10px;
    gap: 8px;
  }

  .set-wallets,
  .set-spreads {
    gap: 4px;
  }

  .set-wallet {
    display: grid;
    grid-template-columns: minmax(44px, auto) minmax(0, 1fr) auto;
    grid-template-rows: auto;
    align-items: center;
    gap: 6px 8px;
    padding: 8px 12px;
    border-radius: 8px;
  }

  .set-wallet__name {
    flex: none;
    font-size: 11px;
    letter-spacing: 0.02em;
  }

  .set-wallet__addr {
    grid-column: 2;
    grid-row: 1;
    flex: none;
    order: unset;
    min-width: 0;
    font-size: 12px;
    line-height: 1.3;
  }

  .set-wallet__icons {
    grid-column: 3;
    grid-row: 1;
    margin-left: 0;
    min-width: 0;
  }

  .set-wallet__icons-img {
    width: 22px;
    height: 22px;
    margin-left: -6px;
  }

  .set-wallet:has(.set-wallet__file) {
    grid-template-columns: minmax(44px, auto) minmax(0, 1fr);
  }

  .set-wallet__file {
    grid-column: 2;
    grid-row: 1;
    flex: none;
    gap: 8px;
    min-width: 0;
  }

  .set-wallet__pick {
    padding: 4px 8px;
    font-size: 10px;
  }

  .set-wallet__file-name {
    font-size: 10px;
    min-width: 0;
  }

  .set-spreads-card {
    padding: 12px 14px;
    gap: 10px;
    border-radius: 10px;
  }

  .set-spreads-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }

  .set-spreads-card__icon svg {
    width: 18px;
    height: 18px;
  }

  .set-spreads-card__title {
    font-size: 13px;
  }

  .set-spreads-card__meta {
    font-size: 11px;
  }

  .modal--spreads {
    align-items: flex-end;
    padding: 0;
  }

  .modal--spreads .modal__content {
    max-height: 90vh;
  }

  .modal--spreads .modal__header {
    padding: 12px 14px;
  }

  .spread-modal__body {
    padding: 10px 12px 6px;
  }

  .spread-modal__hint {
    font-size: 10px;
    margin-bottom: 8px;
  }

  .spread-modal__foot {
    padding: 8px 12px 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .set-spread {
    padding: 6px 8px;
    gap: 6px;
    border-radius: 8px;
  }

  .set-spread__coin {
    flex: 0 0 58px;
    gap: 6px;
  }

  .set-spread__name {
    font-size: 10px;
  }

  .set-spread__icon {
    width: 18px;
    height: 18px;
  }

  .set-spread__fields {
    gap: 6px;
  }

  .set-spread__field {
    gap: 3px;
  }

  .set-spread__dir {
    font-size: 10px;
  }

  .set-spread__inp {
    width: 42px;
    padding: 3px 4px;
    font-size: 10px;
    border-radius: 5px;
  }

  .set-spread__pct {
    font-size: 9px;
  }

  #domainRatesList .set-spread__fields {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  #domainRatesList .set-spread__save {
    flex: 0 0 100%;
    margin-top: 4px;
  }

  /* ── Настройки: метка сверху, поле во всю ширину ──
     Перебивает `.set-wallet{display:grid}`, сделанный под список кошельков. */

  /* Заголовок уже есть в шапке — второй такой же только съедает экран */
  .settings-page .set-header {
    display: none;
  }

  .settings-page .set-zone {
    padding: 16px;
    margin-bottom: 14px;
  }

  .settings-page .set-zone:last-child {
    margin-bottom: 0;
  }

  .settings-page .set-zone__sub {
    font-size: 12.5px;
    line-height: 1.45;
  }

  .set-site .set-wallet {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    padding: 0;
    border: none;
  }

  .set-site .set-wallet__name {
    grid-column: auto;
    grid-row: auto;
    font-size: 12px;
    color: var(--text-muted);
  }

  .set-site .set-wallet__addr {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    font-size: 16px;
    line-height: 1.3;
  }

  /* `.set-zone .set-update{margin-top:auto}` выравнивает кнопки по низу колонок
     на десктопе, но в одноколоночной раскладке даёт нулевой отступ. */
  .settings-page .set-zone .set-update {
    width: 100%;
    min-height: 46px;
    margin-top: 18px;
    font-size: 14px;
  }

  .set-update {
    margin-top: 12px;
    padding: 9px 22px;
    font-size: 13px;
    border-radius: 8px;
  }

  .domain-action {
    padding: 8px 6px;
    font-size: 10px;
  }

  .dsec {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .dsec__nav {
    position: static;
    flex-direction: row;
    gap: 6px;
  }

  .dsec__link {
    flex: 1;
    padding: 9px 10px;
    text-align: center;
    font-size: 12px;
  }

  .dsec__panel {
    max-width: none;
  }

  .drt-table th { padding: 0 8px 6px; font-size: 10px; }
  .drt-table td { padding: 8px; }
  .drt__name { display: none; }
  .drt__inp { width: 72px; padding: 6px 7px; font-size: 16px; }
  .drt__save { padding: 7px 12px; font-size: 11px; }

  .dwl {
    flex-wrap: wrap;
    gap: 8px;
    padding: 9px 10px;
  }

  .dwl__meta { flex: 1 1 auto; }

  .dwl__addr { flex: 0 0 100%; font-size: 16px; }

  .set-zone__head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .set-zone__tools {
    width: 100%;
    justify-content: space-between;
  }

  .set-search {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  .set-form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .set-form-row__label {
    flex: none;
  }

  .set-table {
    display: block;
    overflow-x: auto;
  }

  .card {
    padding: 18px 16px;
    margin-bottom: 16px;
    border-radius: 14px;
  }

  .card__title {
    font-size: 15px;
  }

  /* legacy card buttons */
  .btn-primary {
    width: 100%;
    min-height: 48px;
    margin-top: 12px;
  }

  .logo-upload {
    flex-direction: column;
    align-items: stretch;
  }

  .logo-upload__btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .logo-upload__name {
    text-align: center;
  }

  .logo-preview {
    justify-content: center;
  }

  /* ── Rates table scroll ── */
  .card .table-wrap {
    margin-left: -16px;
    margin-right: -16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .rate-input {
    width: 100%;
    min-width: 72px;
    min-height: 40px;
    font-size: 14px;
  }

  /* ── Modal (mobile) ── */
  .modal {
    padding: 0;
    align-items: flex-end;
  }

  .modal:not(.hidden) .modal__content {
    animation: modalSheetIn 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  }

  @keyframes modalSheetIn {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: none; }
  }

  /* Все модалки — шторки снизу: закрываются свайпом вниз или тапом по фону,
     поэтому крестик не нужен, а полоска-«ручка» подсказывает жест. */
  /* .modal — чтобы перебить `.modal--wizard/.modal--order .modal__content{max-width:…}` */
  .modal .modal__content {
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
  }

  /* .modal — чтобы перебить `.modal--order .modal__content::before {display:none}` */
  .modal .modal__content::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    margin: 10px auto 0;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    flex-shrink: 0;
  }

  .modal__close {
    display: none;
  }

  .modal__header {
    padding: 12px 16px 14px;
  }

  .omx-pair {
    padding: 16px;
    gap: 10px;
  }

  .omx-coin__amt { font-size: 15px; }

  .omx-rows { padding: 2px 16px; }

  .omx-sec { padding: 14px 16px; }

  .omx-sec:last-child {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .omx-seg__btn {
    padding: 10px 4px;
    font-size: 11px;
  }

  .modal__body {
    padding: 18px;
  }

  .modal__actions {
    flex-direction: column-reverse;
    gap: 8px;
  }

  .modal__actions .btn-primary,
  .modal__actions .btn-cancel {
    width: 100%;
    min-height: 48px;
  }

  /* ── Toast ── */
  .toast {
    left: 16px;
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    text-align: center;
  }

  .empty-msg {
    padding: 32px 16px;
  }

  .login__input,
  .settings-input,
  .settings-textarea,
  .wallet-row__input,
  .set-wallet__addr,
  .set-spread__inp,
  .rate-input,
  .modal__body select,
  .modal__body textarea,
  .modal__body input[type="text"] {
    font-size: 16px;
  }
}

@media (max-width: 380px) {
  .main {
    padding: 10px;
  }

  .set-header__title {
    font-size: 18px;
  }

  .set-zone {
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .set-wallet {
    padding: 7px 10px;
    gap: 5px 6px;
  }

  .set-wallet__name {
    font-size: 10px;
  }

  .set-wallet__addr {
    font-size: 16px;
  }

  .set-spread {
    padding: 7px 10px;
  }

  .set-spread__fields {
    gap: 8px;
  }

  .set-spread__inp {
    width: 48px;
  }

  .orders-table tr.orders-row {
    padding: 0;
  }

  .card {
    padding: 14px 12px;
  }

  .order-coin__icon {
    width: 28px;
    height: 28px;
  }
}

/* ====== DEPOSITS ====== */
.dep-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 48px;
  padding: 8px 0 28px;
  margin-bottom: 8px;
}

.dep-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
}

.dep-stat__label {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.dep-stat__value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.dep-stat__value--total {
  color: var(--success);
}

.dep-log__check {
  width: 20px;
}

.dep-log__check-icon {
  display: block;
}

.dep-log__usd {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.dep-log__coin {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.dep-log__lead {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
}

.dep-log__time {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.dep-log__addr {
  display: inline-block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
}

a.dep-log__addr:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.dep-log__country {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 140px;
}

.dep-log__country span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .dep-stats {
    gap: 20px;
    padding-bottom: 20px;
  }

  .dep-stat__value {
    font-size: 22px;
  }
}
