.admin-server-section {
  width: 100%;
  max-width: 1120px;
  margin: 48px auto 0 auto;
  padding: 40px;
  border-radius: 32px;
  background: #f4f1ea;
  border: 1px solid rgba(15, 15, 15, 0.08);
  box-shadow: 0 20px 60px rgba(15, 15, 15, 0.04);
}

.admin-server-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 24px 80px;
  box-sizing: border-box;
}

.admin-server-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.admin-server-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.06);
  color: #8d6e3b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-server-title {
  margin-top: 14px;
  font-size: 64px;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.admin-server-description {
  max-width: 560px;
  margin-top: 18px;
  color: rgba(15, 15, 15, 0.6);
  font-size: 16px;
  line-height: 1.7;
}

.admin-server-status {
  min-width: 180px;
  padding: 18px 20px;
  border-radius: 22px;
  background: #0f0f0f;
  color: #ffffff;
}

.admin-server-status-label {
  display: block;
  margin-bottom: 8px;
  opacity: 0.6;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.admin-server-status-text {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.admin-server-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.admin-server-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-server-field span {
  font-size: 14px;
  font-weight: 600;
  color: rgba(15, 15, 15, 0.7);
}

.admin-server-field input {
  height: 62px;
  padding: 0 20px;
  border-radius: 20px;
  border: 1px solid rgba(15, 15, 15, 0.08);
  background: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  transition: 0.2s ease;
}

.admin-server-field input:focus {
  outline: none;
  border-color: rgba(15, 15, 15, 0.2);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(15, 15, 15, 0.04);
}

.admin-server-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.admin-server-actions .button {
  min-width: 220px;
  height: 58px;
  border-radius: 18px;
}

.admin-server-actions {
  align-items: stretch;
}

.admin-server-actions .button {
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 900px) {
  .admin-node-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-nodes-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-nodes-head .button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .admin-node-card-top {
    flex-direction: column;
  }

  .admin-node-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .admin-server-section {
    padding: 28px;
  }

  .admin-server-header {
    flex-direction: column;
  }

  .admin-server-title {
    font-size: 42px;
  }

  .admin-server-grid {
    grid-template-columns: 1fr;
  }

  .admin-server-actions {
    flex-direction: column;
  }

  .admin-server-actions .button {
    width: 100%;
  }
}

.admin-server-header-compact {
  align-items: stretch;
  margin-bottom: 24px;
}

.admin-node-form {
  display: grid;
  gap: 18px;
}

.admin-node-info {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid rgba(15, 15, 15, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.56);
}

.admin-node-info strong {
  font-size: 16px;
  letter-spacing: -0.03em;
}

.admin-node-info p {
  color: rgba(15, 15, 15, 0.62);
  font-size: 14px;
  line-height: 1.55;
}

.admin-nodes-block {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.admin-nodes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-nodes-head strong {
  display: block;
  font-size: 17px;
  letter-spacing: -0.04em;
}

.admin-nodes-head span {
  display: block;
  margin-top: 4px;
  color: rgba(15, 15, 15, 0.55);
  font-size: 13px;
}

.admin-nodes-head .button {
  min-width: 140px;
  height: 44px;
  border-radius: 16px;
}

.admin-nodes-list {
  display: grid;
  gap: 12px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.admin-node-empty {
  padding: 18px;
  border: 1px dashed rgba(15, 15, 15, 0.16);
  border-radius: 20px;
  color: rgba(15, 15, 15, 0.55);
  background: rgba(255, 255, 255, 0.42);
  font-size: 14px;
}

.admin-node-card {
  padding: 16px;
  border: 1px solid rgba(15, 15, 15, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
}

.admin-node-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-node-card-top strong {
  display: block;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.05em;
}

.admin-node-card-top span {
  display: block;
  margin-top: 5px;
  color: rgba(15, 15, 15, 0.56);
  font-size: 13px;
}

.admin-node-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.08);
  color: rgba(15, 15, 15, 0.7);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.admin-node-status-ssh_checked {
  background: rgba(38, 134, 83, 0.12);
  color: #267a4f;
}

.admin-node-status-ssh_error {
  background: rgba(176, 46, 46, 0.12);
  color: #9f2d2d;
}

.admin-node-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-node-grid div {
  min-width: 0;
  padding: 12px;
  border-radius: 16px;
  background: rgba(244, 241, 234, 0.82);
}

.admin-node-grid span {
  display: block;
  margin-bottom: 5px;
  color: rgba(15, 15, 15, 0.48);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-node-grid strong {
  display: block;
  overflow-wrap: anywhere;
  color: rgba(15, 15, 15, 0.86);
  font-size: 13px;
  line-height: 1.35;
}

.admin-node-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.admin-node-actions .button {
  min-height: 44px;
  border-radius: 16px;
}

.admin-balance-form {
  display: grid;
  gap: 16px;
}

.admin-balance-form [data-admin-balance-step] {
  display: grid;
  gap: 16px;
}

.admin-users-list {
  display: grid;
  gap: 12px;
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}

.admin-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(15, 15, 15, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
}

.admin-user-card strong {
  display: block;
  font-size: 17px;
  letter-spacing: -0.04em;
}

.admin-user-card span {
  display: block;
  margin-top: 5px;
  color: rgba(15, 15, 15, 0.55);
  font-size: 13px;
}

.admin-user-card em {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.08);
  color: rgba(15, 15, 15, 0.78);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.account-balance-button {
  width: fit-content;
  min-height: 38px;
  margin-top: 14px;
  padding: 0 15px;
  font-size: 13px;
}

.subscriptions-block {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.subscriptions-list {
  display: grid;
  gap: 12px;
}

.subscription-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(15, 15, 15, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
}

.subscription-card-deleted {
  opacity: .62;
}

.subscription-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.subscription-card-top em {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(21, 21, 21, .07);
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.subscription-card strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.04em;
}

.subscription-card span {
  display: block;
  margin-top: 4px;
  color: rgba(15, 15, 15, 0.56);
  font-size: 13px;
}

.subscription-link-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
}

.subscription-link-row input {
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 241, .65);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  outline: none;
}

.subscription-link-row .button {
  height: 48px;
  border-radius: 16px;
}

@media (max-width: 640px) {
  .subscription-card-top {
    display: grid;
  }

  .subscription-card-top em {
    width: fit-content;
  }

  .subscription-link-row {
    grid-template-columns: 1fr;
  }

  .subscription-link-row .button {
    width: 100%;
  }
}

.admin-server-field select {
  height: 62px;
  padding: 0 20px;
  border-radius: 20px;
  border: 1px solid rgba(15, 15, 15, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 15px;
  transition: 0.2s ease;
}

.admin-server-field select:focus {
  outline: none;
  border-color: rgba(15, 15, 15, 0.2);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(15, 15, 15, 0.04);
}

@media (max-width: 860px) {
  .admin-actions-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .admin-actions-grid {
    grid-template-columns: 1fr;
  }

  .admin-actions-grid .admin-back-card .button {
    min-height: 52px;
  }
}

@media (max-width: 640px) {
  .admin-server-status {
    width: 100%;
  }
}




/* Admin dashboard redesign */
body.admin-dashboard-page {
  background: #f7f4ee;
}

body.admin-dashboard-page::before {
  display: none;
}

.admin-dashboard-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  color: #1f1d19;
  background: #f7f4ee;
}

.admin-dashboard-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 30px 22px 24px;
  border-right: 1px solid rgba(32, 29, 24, 0.08);
  background: #fbf8f1;
}

.admin-dashboard-logo {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-size: 28px;
  font-weight: 820;
  letter-spacing: -0.065em;
}

.admin-dashboard-nav {
  display: grid;
  gap: 8px;
}

.admin-dashboard-nav a,
.admin-dashboard-nav button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(31, 29, 25, 0.72);
  font: inherit;
  font-size: 14px;
  font-weight: 690;
  text-align: left;
  cursor: pointer;
  transition: 0.18s ease;
}

.admin-dashboard-nav a:hover,
.admin-dashboard-nav button:hover,
.admin-dashboard-nav .is-active {
  color: #11100e;
  background: #f1eadc;
}

.admin-dashboard-nav-icon {
  width: 21px;
  display: inline-flex;
  justify-content: center;
  color: rgba(31, 29, 25, 0.78);
  font-size: 18px;
  line-height: 1;
}

.admin-dashboard-help {
  display: grid;
  gap: 9px;
  margin-top: auto;
  padding: 18px;
  border: 1px solid rgba(32, 29, 24, 0.08);
  border-radius: 15px;
  background: #f7f2e8;
}

.admin-dashboard-help strong {
  font-size: 14px;
  letter-spacing: -0.03em;
}

.admin-dashboard-help span {
  color: rgba(31, 29, 25, 0.58);
  font-size: 13px;
  line-height: 1.45;
}

.admin-dashboard-help-button {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: #141311;
  color: #fffaf1;
  font-weight: 760;
  cursor: pointer;
}

.admin-dashboard-help-button span {
  color: inherit;
  font-size: 13px;
}

.admin-dashboard-content {
  min-width: 0;
}

.admin-dashboard-topbar {
  height: 74px;
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 48px minmax(260px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 0 30px;
  border-bottom: 1px solid rgba(32, 29, 24, 0.08);
  background: rgba(251, 248, 241, 0.86);
  backdrop-filter: blur(18px);
}

.admin-dashboard-menu-button,
.admin-dashboard-bell,
.admin-dashboard-logout {
  border: 1px solid rgba(32, 29, 24, 0.08);
  background: #fffaf1;
  color: #151410;
  cursor: pointer;
}

.admin-dashboard-menu-button {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-size: 18px;
}

.admin-dashboard-search {
  width: min(520px, 100%);
  height: 42px;
  justify-self: end;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(32, 29, 24, 0.08);
  border-radius: 12px;
  background: #fffaf1;
}

.admin-dashboard-search span {
  color: rgba(31, 29, 25, 0.42);
  font-size: 18px;
}

.admin-dashboard-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1f1d19;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

.admin-dashboard-search kbd {
  padding: 2px 7px;
  border-radius: 7px;
  background: #f2eadc;
  color: rgba(31, 29, 25, 0.45);
  font-size: 12px;
  font-weight: 760;
}

.admin-dashboard-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-dashboard-bell {
  width: 42px;
  height: 42px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 18px;
}

.admin-dashboard-bell em {
  min-width: 18px;
  height: 18px;
  position: absolute;
  top: -6px;
  right: -5px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: #141311;
  color: #fffaf1;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.admin-dashboard-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f1eadc;
  font-size: 17px;
  font-weight: 820;
}

.admin-dashboard-user {
  display: grid;
  gap: 2px;
}

.admin-dashboard-user strong {
  font-size: 13px;
  font-weight: 790;
}

.admin-dashboard-user span {
  color: rgba(31, 29, 25, 0.52);
  font-size: 12px;
  font-weight: 600;
}

.admin-dashboard-logout {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  font-size: 17px;
}

.admin-dashboard-main {
  padding: 24px 30px 34px;
}

.admin-dashboard-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.admin-dashboard-title-row h1 {
  margin: 0;
  max-width: none;
  font-size: 32px;
  line-height: 1.06;
  letter-spacing: -0.055em;
  font-weight: 820;
}

.admin-dashboard-title-row p {
  margin-top: 8px;
  color: rgba(31, 29, 25, 0.54);
  font-size: 14px;
  font-weight: 590;
}

.admin-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.admin-dashboard-stat-card,
.admin-dashboard-panel {
  border: 1px solid rgba(32, 29, 24, 0.08);
  background: #fffaf1;
  box-shadow: 0 16px 45px rgba(43, 35, 23, 0.035);
}

.admin-dashboard-stat-card {
  min-height: 108px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 14px;
}

.admin-dashboard-stat-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 17px;
  background: #f4ecdd;
  font-size: 25px;
}

.admin-dashboard-stat-card span,
.admin-dashboard-table-head,
.admin-dashboard-node-row span,
.admin-dashboard-ticket-row span {
  color: rgba(31, 29, 25, 0.52);
  font-size: 12px;
  font-weight: 720;
}

.admin-dashboard-stat-card strong {
  display: block;
  margin-top: 5px;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 850;
}

.admin-dashboard-stat-card em {
  display: block;
  margin-top: 8px;
  color: #469860;
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.9fr);
  gap: 14px;
}

.admin-dashboard-panel {
  min-width: 0;
  padding: 18px;
  border-radius: 14px;
}

.admin-dashboard-panel-head {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-dashboard-panel-head h2 {
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.admin-dashboard-panel-head button,
.admin-dashboard-selects button {
  border: 0;
  background: transparent;
  color: rgba(31, 29, 25, 0.72);
  font: inherit;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

.admin-dashboard-table {
  display: grid;
  gap: 0;
}

.admin-dashboard-table-head,
.admin-dashboard-user-row,
.admin-dashboard-ticket-row {
  display: grid;
  align-items: center;
  gap: 14px;
  min-height: 43px;
  border-bottom: 1px solid rgba(32, 29, 24, 0.065);
}

.admin-dashboard-users-table .admin-dashboard-table-head,
.admin-dashboard-user-row {
  grid-template-columns: 1.05fr 1.2fr 0.8fr 0.9fr;
}

.admin-dashboard-tickets-table .admin-dashboard-table-head,
.admin-dashboard-ticket-row {
  grid-template-columns: 0.45fr 1.35fr 0.9fr 0.8fr 0.85fr;
}

.admin-dashboard-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-dashboard-user-initials {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #f3ecdd;
  color: rgba(31, 29, 25, 0.72);
  font-size: 11px;
  font-weight: 820;
}

.admin-dashboard-user-row strong,
.admin-dashboard-ticket-row strong,
.admin-dashboard-node-row strong {
  min-width: 0;
  overflow: hidden;
  color: #24211c;
  font-size: 13px;
  font-weight: 710;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard-user-row small,
.admin-dashboard-ticket-row small {
  color: rgba(31, 29, 25, 0.56);
  font-size: 12px;
  font-weight: 640;
}

.admin-dashboard-badge {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f2ecdf;
  color: #221f1a;
  font-size: 11px;
  font-weight: 790;
}

.admin-dashboard-badge.is-dark {
  background: #141311;
  color: #fffaf1;
}

.admin-dashboard-badge.is-blue {
  background: #e6eefb;
  color: #3466a9;
}

.admin-dashboard-badge.is-orange {
  background: #fff1d6;
  color: #bb7b1d;
}

.admin-dashboard-badge.is-green {
  background: #e8f5e8;
  color: #438452;
}

.admin-dashboard-node-list {
  display: grid;
}

.admin-dashboard-node-row {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 1fr 1.05fr;
  align-items: center;
  gap: 12px;
  min-height: 45px;
  border-bottom: 1px solid rgba(32, 29, 24, 0.065);
}

.admin-dashboard-status-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 7px;
  border-radius: 50%;
  background: #4da462;
}

.admin-dashboard-status-dot.is-warning {
  background: #e59c29;
}

.admin-dashboard-load {
  display: flex;
  align-items: center;
  gap: 9px;
}

.admin-dashboard-load-track {
  width: 72px;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0eadf;
}

.admin-dashboard-load-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #4da462;
}

.admin-dashboard-load-bar.is-warning {
  background: #e59c29;
}

.admin-dashboard-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-dashboard-actions button {
  min-height: 72px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid rgba(32, 29, 24, 0.08);
  border-radius: 14px;
  background: #fffdf8;
  color: #1f1d19;
  text-align: left;
  cursor: pointer;
  transition: 0.18s ease;
}

.admin-dashboard-actions button:hover {
  transform: translateY(-1px);
  border-color: rgba(32, 29, 24, 0.16);
}

.admin-dashboard-actions span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f3ecdd;
  font-size: 20px;
}

.admin-dashboard-actions strong {
  font-size: 12px;
  line-height: 1.25;
  font-weight: 780;
}

.admin-dashboard-actions em {
  color: rgba(31, 29, 25, 0.52);
  font-style: normal;
  font-weight: 800;
}

.admin-dashboard-chart-panel {
  min-height: 250px;
}

.admin-dashboard-selects {
  display: flex;
  gap: 9px;
}

.admin-dashboard-selects button {
  padding: 8px 11px;
  border: 1px solid rgba(32, 29, 24, 0.08);
  border-radius: 10px;
  background: #fffdf8;
}

.admin-dashboard-chart svg {
  width: 100%;
  height: 210px;
  display: block;
}

.admin-dashboard-chart .grid {
  fill: none;
  stroke: rgba(32, 29, 24, 0.07);
  stroke-width: 1;
}

.admin-dashboard-chart .line {
  fill: none;
  stroke: #1c1b18;
  stroke-width: 3;
  stroke-linecap: round;
}

.admin-dashboard-chart .points circle {
  fill: #1c1b18;
  stroke: #fffaf1;
  stroke-width: 3;
}

.admin-dashboard-chart-labels {
  display: flex;
  justify-content: space-between;
  color: rgba(31, 29, 25, 0.44);
  font-size: 11px;
  font-weight: 690;
}

.admin-dashboard-donut-wrap {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 210px;
}

.admin-dashboard-donut {
  width: 156px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(#151410 0 45%, #b9ac91 45% 80%, #ded3bd 80% 95%, #f1eadc 95% 100%);
  position: relative;
}

.admin-dashboard-donut::after {
  content: "";
  position: absolute;
  inset: 42px;
  border-radius: 50%;
  background: #fffaf1;
}

.admin-dashboard-legend {
  display: grid;
  gap: 14px;
}

.admin-dashboard-legend div {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  color: rgba(31, 29, 25, 0.62);
  font-size: 13px;
  font-weight: 710;
}

.admin-dashboard-legend i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #151410;
}

.admin-dashboard-legend div:nth-child(2) i { background: #b9ac91; }
.admin-dashboard-legend div:nth-child(3) i { background: #ded3bd; }
.admin-dashboard-legend div:nth-child(4) i { background: #f1eadc; border: 1px solid rgba(32, 29, 24, 0.08); }
.admin-dashboard-legend strong { color: rgba(31, 29, 25, 0.72); }

.admin-dashboard-loading,
.admin-dashboard-empty {
  padding: 18px;
  border: 1px dashed rgba(32, 29, 24, 0.14);
  border-radius: 12px;
  color: rgba(31, 29, 25, 0.56);
  font-size: 13px;
  font-weight: 650;
}

@media (max-width: 1180px) {
  .admin-dashboard-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .admin-dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .admin-dashboard-shell {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(32, 29, 24, 0.08);
  }

  .admin-dashboard-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-dashboard-help {
    display: none;
  }

  .admin-dashboard-topbar {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .admin-dashboard-profile {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .admin-dashboard-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-dashboard-main,
  .admin-dashboard-topbar,
  .admin-dashboard-sidebar {
    padding-left: 14px;
    padding-right: 14px;
  }

  .admin-dashboard-logo {
    font-size: 24px;
  }

  .admin-dashboard-nav,
  .admin-dashboard-stats,
  .admin-dashboard-actions,
  .admin-dashboard-donut-wrap {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-search kbd,
  .admin-dashboard-user {
    display: none;
  }

  .admin-dashboard-users-table .admin-dashboard-table-head,
  .admin-dashboard-user-row,
  .admin-dashboard-tickets-table .admin-dashboard-table-head,
  .admin-dashboard-ticket-row,
  .admin-dashboard-node-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 6px;
    padding: 12px 0;
  }

  .admin-dashboard-table-head {
    display: none;
  }
}

/* Compact admin dashboard fix */
@media (min-width: 1181px) {
  .admin-dashboard-shell {
    grid-template-columns: 228px minmax(0, 1fr);
  }

  .admin-dashboard-sidebar {
    gap: 18px;
    padding: 24px 20px 20px;
  }

  .admin-dashboard-logo {
    min-height: 36px;
    font-size: 26px;
  }

  .admin-dashboard-nav {
    gap: 6px;
  }

  .admin-dashboard-nav a,
  .admin-dashboard-nav button {
    min-height: 42px;
    gap: 11px;
    padding: 0 13px;
    border-radius: 11px;
    font-size: 13px;
  }

  .admin-dashboard-nav-icon {
    width: 19px;
    font-size: 16px;
  }

  .admin-dashboard-help {
    gap: 7px;
    padding: 15px;
    border-radius: 14px;
  }

  .admin-dashboard-help-button {
    min-height: 40px;
    margin-top: 6px;
    border-radius: 11px;
  }

  .admin-dashboard-topbar {
    height: 62px;
    grid-template-columns: 40px minmax(260px, 1fr) auto;
    gap: 16px;
    padding: 0 28px;
  }

  .admin-dashboard-menu-button {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 16px;
  }

  .admin-dashboard-search {
    height: 38px;
    max-width: 520px;
    border-radius: 11px;
  }

  .admin-dashboard-bell {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .admin-dashboard-avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .admin-dashboard-main {
    padding: 20px 28px 24px;
  }

  .admin-dashboard-title-row {
    margin-bottom: 16px;
  }

  .admin-dashboard-title-row h1 {
    font-size: 30px;
  }

  .admin-dashboard-title-row p {
    margin-top: 5px;
    font-size: 13px;
  }

  .admin-dashboard-stats {
    gap: 13px;
    margin-bottom: 13px;
  }

  .admin-dashboard-stat-card {
    min-height: 86px;
    gap: 14px;
    padding: 15px;
    border-radius: 13px;
  }

  .admin-dashboard-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    font-size: 22px;
  }

  .admin-dashboard-stat-card strong {
    margin-top: 4px;
    font-size: 22px;
  }

  .admin-dashboard-stat-card em {
    margin-top: 6px;
  }

  .admin-dashboard-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.9fr);
    gap: 13px;
  }

  .admin-dashboard-panel {
    padding: 15px;
    border-radius: 13px;
  }

  .admin-dashboard-panel-head {
    min-height: 28px;
    margin-bottom: 10px;
  }

  .admin-dashboard-panel-head h2 {
    font-size: 17px;
  }

  .admin-dashboard-table-head,
  .admin-dashboard-user-row,
  .admin-dashboard-ticket-row {
    min-height: 35px;
    gap: 12px;
  }

  .admin-dashboard-node-row {
    min-height: 36px;
    gap: 10px;
  }

  .admin-dashboard-user-initials {
    width: 27px;
    height: 27px;
    font-size: 10px;
  }

  .admin-dashboard-user-row strong,
  .admin-dashboard-ticket-row strong,
  .admin-dashboard-node-row strong {
    font-size: 12px;
  }

  .admin-dashboard-user-row small,
  .admin-dashboard-ticket-row small {
    font-size: 11px;
  }

  .admin-dashboard-badge {
    padding: 5px 9px;
    font-size: 10px;
  }

  .admin-dashboard-actions {
    gap: 10px;
  }

  .admin-dashboard-actions button {
    min-height: 58px;
    grid-template-columns: 34px minmax(0, 1fr) 14px;
    gap: 9px;
    padding: 10px;
    border-radius: 12px;
  }

  .admin-dashboard-actions span {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 17px;
  }

  .admin-dashboard-actions strong {
    font-size: 11px;
    line-height: 1.18;
  }

  .admin-dashboard-chart-panel {
    min-height: 190px;
  }

  .admin-dashboard-chart svg {
    height: 148px;
  }

  .admin-dashboard-chart-labels {
    font-size: 10px;
  }

  .admin-dashboard-donut-wrap {
    grid-template-columns: 138px minmax(0, 1fr);
    gap: 20px;
    min-height: 160px;
  }

  .admin-dashboard-donut {
    width: 132px;
  }

  .admin-dashboard-donut::after {
    inset: 36px;
  }

  .admin-dashboard-legend {
    gap: 10px;
  }

  .admin-dashboard-legend div {
    gap: 9px;
    font-size: 12px;
  }

  .admin-dashboard-loading,
  .admin-dashboard-empty {
    padding: 14px;
    border-radius: 11px;
    font-size: 12px;
  }
}

/* Clean admin typography */
.admin-dashboard-page,
.admin-dashboard-page input,
.admin-dashboard-page button,
.admin-dashboard-page textarea,
.admin-dashboard-page select {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  font-feature-settings: "liga" 1, "kern" 1;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.admin-dashboard-logo {
  font-weight: 850;
  letter-spacing: -0.075em;
}

.admin-dashboard-title-row h1 {
  font-weight: 850;
  letter-spacing: -0.06em;
}

.admin-dashboard-panel-head h2 {
  font-weight: 820;
  letter-spacing: -0.045em;
}

.admin-dashboard-nav a,
.admin-dashboard-nav button {
  font-weight: 720;
  letter-spacing: -0.02em;
}

.admin-dashboard-stat-card span,
.admin-dashboard-table-head,
.admin-dashboard-node-row span,
.admin-dashboard-ticket-row span {
  font-weight: 680;
  letter-spacing: -0.01em;
}

.admin-dashboard-stat-card strong {
  font-weight: 850;
  letter-spacing: -0.045em;
}

.admin-dashboard-stat-card em {
  font-weight: 720;
  letter-spacing: -0.015em;
}

.admin-dashboard-user-row strong,
.admin-dashboard-ticket-row strong,
.admin-dashboard-node-row strong {
  font-weight: 720;
  letter-spacing: -0.018em;
}

.admin-dashboard-user-row small,
.admin-dashboard-ticket-row small,
.admin-dashboard-user span,
.admin-dashboard-title-row p {
  font-weight: 560;
  letter-spacing: -0.012em;
}

.admin-dashboard-badge {
  font-weight: 760;
  letter-spacing: -0.012em;
}

.admin-dashboard-actions strong {
  font-weight: 760;
  letter-spacing: -0.018em;
}

.admin-dashboard-actions em,
.admin-dashboard-panel-head button,
.admin-dashboard-selects button {
  font-weight: 720;
  letter-spacing: -0.014em;
}

.admin-dashboard-search input {
  font-weight: 560;
  letter-spacing: -0.012em;
}

.admin-dashboard-help strong {
  font-weight: 780;
  letter-spacing: -0.025em;
}

.admin-dashboard-help span {
  font-weight: 520;
  letter-spacing: -0.01em;
}

.admin-dashboard-help-button {
  font-weight: 760;
  letter-spacing: -0.018em;
}

/* Admin interactive elements */
.admin-dashboard-profile {
  position: relative;
}

.admin-dashboard-icon-button,
.admin-dashboard-user-button,
.admin-dashboard-user-row,
.admin-dashboard-ticket-row,
.admin-dashboard-node-list button.admin-dashboard-node-row {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.admin-dashboard-icon-button {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 250, 242, .72);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.admin-dashboard-icon-button:hover,
.admin-dashboard-user-button:hover {
  transform: translateY(-1px);
  border-color: rgba(21, 21, 21, .18);
  background: #fffaf2;
}

.admin-dashboard-icon-button em {
  position: absolute;
  top: -7px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #151515;
  color: #fffaf2;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.admin-dashboard-user-button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 4px 0 0;
  border-radius: 12px;
}

.admin-dashboard-user-button span {
  display: grid;
  gap: 2px;
  text-align: left;
}

.admin-dashboard-user-button strong {
  font-size: 13px;
  font-weight: 820;
  letter-spacing: -.02em;
}

.admin-dashboard-user-button small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 560;
}

.admin-dashboard-user-button i {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.admin-dashboard-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 80;
  width: 235px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffaf2;
  box-shadow: 0 22px 70px rgba(21, 21, 21, .14);
}

.admin-dashboard-dropdown[hidden] {
  display: none;
}

.admin-dashboard-dropdown strong {
  display: block;
  padding: 6px 8px 10px;
  font-size: 13px;
  font-weight: 820;
  letter-spacing: -.02em;
}

.admin-dashboard-dropdown button {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.admin-dashboard-dropdown button:hover {
  background: rgba(21, 21, 21, .055);
}

.admin-dashboard-dropdown button em {
  min-width: 22px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--soft);
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.admin-dashboard-user-row,
.admin-dashboard-ticket-row,
.admin-dashboard-node-list button.admin-dashboard-node-row {
  width: 100%;
  text-align: left;
}

.admin-dashboard-user-row:hover,
.admin-dashboard-ticket-row:hover,
.admin-dashboard-node-list button.admin-dashboard-node-row:hover {
  background: rgba(21, 21, 21, .035);
}

.admin-dashboard-empty[type="button"] {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.admin-dashboard-chart svg .line {
  fill: none;
  stroke: #151515;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-dashboard-chart svg .grid {
  stroke: rgba(21, 21, 21, .07);
  stroke-width: 1;
}

.admin-dashboard-chart svg .points circle {
  fill: #151515;
  stroke: #fffaf2;
  stroke-width: 4;
}

.admin-dashboard-donut {
  transition: background .2s ease;
}

/* Минималистичная модалка создания ноды */
.node-create-modal {
    max-width: 760px !important;
    width: min(760px, calc(100vw - 28px)) !important;
    padding: 26px !important;
    border-radius: 28px !important;
    background: #f7f1e7 !important;
}

.node-create-modal .modal-header,
.node-create-modal .admin-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.node-create-modal h1,
.node-create-modal h2,
.node-create-modal .modal-title {
    margin: 0 !important;
    font-size: 34px !important;
    line-height: 1.05 !important;
    letter-spacing: -0.04em !important;
}

.node-create-modal .modal-subtitle,
.node-create-modal .admin-modal-subtitle,
.node-create-modal > p {
    max-width: 620px;
    margin: 10px 0 0 !important;
    color: rgba(18, 21, 28, 0.58) !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
}

.node-create-modal .node-create-long-info {
    display: none !important;
}

.node-create-modal .node-create-short-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.node-create-modal .node-create-short-info-card {
    padding: 14px;
    border: 1px solid rgba(18, 21, 28, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.55);
}

.node-create-modal .node-create-short-info-card strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: #0f172a;
}

.node-create-modal .node-create-short-info-card span {
    display: block;
    font-size: 12px;
    line-height: 1.35;
    color: rgba(18, 21, 28, 0.58);
}

.node-create-modal .node-create-section {
    border: 1px solid rgba(18, 21, 28, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.5);
    overflow: hidden;
    margin-top: 12px;
}

.node-create-modal .node-create-section-toggle {
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    font: inherit;
    color: #0f172a;
}

.node-create-modal .node-create-section-toggle-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.node-create-modal .node-create-section-number {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex: 0 0 auto;
}

.node-create-modal .node-create-section-title {
    display: block;
    text-align: left;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.1;
}

.node-create-modal .node-create-section-description {
    display: block;
    margin-top: 3px;
    text-align: left;
    font-size: 12px;
    font-weight: 500;
    color: rgba(18, 21, 28, 0.52);
}

.node-create-modal .node-create-section-chevron {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease;
    flex: 0 0 auto;
}

.node-create-modal .node-create-section.is-open .node-create-section-chevron {
    transform: rotate(180deg);
}

.node-create-modal .node-create-section-body {
    display: none;
    padding: 0 18px 18px;
}

.node-create-modal .node-create-section.is-open .node-create-section-body {
    display: block;
}

.node-create-modal .node-create-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.node-create-modal .node-create-grid .full-width {
    grid-column: 1 / -1;
}

.node-create-modal label {
    margin-bottom: 7px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: rgba(15, 23, 42, 0.78) !important;
}

.node-create-modal input,
.node-create-modal select,
.node-create-modal textarea {
    min-height: 50px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    background: rgba(255, 255, 255, 0.76) !important;
    box-shadow: none !important;
}

.node-create-modal input:focus,
.node-create-modal select:focus,
.node-create-modal textarea:focus {
    border-color: rgba(15, 23, 42, 0.22) !important;
    background: #ffffff !important;
    outline: none !important;
}

.node-create-modal .node-create-old-nodes {
    margin-top: 10px;
}

.node-create-modal .node-create-old-nodes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.node-create-modal .node-create-old-nodes-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}

.node-create-modal .node-create-old-nodes-button {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.55);
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.node-create-modal .node-create-old-nodes-content {
    display: none;
}

.node-create-modal .node-create-old-nodes.is-open .node-create-old-nodes-content {
    display: block;
}

.node-create-modal .node-create-actions {
    position: sticky;
    bottom: -26px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 20px -26px -26px;
    padding: 16px 26px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(247, 241, 231, 0.94);
    backdrop-filter: blur(10px);
}

.node-create-modal .node-create-actions button,
.node-create-modal .node-create-actions .btn {
    min-height: 46px;
    border-radius: 16px !important;
}

@media (max-width: 720px) {
    .node-create-modal {
        padding: 20px !important;
    }

    .node-create-modal h1,
    .node-create-modal h2,
    .node-create-modal .modal-title {
        font-size: 28px !important;
    }

    .node-create-modal .node-create-short-info,
    .node-create-modal .node-create-grid {
        grid-template-columns: 1fr;
    }

    .node-create-modal .node-create-actions {
        margin: 18px -20px -20px;
        padding: 14px 20px;
    }
}

/* Страница пользователей в админке */
.admin-users-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    width: 100%;
}

.admin-users-main {
    min-width: 0;
}

.admin-users-title-row {
    margin-bottom: 18px;
}

.admin-users-title-row h1 {
    margin: 0 0 6px;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.admin-users-title-row p {
    margin: 0;
    font-size: 14px;
    color: rgba(15, 23, 42, 0.55);
}

.admin-users-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.admin-users-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 98px;
    padding: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.04);
}

.admin-users-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #f2eadc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    flex: 0 0 auto;
}

.admin-users-stat-icon svg {
    width: 22px;
    height: 22px;
}

.admin-users-stat-label {
    font-size: 12px;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.56);
}

.admin-users-stat-value {
    margin-top: 3px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.admin-users-stat-delta {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 800;
    color: #16934d;
}

.admin-users-content-card,
.admin-users-side-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.04);
}

.admin-users-content-card {
    overflow: hidden;
}

.admin-users-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 145px 145px 145px auto;
    gap: 10px;
    padding: 16px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.admin-users-search,
.admin-users-select {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    color: #0f172a;
    font-size: 13px;
    outline: none;
}

.admin-users-search:focus,
.admin-users-select:focus {
    border-color: rgba(15, 23, 42, 0.22);
    background: #fff;
}

.admin-users-add-btn {
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 14px;
    background: #0f172a;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.admin-users-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-users-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
}

.admin-users-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 800;
    color: rgba(15, 23, 42, 0.58);
    background: rgba(248, 244, 237, 0.8);
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.admin-users-table td {
    padding: 13px 16px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    font-size: 13px;
    color: #0f172a;
    vertical-align: middle;
}

.admin-users-table tr {
    cursor: pointer;
    transition: background 0.16s ease;
}

.admin-users-table tr:hover,
.admin-users-table tr.is-selected {
    background: rgba(242, 234, 220, 0.58);
}

.admin-users-avatar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-users-avatar {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #efe7d9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    font-size: 12px;
    font-weight: 900;
    flex: 0 0 auto;
}

.admin-users-name {
    font-weight: 800;
}

.admin-users-email {
    color: rgba(15, 23, 42, 0.62);
}

.admin-users-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    background: #f1eadc;
    color: #0f172a;
}

.admin-users-badge.is-premium {
    background: #0f172a;
    color: #fff;
}

.admin-users-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.admin-users-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
}

.admin-users-status.is-active {
    background: #ecf8ef;
    color: #168246;
}

.admin-users-status.is-active::before {
    background: #22a45a;
}

.admin-users-status.is-inactive {
    background: #fff4e7;
    color: #d97706;
}

.admin-users-status.is-inactive::before {
    background: #f59e0b;
}

.admin-users-status.is-blocked {
    background: #fff0f0;
    color: #e11d48;
}

.admin-users-status.is-blocked::before {
    background: #e11d48;
}

.admin-users-row-action {
    width: 34px;
    height: 30px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
    color: #0f172a;
    cursor: pointer;
}

.admin-users-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
    color: rgba(15, 23, 42, 0.58);
    font-size: 12px;
}

.admin-users-pagination {
    display: flex;
    align-items: center;
    gap: 7px;
}

.admin-users-page-btn {
    min-width: 32px;
    height: 32px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.74);
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.admin-users-page-btn.is-active {
    background: #0f172a;
    color: #fff;
}

.admin-users-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.admin-users-side-card {
    padding: 16px;
}

.admin-users-profile-top {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-users-profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    background: #efe7d9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    font-size: 22px;
    font-weight: 900;
    flex: 0 0 auto;
}

.admin-users-profile-name {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.admin-users-profile-email,
.admin-users-profile-id {
    margin: 0;
    font-size: 12px;
    color: rgba(15, 23, 42, 0.58);
}

.admin-users-profile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    font-size: 13px;
}

.admin-users-profile-row span:first-child {
    color: rgba(15, 23, 42, 0.58);
    font-weight: 700;
}

.admin-users-profile-row span:last-child {
    color: #0f172a;
    font-weight: 800;
    text-align: right;
}

.admin-users-profile-actions {
    display: grid;
    gap: 9px;
    margin-top: 14px;
}

.admin-users-profile-action {
    min-height: 42px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.65);
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    text-align: left;
    padding: 0 14px;
}

.admin-users-profile-action.is-main {
    background: #f1eadc;
}

.admin-users-profile-action.is-danger {
    border-color: rgba(225, 29, 72, 0.16);
    color: #e11d48;
    background: rgba(255, 240, 240, 0.72);
}

.admin-users-events-title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 900;
    color: #0f172a;
}

.admin-users-event {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    gap: 10px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.admin-users-event:last-child {
    border-bottom: 0;
}

.admin-users-event-dot {
    width: 10px;
    height: 10px;
    margin-top: 4px;
    border-radius: 999px;
    background: #22a45a;
}

.admin-users-event-dot.is-orange {
    background: #f59e0b;
}

.admin-users-event-dot.is-dark {
    background: #0f172a;
}

.admin-users-event-text {
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
}

.admin-users-event-date {
    font-size: 11px;
    color: rgba(15, 23, 42, 0.5);
    white-space: nowrap;
}

.admin-users-chart-card {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.62);
}

.admin-users-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.admin-users-chart-title {
    margin: 0;
    font-size: 17px;
    font-weight: 900;
    color: #0f172a;
}

.admin-users-chart {
    width: 100%;
    height: 220px;
}

@media (max-width: 1280px) {
    .admin-users-page {
        grid-template-columns: 1fr;
    }

    .admin-users-side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .admin-users-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-users-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .admin-users-add-btn {
        grid-column: 1 / -1;
    }

    .admin-users-side {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .admin-users-stats {
        grid-template-columns: 1fr;
    }

    .admin-users-toolbar {
        grid-template-columns: 1fr;
    }

    .admin-users-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

.admin-nodes-page {
  display: grid;
  gap: 18px;
}

.admin-nodes-page[hidden] {
  display: none;
}

.admin-nodes-page-head,
.admin-nodes-page-stats article,
.admin-nodes-page-panel {
  border: 1px solid rgba(19, 19, 19, 0.08);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 50px rgba(20, 16, 10, 0.05);
}

.admin-nodes-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 26px;
  padding: 22px;
}

.admin-nodes-page-head h2 {
  margin: 0;
  color: #111;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.admin-nodes-page-head p {
  margin: 7px 0 0;
  color: rgba(17, 17, 17, 0.56);
  font-size: 14px;
}

.admin-nodes-page-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-nodes-page-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-nodes-page-stats article {
  border-radius: 22px;
  padding: 18px;
}

.admin-nodes-page-stats span {
  display: block;
  color: rgba(17, 17, 17, 0.55);
  font-size: 13px;
  font-weight: 700;
}

.admin-nodes-page-stats strong {
  display: block;
  margin-top: 8px;
  color: #111;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.admin-nodes-page-stats em {
  display: block;
  margin-top: 8px;
  color: rgba(17, 17, 17, 0.42);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.admin-nodes-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.admin-nodes-page-panel {
  border-radius: 26px;
  padding: 16px;
}

.admin-nodes-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-nodes-toolbar input,
.admin-nodes-toolbar select {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 14px;
  background: #fff;
  color: #111;
  padding: 0 14px;
  font: inherit;
  font-weight: 700;
  outline: none;
}

.admin-nodes-real-table {
  display: grid;
  gap: 8px;
}

.admin-nodes-real-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr 0.9fr 0.95fr 0.95fr 0.75fr 0.6fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  padding: 0 12px;
  color: #111;
  text-align: left;
  font: inherit;
}

.admin-nodes-real-row[role="button"] {
  cursor: pointer;
}

.admin-nodes-real-row[role="button"]:hover,
.admin-nodes-real-row.is-selected {
  border-color: rgba(17, 17, 17, 0.08);
  background: rgba(246, 240, 229, 0.72);
}

.admin-nodes-real-head {
  min-height: 36px;
  color: rgba(17, 17, 17, 0.42);
  font-size: 12px;
  font-weight: 800;
}

.admin-nodes-real-row strong {
  font-size: 13px;
  font-weight: 900;
}

.admin-nodes-real-row span {
  min-width: 0;
  color: rgba(17, 17, 17, 0.68);
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-node-page-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.admin-node-page-status.is-ready {
  background: rgba(31, 163, 74, 0.1);
  color: #1f9a48;
}

.admin-node-page-status.is-process {
  background: rgba(231, 140, 37, 0.12);
  color: #d17212;
}

.admin-node-page-status.is-warning {
  background: rgba(230, 53, 53, 0.1);
  color: #dd2d2d;
}

.admin-nodes-load {
  display: grid;
  gap: 7px;
}

.admin-nodes-load b {
  color: #111;
  font-size: 12px;
  line-height: 1;
}

.admin-nodes-load i {
  display: block;
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.08);
}

.admin-nodes-load small {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #111;
}

.admin-nodes-row-action {
  color: #111;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.admin-node-details {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
}

.admin-node-details-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-node-details-head strong {
  display: block;
  color: #111;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.admin-node-details-head span {
  display: block;
  margin-top: 6px;
  color: rgba(17, 17, 17, 0.52);
  font-size: 13px;
  font-weight: 800;
}

.admin-node-details-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 11px 12px;
  padding-top: 4px;
}

.admin-node-details-grid span {
  color: rgba(17, 17, 17, 0.48);
  font-size: 12px;
  font-weight: 800;
}

.admin-node-details-grid strong {
  min-width: 0;
  color: #111;
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.admin-node-details-error {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(230, 53, 53, 0.14);
  border-radius: 16px;
  background: rgba(230, 53, 53, 0.06);
  padding: 12px;
}

.admin-node-details-error strong {
  color: #dd2d2d;
  font-size: 12px;
}

.admin-node-details-error span {
  color: rgba(17, 17, 17, 0.68);
  font-size: 12px;
  line-height: 1.45;
}

.admin-node-details-actions {
  display: grid;
  gap: 10px;
}

@media (max-width: 1180px) {
  .admin-nodes-page-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-nodes-page-layout {
    grid-template-columns: 1fr;
  }

  .admin-node-details {
    position: static;
  }
}

@media (max-width: 820px) {
  .admin-nodes-page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-nodes-page-actions,
  .admin-nodes-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-nodes-page-stats {
    grid-template-columns: 1fr;
  }

  .admin-nodes-real-row,
  .admin-nodes-real-head {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    padding: 12px;
  }

  .admin-nodes-real-head {
    display: none;
  }
}

/* Страница нод и серверов по скелету */
.admin-nodes-screen {
  display: grid;
  gap: 14px;
}

.admin-nodes-screen-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 2px;
}

.admin-nodes-screen-head h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.055em;
  color: #141311;
}

.admin-nodes-screen-head p {
  margin: 8px 0 0;
  color: rgba(31, 29, 25, 0.54);
  font-size: 13px;
  font-weight: 560;
}

.admin-nodes-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 10px;
}

.admin-nodes-quick-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid rgba(32, 29, 24, 0.08);
  border-radius: 12px;
  background: #fffaf1;
  color: #141311;
  font: inherit;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
  transition: 0.18s ease;
}

.admin-nodes-quick-action:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(32, 29, 24, 0.16);
}

.admin-nodes-quick-action:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.admin-nodes-quick-action span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f2eadc;
  font-size: 10px;
  font-weight: 900;
}

.admin-nodes-quick-action.is-dark {
  background: #141311;
  color: #fffaf1;
}

.admin-nodes-quick-action.is-dark span {
  background: rgba(255, 250, 241, 0.14);
  color: #fffaf1;
}

.admin-nodes-screen-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.admin-nodes-stat-card {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border: 1px solid rgba(32, 29, 24, 0.08);
  border-radius: 13px;
  background: #fffaf1;
  box-shadow: 0 16px 45px rgba(43, 35, 23, 0.035);
}

.admin-nodes-stat-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 15px;
  background: #f4ecdd;
  color: #141311;
}

.admin-nodes-stat-icon.is-green {
  color: #2d934d;
}

.admin-nodes-stat-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-nodes-stat-card span {
  color: rgba(31, 29, 25, 0.52);
  font-size: 12px;
  font-weight: 680;
}

.admin-nodes-stat-card strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 850;
}

.admin-nodes-stat-card em {
  display: block;
  margin-top: 6px;
  color: #469860;
  font-size: 12px;
  font-style: normal;
  font-weight: 720;
}

.admin-nodes-stat-card em.is-warning {
  color: #e48f1f;
}

.admin-nodes-screen-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 14px;
  align-items: start;
}

.admin-nodes-main-column,
.admin-nodes-side-column {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.admin-nodes-panel {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(32, 29, 24, 0.08);
  border-radius: 13px;
  background: #fffaf1;
  box-shadow: 0 16px 45px rgba(43, 35, 23, 0.035);
}

.admin-nodes-table-panel {
  overflow: hidden;
}

.admin-nodes-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 140px 140px 140px auto;
  gap: 10px;
  margin-bottom: 18px;
}

.admin-nodes-search-field {
  height: 40px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(32, 29, 24, 0.08);
  border-radius: 11px;
  background: #fffdf8;
}

.admin-nodes-search-field svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: rgba(31, 29, 25, 0.42);
  stroke-width: 2;
}

.admin-nodes-search-field input,
.admin-nodes-toolbar select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1f1d19;
  font: inherit;
  font-size: 12px;
  font-weight: 560;
}

.admin-nodes-toolbar select {
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(32, 29, 24, 0.08);
  border-radius: 11px;
  background: #fffdf8;
}

.admin-nodes-add-button {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  background: #141311;
  color: #fffaf1;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.admin-nodes-add-button span {
  font-size: 17px;
  line-height: 1;
}

.admin-nodes-table-title {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 820;
  letter-spacing: -0.04em;
}

.admin-nodes-real-table {
  display: grid;
  overflow-x: auto;
}

.admin-nodes-real-row {
  min-width: 930px;
  min-height: 40px;
  display: grid;
  grid-template-columns: 0.9fr 1fr 0.9fr 0.95fr 1.05fr 1fr 0.8fr 0.7fr 54px;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  border: 0;
  border-bottom: 1px solid rgba(32, 29, 24, 0.065);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-nodes-real-head {
  min-height: 34px;
  cursor: default;
}

.admin-nodes-real-row:hover:not(.admin-nodes-real-head),
.admin-nodes-real-row.is-selected {
  background: rgba(242, 234, 220, 0.52);
}

.admin-nodes-real-row strong {
  min-width: 0;
  overflow: hidden;
  color: #24211c;
  font-size: 12px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-nodes-real-row span,
.admin-nodes-real-head span {
  min-width: 0;
  overflow: hidden;
  color: rgba(31, 29, 25, 0.62);
  font-size: 12px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-nodes-real-head span {
  color: rgba(31, 29, 25, 0.48);
  font-weight: 760;
}

.admin-node-page-status {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f2ecdf;
  color: #221f1a;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.admin-node-page-status.is-ready {
  background: #e9f8ed;
  color: #238248;
}

.admin-node-page-status.is-warning {
  background: #fff1d6;
  color: #c17a18;
}

.admin-node-page-status.is-process {
  background: #edf2fa;
  color: #4774a8;
}

.admin-nodes-load {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-nodes-load b {
  width: 34px;
  color: #1f1d19;
  font-size: 11px;
  font-weight: 800;
}

.admin-nodes-load i {
  width: 58px;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee7db;
}

.admin-nodes-load small {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #24964d;
}

.admin-nodes-load.is-warning small {
  background: #f07922;
}

.admin-nodes-row-action {
  width: 30px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(32, 29, 24, 0.08);
  border-radius: 9px;
  background: #fffdf8;
  color: #1f1d19;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.admin-nodes-actions-cell {
  position: relative;
  overflow: visible !important;
}

.admin-nodes-row-action {
  cursor: pointer;
}

.admin-nodes-row-action.is-open {
  border-color: rgba(32, 29, 24, 0.18);
  background: #1f1d19;
  color: #fffdf8;
}

.admin-nodes-actions-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  display: none;
  min-width: 156px;
  padding: 6px;
  border: 1px solid rgba(32, 29, 24, 0.08);
  border-radius: 12px;
  background: #fffdf8;
  box-shadow: 0 18px 40px rgba(32, 29, 24, 0.16);
}

.admin-nodes-actions-dropdown.is-open {
  display: grid;
}

.admin-nodes-actions-dropdown button {
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #d93025;
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 820;
  text-align: left;
  cursor: pointer;
}

.admin-nodes-actions-dropdown button:hover {
  background: rgba(217, 48, 37, 0.08);
}

.admin-nodes-actions-dropdown button:disabled {
  opacity: .55;
  cursor: wait;
}

.admin-nodes-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.75fr);
  gap: 14px;
}

.admin-nodes-panel-head {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.admin-nodes-panel-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 820;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.admin-nodes-panel-head button {
  padding: 8px 11px;
  border: 1px solid rgba(32, 29, 24, 0.08);
  border-radius: 10px;
  background: #fffdf8;
  color: rgba(31, 29, 25, 0.72);
  font: inherit;
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
}

.admin-nodes-fake-chart svg {
  width: 100%;
  height: 148px;
  display: block;
}

.admin-nodes-fake-chart .grid {
  fill: none;
  stroke: rgba(21, 21, 21, .07);
  stroke-width: 1;
}

.admin-nodes-fake-chart .line {
  fill: none;
  stroke: #151515;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-nodes-fake-chart circle {
  fill: #151515;
  stroke: #fffaf2;
  stroke-width: 4;
}

.admin-nodes-chart-labels {
  display: flex;
  justify-content: space-between;
  color: rgba(31, 29, 25, 0.44);
  font-size: 10px;
  font-weight: 690;
}

.admin-nodes-region-body {
  min-height: 160px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}

.admin-nodes-donut {
  width: 132px;
  aspect-ratio: 1;
  position: relative;
  border-radius: 50%;
  background: conic-gradient(#151410 0 35%, #b9ac91 35% 55%, #ded3bd 55% 73%, #eee5d5 73% 100%);
}

.admin-nodes-donut::after {
  content: "";
  position: absolute;
  inset: 36px;
  border-radius: 50%;
  background: #fffaf1;
}

.admin-nodes-region-list {
  display: grid;
  gap: 10px;
}

.admin-nodes-region-list div {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  color: rgba(31, 29, 25, 0.62);
  font-size: 12px;
  font-weight: 710;
}

.admin-nodes-region-list i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #151410;
}

.admin-nodes-region-list div:nth-child(2) i {
  background: #b9ac91;
}

.admin-nodes-region-list div:nth-child(3) i {
  background: #ded3bd;
}

.admin-nodes-region-list div:nth-child(4) i {
  background: #eee5d5;
  border: 1px solid rgba(32, 29, 24, 0.08);
}

.admin-nodes-region-list strong {
  color: rgba(31, 29, 25, 0.72);
}

.admin-nodes-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-nodes-mini-stats article {
  min-height: 68px;
  padding: 15px;
  border: 1px solid rgba(32, 29, 24, 0.08);
  border-radius: 13px;
  background: #fffaf1;
}

.admin-nodes-mini-stats span {
  color: rgba(31, 29, 25, 0.52);
  font-size: 12px;
  font-weight: 680;
}

.admin-nodes-mini-stats strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 850;
}

.admin-nodes-mini-stats em {
  display: block;
  margin-top: 5px;
  color: #469860;
  font-size: 12px;
  font-style: normal;
  font-weight: 720;
}

.admin-nodes-mini-stats em.is-warning {
  color: #e48f1f;
}

.admin-node-details-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-node-details-top h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -0.045em;
  color: #141311;
}

.admin-node-details-top p {
  margin: 5px 0 0;
  color: rgba(31, 29, 25, 0.56);
  font-size: 12px;
  font-weight: 620;
}

.admin-node-details-list {
  display: grid;
  gap: 10px;
}

.admin-node-details-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.admin-node-details-list span {
  color: rgba(31, 29, 25, 0.54);
  font-size: 12px;
  font-weight: 680;
}

.admin-node-details-list strong {
  min-width: 0;
  max-width: 160px;
  overflow: hidden;
  color: #1f1d19;
  font-size: 12px;
  font-weight: 780;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-node-config-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.admin-node-config-tags span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  background: #f2eadc;
  color: rgba(31, 29, 25, 0.72);
  font-size: 11px;
  font-weight: 800;
}

.admin-node-details-error {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(198, 72, 72, 0.18);
  border-radius: 12px;
  background: rgba(255, 238, 238, 0.72);
}

.admin-node-details-error strong {
  color: #a63333;
  font-size: 12px;
}

.admin-node-details-error span {
  color: rgba(130, 37, 37, 0.82);
  font-size: 12px;
  line-height: 1.45;
}

.admin-node-details-actions {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.admin-node-details-actions .button {
  min-height: 40px;
  border-radius: 11px;
  font-size: 12px;
}

.button-danger {
  border: 1px solid rgba(235, 72, 72, 0.16);
  background: rgba(255, 245, 245, 0.82);
  color: #e23d3d;
}

.admin-nodes-events-list {
  display: grid;
  gap: 13px;
}

.admin-nodes-events-list div {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.admin-nodes-events-list span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f2eadc;
  color: #141311;
  font-size: 12px;
  font-weight: 900;
}

.admin-nodes-events-list span.is-success {
  background: #e9f8ed;
  color: #238248;
}

.admin-nodes-events-list strong {
  min-width: 0;
  overflow: hidden;
  color: #1f1d19;
  font-size: 12px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-nodes-events-list em {
  grid-column: 2;
  margin-top: -8px;
  color: rgba(31, 29, 25, 0.46);
  font-size: 11px;
  font-style: normal;
  font-weight: 620;
}

.admin-nodes-events-more {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 17px;
  border: 0;
  background: transparent;
  color: #1f1d19;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.admin-remnawave-modal-status {
  width: 100%;
  margin: 18px 0;
}

@media (max-width: 1220px) {
  .admin-nodes-screen-grid {
    grid-template-columns: 1fr;
  }

  .admin-nodes-side-column {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1050px) {
  .admin-nodes-screen-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-nodes-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .admin-nodes-search-field,
  .admin-nodes-add-button {
    grid-column: 1 / -1;
  }

  .admin-nodes-bottom-grid,
  .admin-nodes-side-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .admin-nodes-screen-head {
    display: grid;
  }

  .admin-nodes-quick-actions,
  .admin-nodes-screen-stats,
  .admin-nodes-mini-stats,
  .admin-nodes-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-nodes-region-body {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .admin-nodes-chart-labels {
    display: none;
  }
}

.admin-server-checkbox-field {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 48px;
}

.admin-server-checkbox-field input {
  width: 18px;
  height: 18px;
  accent-color: #f28c28;
}

.admin-server-checkbox-field span {
  margin: 0;
}

.admin-server-file-field small {
  color: rgba(20, 20, 20, 0.55);
  font-size: 12px;
  line-height: 1.3;
}

.admin-nodes-real-chart {
  min-height: 180px;
}

.admin-nodes-real-chart svg {
  width: 100%;
  height: 180px;
  display: block;
}

.admin-nodes-real-chart .grid {
  fill: none;
  stroke: rgba(20, 20, 20, 0.08);
  stroke-width: 1;
}

.admin-nodes-real-chart .line {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-nodes-real-chart circle {
  fill: currentColor;
}

.admin-nodes-region-donut[data-admin-nodes-region-donut] {
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  color: #141414;
}

/* Отдельная страница добавления обычной ноды */
.admin-node-create-page {
    width: 100%;
}

.admin-node-create-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.admin-node-create-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(18, 21, 28, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.64);
    color: rgba(18, 21, 28, 0.76);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.admin-node-create-title {
    flex: 1;
}

.admin-node-create-title span {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 122, 0, 0.12);
    color: #ff6b00;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-node-create-title h1 {
    margin: 0;
    color: #12151c;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.admin-node-create-title p {
    max-width: 720px;
    margin: 12px 0 0;
    color: rgba(18, 21, 28, 0.58);
    font-size: 15px;
    line-height: 1.6;
}

.admin-node-create-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: start;
}

.admin-node-create-card,
.admin-node-create-help-card {
    border: 1px solid rgba(18, 21, 28, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 54px rgba(18, 21, 28, 0.06);
}

.admin-node-create-card {
    padding: 22px;
}

.admin-node-create-section {
    padding: 18px;
    border: 1px solid rgba(18, 21, 28, 0.07);
    border-radius: 24px;
    background: rgba(247, 241, 231, 0.56);
}

.admin-node-create-section + .admin-node-create-section {
    margin-top: 14px;
}

.admin-node-create-section-head {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-node-create-section-head > span {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #12151c;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    flex: 0 0 auto;
}

.admin-node-create-section-head h2,
.admin-node-create-help-card h2 {
    margin: 0;
    color: #12151c;
    font-size: 18px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.admin-node-create-section-head p {
    margin: 5px 0 0;
    color: rgba(18, 21, 28, 0.54);
    font-size: 13px;
    line-height: 1.45;
}

.admin-node-create-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.admin-node-create-wide {
    grid-column: 1 / -1;
}

.admin-node-create-page .admin-server-field {
    gap: 7px;
}

.admin-node-create-page .admin-server-field input,
.admin-node-create-page .admin-server-field select {
    min-height: 50px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
}

.admin-node-create-page .admin-server-field small {
    color: rgba(18, 21, 28, 0.48);
    font-size: 12px;
    line-height: 1.4;
}

.admin-node-create-extra {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}

.admin-node-create-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 78px;
    padding: 15px;
    border: 1px solid rgba(18, 21, 28, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
}

.admin-node-create-check input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #12151c;
}

.admin-node-create-check strong {
    display: block;
    color: #12151c;
    font-size: 14px;
    line-height: 1.2;
}

.admin-node-create-check small {
    display: block;
    margin-top: 5px;
    color: rgba(18, 21, 28, 0.5);
    font-size: 12px;
    line-height: 1.4;
}

.admin-node-create-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 16px -22px -22px;
    padding: 16px 22px;
    border-top: 1px solid rgba(18, 21, 28, 0.08);
    border-radius: 0 0 28px 28px;
    background: rgba(255, 250, 242, 0.92);
    backdrop-filter: blur(14px);
}

.admin-node-create-side {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.admin-node-create-help-card {
    padding: 18px;
}

.admin-node-create-steps {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.admin-node-create-steps div {
    padding: 14px;
    border-radius: 18px;
    background: rgba(247, 241, 231, 0.72);
}

.admin-node-create-steps span {
    display: block;
    margin-bottom: 7px;
    color: #ff6b00;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.admin-node-create-steps strong {
    display: block;
    color: #12151c;
    font-size: 14px;
}

.admin-node-create-steps p {
    margin: 5px 0 0;
    color: rgba(18, 21, 28, 0.54);
    font-size: 12px;
    line-height: 1.45;
}

.admin-node-create-checklist {
    display: grid;
    gap: 10px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.admin-node-create-checklist li {
    position: relative;
    padding-left: 22px;
    color: rgba(18, 21, 28, 0.66);
    font-size: 13px;
    line-height: 1.45;
}

.admin-node-create-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #ff6b00;
}

.admin-node-create-old-nodes-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.admin-node-create-old-nodes-list {
    max-height: 420px;
    overflow: auto;
    padding-right: 4px;
}

.admin-node-create-old-nodes-list .admin-node-card {
    box-shadow: none;
}

.admin-nodes-quick-action,
.admin-nodes-add-button {
    text-decoration: none;
}

@media (max-width: 1120px) {
    .admin-node-create-layout {
        grid-template-columns: 1fr;
    }

    .admin-node-create-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-node-create-side .admin-node-create-help-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .admin-node-create-top {
        flex-direction: column;
    }

    .admin-node-create-layout,
    .admin-node-create-grid,
    .admin-node-create-extra,
    .admin-node-create-side {
        grid-template-columns: 1fr;
    }

    .admin-node-create-card {
        padding: 16px;
        border-radius: 24px;
    }

    .admin-node-create-section {
        padding: 14px;
        border-radius: 20px;
    }

    .admin-node-create-actions {
        margin: 14px -16px -16px;
        padding: 14px 16px;
        border-radius: 0 0 24px 24px;
    }

    .admin-node-create-actions .button {
        width: 100%;
    }
}
/* Нормальная компактная модалка добавления Яндекс-ноды */
[data-node-admin-modal] {
    padding: 18px !important;
}

[data-node-admin-modal] .modal-backdrop {
    background: rgba(18, 21, 28, 0.52);
    backdrop-filter: blur(18px);
}

[data-node-admin-modal] .node-create-modal {
    width: min(920px, calc(100vw - 36px)) !important;
    max-width: 920px !important;
    max-height: calc(100vh - 36px) !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(18, 21, 28, 0.10) !important;
    border-radius: 30px !important;
    background: #fbf6ed !important;
    box-shadow: 0 34px 120px rgba(0, 0, 0, 0.30) !important;
}

[data-node-admin-modal] .node-create-modal .modal-head {
    position: sticky;
    top: 0;
    z-index: 8;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin: 0 !important;
    padding: 24px 28px 18px;
    border-bottom: 1px solid rgba(18, 21, 28, 0.08);
    background: rgba(251, 246, 237, 0.94);
    backdrop-filter: blur(18px);
}

[data-node-admin-modal] .node-create-modal .modal-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 24px;
    padding: 0 10px;
    border: 1px solid rgba(18, 21, 28, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.64);
    color: rgba(18, 21, 28, 0.54);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

[data-node-admin-modal] .node-create-modal .modal-head h2 {
    margin: 9px 0 0 !important;
    color: #080b11 !important;
    font-size: clamp(28px, 4vw, 40px) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.065em !important;
}

[data-node-admin-modal] .node-create-modal .modal-close {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(18, 21, 28, 0.10);
    background: rgba(255, 255, 255, 0.55);
    font-size: 26px;
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

[data-node-admin-modal] .node-create-modal .modal-close:hover {
    transform: rotate(90deg);
    border-color: rgba(18, 21, 28, 0.18);
    background: #ffffff;
}

[data-node-admin-modal] .node-create-modal > .modal-text,
[data-node-admin-modal] .node-create-modal > .admin-node-form {
    width: 100%;
}

[data-node-admin-modal] .node-create-modal > .modal-text {
    max-width: none;
    margin: 0 !important;
    padding: 16px 28px 0;
    color: rgba(18, 21, 28, 0.62) !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
}

[data-node-admin-modal] .admin-node-form {
    max-height: calc(100vh - 176px);
    overflow: auto;
    padding: 18px 28px 0;
    scrollbar-gutter: stable;
}

[data-node-admin-modal] .admin-node-create-section {
    padding: 18px;
    border: 1px solid rgba(18, 21, 28, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 14px 42px rgba(18, 21, 28, 0.045);
}

[data-node-admin-modal] .admin-node-create-section + .admin-node-create-section {
    margin-top: 14px;
}

[data-node-admin-modal] .admin-node-create-section-head {
    align-items: flex-start;
    margin-bottom: 16px;
}

[data-node-admin-modal] .admin-node-create-section-head > span {
    width: 32px;
    height: 32px;
    margin-top: 1px;
    background: #080b11;
    box-shadow: 0 8px 20px rgba(8, 11, 17, 0.18);
}

[data-node-admin-modal] .admin-node-create-section-head h2 {
    margin: 0 !important;
    color: #080b11 !important;
    font-size: 22px !important;
    line-height: 1.08 !important;
    letter-spacing: -0.045em !important;
}

[data-node-admin-modal] .admin-node-create-section-head p {
    margin: 5px 0 0 !important;
    color: rgba(18, 21, 28, 0.52) !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
}

[data-node-admin-modal] .admin-node-create-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

[data-node-admin-modal] .admin-node-create-wide {
    grid-column: 1 / -1;
}

[data-node-admin-modal] .admin-server-field {
    display: grid;
    gap: 7px;
    margin: 0 !important;
}

[data-node-admin-modal] .admin-server-field > span {
    color: rgba(18, 21, 28, 0.76);
    font-size: 13px;
    font-weight: 850;
}

[data-node-admin-modal] .admin-server-field input,
[data-node-admin-modal] .admin-server-field select,
[data-node-admin-modal] .admin-server-field textarea {
    width: 100%;
    min-height: 54px !important;
    padding: 0 16px !important;
    border: 1px solid rgba(18, 21, 28, 0.08) !important;
    border-radius: 17px !important;
    background: rgba(255, 255, 255, 0.88) !important;
    color: #080b11 !important;
    font-size: 15px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.70) !important;
}

[data-node-admin-modal] .admin-server-field input:focus,
[data-node-admin-modal] .admin-server-field select:focus,
[data-node-admin-modal] .admin-server-field textarea:focus {
    border-color: rgba(8, 11, 17, 0.24) !important;
    background: #ffffff !important;
    outline: 3px solid rgba(8, 11, 17, 0.06) !important;
}

[data-node-admin-modal] .admin-server-field small {
    color: rgba(18, 21, 28, 0.48) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

[data-node-admin-modal] .admin-server-checkbox-field {
    display: flex !important;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    margin: 0 !important;
    padding: 12px 14px;
    border: 1px solid rgba(18, 21, 28, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.62);
    cursor: pointer;
}

[data-node-admin-modal] .admin-server-checkbox-field + .admin-server-checkbox-field {
    margin-top: 8px !important;
}

[data-node-admin-modal] .admin-server-checkbox-field input {
    width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    padding: 0 !important;
    accent-color: #080b11;
    flex: 0 0 auto;
}

[data-node-admin-modal] .admin-server-checkbox-field span {
    color: #080b11;
    font-size: 14px;
    font-weight: 850;
}

[data-node-admin-modal] .admin-server-status {
    margin: 16px 0 0;
    padding: 14px 16px;
    border: 1px solid rgba(18, 21, 28, 0.08);
    border-radius: 18px;
    background: rgba(8, 11, 17, 0.04);
}

[data-node-admin-modal] .admin-server-status-label {
    margin-bottom: 6px;
    color: rgba(18, 21, 28, 0.48);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

[data-node-admin-modal] .admin-server-status-text {
    overflow-wrap: anywhere;
    color: #080b11;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
}

[data-node-admin-modal] .form-message {
    margin-top: 14px;
}

[data-node-admin-modal] .admin-server-actions {
    position: sticky;
    bottom: 0;
    z-index: 7;
    display: flex;
    justify-content: flex-end;
    margin: 18px -28px 0;
    padding: 16px 28px 20px;
    border-top: 1px solid rgba(18, 21, 28, 0.08);
    background: rgba(251, 246, 237, 0.94);
    backdrop-filter: blur(18px);
}

[data-node-admin-modal] .admin-server-actions .button {
    min-height: 48px;
    padding: 0 22px;
    border-radius: 16px;
}

@media (max-width: 760px) {
    [data-node-admin-modal] {
        padding: 10px !important;
    }

    [data-node-admin-modal] .node-create-modal {
        width: calc(100vw - 20px) !important;
        max-height: calc(100vh - 20px) !important;
        border-radius: 24px !important;
    }

    [data-node-admin-modal] .node-create-modal .modal-head {
        padding: 20px 18px 14px;
    }

    [data-node-admin-modal] .node-create-modal > .modal-text {
        padding: 14px 18px 0;
        font-size: 14px !important;
    }

    [data-node-admin-modal] .admin-node-form {
        max-height: calc(100vh - 158px);
        padding: 16px 18px 0;
    }

    [data-node-admin-modal] .admin-node-create-section {
        padding: 15px;
        border-radius: 20px;
    }

    [data-node-admin-modal] .admin-node-create-grid {
        grid-template-columns: 1fr;
    }

    [data-node-admin-modal] .admin-server-actions {
        margin-inline: -18px;
        padding: 14px 18px 18px;
    }

    [data-node-admin-modal] .admin-server-actions .button {
        width: 100%;
    }
}


/* SVG-only admin icons polish */
.admin-svg-icon {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  vertical-align: -0.16em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-svg-icon circle[fill],
.admin-svg-icon path[fill] {
  stroke: none;
}

.admin-dashboard-nav-icon,
.admin-dashboard-stat-icon,
.admin-dashboard-actions a > span,
.admin-nodes-quick-action > span,
.admin-nodes-add-button > span,
.admin-dashboard-icon-button > span,
.admin-dashboard-menu-button,
.modal-close,
.admin-users-row-action,
.admin-nodes-row-action,
.admin-node-event-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-dashboard-nav-icon .admin-svg-icon {
  width: 17px;
  height: 17px;
  stroke-width: 1.9;
}

.admin-dashboard-stat-icon .admin-svg-icon {
  width: 25px;
  height: 25px;
  stroke-width: 1.75;
}

.admin-dashboard-actions a > span .admin-svg-icon,
.admin-nodes-quick-action > span .admin-svg-icon,
.admin-nodes-add-button > span .admin-svg-icon {
  width: 18px;
  height: 18px;
}

.admin-dashboard-actions a em .admin-svg-icon,
.admin-dashboard-help-button .admin-svg-icon,
.admin-svg-icon-arrow {
  width: 16px;
  height: 16px;
}

.admin-dashboard-search > span .admin-svg-icon,
.admin-dashboard-menu-button .admin-svg-icon,
.admin-dashboard-icon-button .admin-svg-icon {
  width: 18px;
  height: 18px;
}

.admin-dashboard-user-button i .admin-svg-icon,
.admin-svg-icon-chevron {
  width: 14px;
  height: 14px;
}

.modal-close .admin-svg-icon,
.admin-users-row-action .admin-svg-icon,
.admin-nodes-row-action .admin-svg-icon {
  width: 18px;
  height: 18px;
}

.admin-node-event-icon .admin-svg-icon {
  width: 16px;
  height: 16px;
}

.admin-inline-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.admin-inline-status .admin-svg-icon {
  width: 14px;
  height: 14px;
}

.tariff-check-svg { width: 15px; height: 15px; }

/* Users admin page — proportional dashboard layout */
.admin-users-page {
  align-items: start;
}

.admin-users-add-btn,
.admin-users-profile-action,
.admin-users-events-more {
  text-decoration: none;
}

.admin-users-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-users-stat-delta.is-orange {
  color: #d97706;
}

.admin-users-table tbody tr:first-child:last-child td[colspan] {
  padding: 24px 16px;
  color: rgba(15, 23, 42, 0.55);
  text-align: center;
}

.admin-users-profile-action {
  display: inline-flex;
  align-items: center;
}

.admin-users-events-more {
  display: inline-flex;
  margin-top: 12px;
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
}

.admin-users-chart line {
  stroke: rgba(15, 23, 42, 0.08);
  stroke-width: 1;
}

.admin-users-chart polyline {
  fill: none;
  stroke: #0f172a;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-users-chart circle {
  fill: #0f172a;
}

@media (min-width: 1281px) {
  .admin-users-page {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .admin-users-toolbar {
    grid-template-columns: minmax(230px, 1fr) 150px 150px 150px auto;
  }
}

/* Statistics admin page */
.admin-statistics-kpis {
  margin-bottom: 14px;
}

.admin-statistics-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.admin-statistics-left {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.admin-statistics-dynamics-panel {
  min-height: 320px;
}

.admin-statistics-dynamics-panel .admin-dashboard-panel-head p {
  margin-top: 8px;
  color: rgba(31, 29, 25, 0.5);
  font-size: 12px;
  font-weight: 680;
}

.admin-statistics-period {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 39px;
  padding: 0 13px;
  border: 1px solid rgba(32, 29, 24, 0.08) !important;
  border-radius: 11px;
  background: #fffdf8 !important;
  color: #25221d !important;
  font-size: 12px !important;
  font-weight: 820 !important;
}

.admin-statistics-chart svg {
  width: 100%;
  height: 260px;
  display: block;
}

.admin-statistics-grid {
  fill: none;
  stroke: rgba(32, 29, 24, 0.07);
  stroke-width: 1;
}

.admin-statistics-income-line,
.admin-statistics-users-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.2;
}

.admin-statistics-income-line { stroke: #11100e; }
.admin-statistics-users-line { stroke: #d8b980; }

.admin-statistics-income-dot,
.admin-statistics-users-dot {
  stroke: #fffaf1;
  stroke-width: 3;
}

.admin-statistics-income-dot { fill: #11100e; }
.admin-statistics-users-dot { fill: #d8b980; }

.admin-statistics-axis-label {
  fill: rgba(31, 29, 25, 0.44);
  font-size: 12px;
  font-weight: 760;
}

.admin-statistics-chart-labels,
.admin-statistics-chart-legend {
  display: flex;
  align-items: center;
  color: rgba(31, 29, 25, 0.48);
  font-size: 11px;
  font-weight: 720;
}

.admin-statistics-chart-labels {
  justify-content: space-between;
  padding: 0 6px;
}

.admin-statistics-chart-legend {
  gap: 20px;
  margin-top: 12px;
  color: rgba(31, 29, 25, 0.64);
}

.admin-statistics-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-statistics-chart-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #11100e;
}

.admin-statistics-chart-legend span:nth-child(2) i {
  background: #d8b980;
}

.admin-statistics-mini-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 14px;
}

.admin-statistics-donut-card,
.admin-statistics-regions-card {
  min-height: 178px;
}

.admin-statistics-donut-wrap {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
}

.admin-statistics-donut {
  width: 118px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(#11100e 0 34%, #d8b980 34% 75%, #e5d6b8 75% 93%, #f2eadc 93% 100%);
  position: relative;
}

.admin-statistics-donut::after {
  content: "";
  position: absolute;
  inset: 32px;
  border-radius: 50%;
  background: #fffaf1;
}

.admin-statistics-legend {
  display: grid;
  gap: 11px;
}

.admin-statistics-legend div {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  color: rgba(31, 29, 25, 0.64);
  font-size: 12px;
  font-weight: 780;
}

.admin-statistics-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.admin-statistics-legend strong {
  color: #24211c;
}

.admin-statistics-regions {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.admin-statistics-region-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 11px;
  color: rgba(31, 29, 25, 0.68);
  font-size: 12px;
  font-weight: 790;
}

.admin-statistics-region-row div {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0eadf;
}

.admin-statistics-region-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #d8b980;
}

.admin-statistics-region-row i.is-dark {
  background: #11100e;
}

.admin-statistics-region-row strong {
  text-align: right;
  color: rgba(31, 29, 25, 0.62);
}

.admin-statistics-summary {
  display: grid;
  gap: 12px;
}

.admin-statistics-summary .admin-dashboard-panel-head {
  margin-bottom: 0;
}

.admin-statistics-summary-list {
  display: grid;
  gap: 0;
}

.admin-statistics-summary-list div {
  min-height: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: rgba(31, 29, 25, 0.68);
  font-size: 13px;
  font-weight: 760;
}

.admin-statistics-summary-list strong {
  color: #24211c;
  font-weight: 820;
}

.admin-statistics-main-action,
.admin-statistics-ghost-action,
.admin-statistics-danger-action {
  width: 100%;
  min-height: 43px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.admin-statistics-main-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  background: #11100e;
  color: #fffaf1;
}

.admin-statistics-ghost-action {
  border: 1px solid rgba(32, 29, 24, 0.08);
  background: #fffdf8;
  color: #29251f;
}

.admin-statistics-danger-action {
  border: 1px solid rgba(239, 68, 68, 0.18);
  background: #fffdf8;
  color: #ef4444;
}

.admin-statistics-table-panel {
  margin-bottom: 14px;
}

.admin-statistics-table-wrap {
  overflow-x: auto;
}

.admin-statistics-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-statistics-table th,
.admin-statistics-table td {
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(32, 29, 24, 0.065);
  color: rgba(31, 29, 25, 0.7);
  font-size: 12px;
  font-weight: 760;
  text-align: left;
  white-space: nowrap;
}

.admin-statistics-table th {
  color: rgba(31, 29, 25, 0.46);
  font-size: 11px;
  font-weight: 850;
}

.admin-statistics-table tbody tr:first-child {
  background: rgba(245, 236, 220, 0.58);
}

.admin-statistics-table strong {
  color: #24211c;
  font-weight: 860;
}

.admin-statistics-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 8px;
  background: #edf8ee;
  color: #43a15d;
  font-size: 11px;
  font-weight: 850;
}

.admin-statistics-status.is-growth { background: #edf8ee; color: #43a15d; }
.admin-statistics-status.is-stable { background: #edf8ee; color: #43a15d; }
.admin-statistics-status.is-warning { background: #fff4df; color: #d97706; }
.admin-statistics-status.is-low { background: #fff0e8; color: #f05a37; }

.admin-statistics-bottom-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-dashboard-stat-card em.is-orange,
.admin-statistics-bottom-kpis em.is-orange {
  color: #d97706;
}

@media (max-width: 1280px) {
  .admin-statistics-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 940px) {
  .admin-statistics-mini-grid,
  .admin-statistics-bottom-kpis {
    grid-template-columns: 1fr;
  }
}

@media print {
  .admin-dashboard-sidebar,
  .admin-dashboard-topbar,
  .admin-statistics-summary button {
    display: none !important;
  }

  .admin-dashboard-shell,
  .admin-statistics-layout {
    display: block !important;
  }

  .admin-dashboard-content {
    padding: 0 !important;
  }
}
