@charset "UTF-8";
ul {
  margin: 0;
  list-style: none;
  padding: 0;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

a {
  text-decoration: none;
}

button {
  border: none;
  cursor: pointer;
}

address {
  font-style: normal;
}

img {
  display: block;
}

input {
  border: none;
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

body {
  background-color: var(--bg);
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
  color: white;
}

a {
  color: var(--text);
}

select:focus, input:focus {
  outline: none;
  box-shadow: none;
}

select:focus-visible, input:focus-visible {
  outline: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
}

/* ================================
   SCROLLBAR
================================ */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-pages);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-pages);
  border-radius: 999px;
  border: 2px solid var(--bg-pages);
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  filter: brightness(1.15);
}

::-webkit-scrollbar-thumb:active {
  filter: brightness(0.9);
}

::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

::-webkit-scrollbar-button:single-button {
  display: none;
}

/* Firefox */
html {
  scrollbar-width: auto;
  scrollbar-color: var(--bg-pages) var(--bg);
}

/* ╔╗─╔╗╔═══╗╔═══╗╔═══╗╔═══╗╔═══╗ */
/* ║║─║║║╔══╝║╔═╗║╚╗╔╗║║╔══╝║╔═╗║ */
/* ║╚═╝║║╚══╗║║─║║─║║║║║╚══╗║╚═╝║ */
/* ║╔═╗║║╔══╝║╚═╝║─║║║║║╔══╝║╔╗╔╝ */
/* ║║─║║║╚══╗║╔═╗║╔╝╚╝║║╚══╗║║║╚╗ */
/* ╚╝─╚╝╚═══╝╚╝─╚╝╚═══╝╚═══╝╚╝╚═╝ */
.header {
  height: 64px;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 0 24px;
  background-color: var(--bg);
  position: relative;
  z-index: 100;
}

.header--transparent {
  background: transparent;
}

/* Dashboard's header sits over a photo/hero backdrop, so on the light theme
   its text and icons need to stay white instead of the usual blue —
   scoped to header--transparent only, which today is unique to Dashboard. */
[data-theme=light] .header--transparent {
  --text: #FFFFFF;
  --accent-color: #FFFFFF;
}

.logo-with-nav-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 60px;
  color: var(--text);
}

.bot-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.bot-logo-svg {
  height: 32px;
  fill: var(--accent-color);
  margin: 0 4px;
}

.bot-logo-title {
  font-size: 24px;
  font-weight: var(--text);
  font-weight: 800;
}

.nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 42px;
}

.header-nav-svg {
  fill: var(--accent-color);
  width: 16px;
  height: 16px;
}

.header-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-right-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 44px;
}

.header-right-wrap--auth {
  gap: 20px;
}

.header-right-svg {
  fill: var(--accent-color);
}

.header-right-btn {
  background: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  padding: 8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-dots-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.header-dots-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background-color: var(--bg-burger);
  width: 320px;
  overflow: hidden;
  box-shadow: var(--shadow);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.header-dots-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.arrow-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.dots-dropdown-btn {
  padding: 16px;
  width: 100%;
  background: var(--bg-burger);
  border: none;
  color: var(--text-on-surface);
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 12px;
  text-align: left;
  white-space: nowrap;
}

.dots-dropdown-btn > span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.translate-btn-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
}

.translate-icon-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
}

.translate-icon-wrap span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dots-dropdown-btn:hover {
  filter: brightness(1.08);
}

.dots-dropdown-btn:active {
  filter: brightness(0.92);
}

.translate-arrow {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.translate-btn.active .translate-arrow {
  transform: rotate(90deg);
}

.language-dropdown {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.language-dropdown.open {
  max-height: 180px;
  opacity: 1;
}

.language-btn {
  padding-left: 28px;
  transform: translateY(-18px) scale(0.98);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease, padding-left 0.2s ease;
}

.language-btn:hover {
  padding-left: 34px;
}

.language-dropdown.open .language-btn {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.language-btn:nth-child(1) {
  transition-delay: 0.08s;
}

.language-btn:nth-child(2) {
  transition-delay: 0.16s;
}

.language-btn:nth-child(3) {
  transition-delay: 0.24s;
}

.theme-dropdown {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.theme-dropdown.open {
  max-height: 180px;
  opacity: 1;
}

.theme-btn {
  padding-left: 28px;
  transform: translateY(-18px) scale(0.98);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease, padding-left 0.2s ease;
}

.theme-btn:hover {
  padding-left: 34px;
}

.theme-dropdown.open .theme-btn {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.theme-btn:nth-child(1) {
  transition-delay: 0.08s;
}

.theme-btn:nth-child(2) {
  transition-delay: 0.16s;
}

.theme-btn:nth-child(3) {
  transition-delay: 0.24s;
}

.header-avatar-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.header-servers-btn {
  border-radius: var(--radius-10);
  transition: background-color 0.2s ease;
}

.header-servers-btn:hover {
  background-color: var(--hover);
}

.header-avatar-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  border-radius: var(--radius-100);
  transition: box-shadow 0.2s ease;
}

.header-avatar-btn:hover,
.header-avatar-wrap:has(.header-avatar-dropdown.active) .header-avatar-btn {
  box-shadow: 0 0 0 3px var(--hover);
}

.header-avatar-img {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-100);
  object-fit: cover;
  display: block;
}

.header-avatar-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background-color: var(--bg-burger);
  width: 320px;
  overflow: hidden;
  box-shadow: var(--shadow);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.header-avatar-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-menu-divider {
  height: 1px;
  margin: 4px 16px;
  background: rgba(127, 127, 127, 0.25);
  flex-shrink: 0;
}

.header-logout-btn {
  width: 100%;
  font: inherit;
}

.header-logout-btn .header-right-svg {
  fill: currentColor;
}

/* ================= MOBILE ================= */
.header-menu-mobile {
  display: none;
}

.header-menu-nav-svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

@media (max-width: 960px) {
  .header {
    padding: 0 16px;
  }
  .nav {
    display: none;
  }
  .header-menu-mobile {
    display: block;
  }
  .header-right-wrap {
    gap: 12px;
  }
  .header-dots-wrap,
  .header-avatar-wrap {
    position: static;
  }
  .header-dots-dropdown,
  .header-avatar-dropdown {
    top: calc(100% + 4px);
    left: 16px;
    right: 16px;
    width: auto;
    max-height: calc(100vh - 84px);
    overflow-y: auto;
  }
}
@media (max-width: 480px) {
  .bot-logo-title {
    font-size: 20px;
  }
  .bot-logo-svg {
    height: 28px;
  }
  .header-login-btn > span {
    display: none;
  }
}
/* ╔═══╗╔═══╗╔═══╗╔════╗╔═══╗╔═══╗ */
/* ║╔══╝║╔═╗║║╔═╗║║╔╗╔╗║║╔══╝║╔═╗║ */
/* ║╚══╗║║─║║║║─║║╚╝║║╚╝║╚══╗║╚═╝║ */
/* ║╔══╝║║─║║║║─║║──║║──║╔══╝║╔╗╔╝ */
/* ║║───║╚═╝║║╚═╝║──║║──║╚══╗║║║╚╗ */
/* ╚╝───╚═══╝╚═══╝──╚╝──╚═══╝╚╝╚═╝ */
footer {
  width: 100%;
  padding-bottom: 44px;
}

.footer-content-wrap {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 48px clamp(40px, 5vw, 128px);
  width: 100%;
  justify-content: center;
  padding: 44px 24px;
}

.footer-logo-and-media-wrap {
  display: flex;
  flex-direction: row;
  gap: clamp(32px, 5vw, 128px);
  align-items: center;
  justify-content: center;
}

.footer-logo-wrap {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
}

.footer-bot-logo-svg {
  height: 64px;
  margin: 0 4px;
  fill: var(--accent-color);
}

.footer-bot-logo-title {
  font-weight: 1000;
  font-size: 40px;
  color: var(--text);
}

.footer-social-media-list {
  display: flex;
  flex-direction: row;
  gap: 6px;
}

.footer-social-media-svg {
  fill: var(--accent-color);
}

.footer-social-media-list-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
  will-change: transform, filter;
}

.footer-social-media-list-item svg {
  transition: fill 0.3s ease;
}

.footer-social-media-list-item:hover {
  transform: translateY(-4px);
}

.footer-social-media-list-item:hover svg {
  filter: drop-shadow(0 0 8px rgba(164, 164, 164, 0.4));
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  row-gap: 8px;
  align-items: flex-start;
}

.copyright {
  display: flex;
  flex-direction: row;
  gap: 4px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  text-decoration: none;
  color: var(--text);
}

/* ================= MOBILE ================= */
@media (max-width: 960px) {
  .footer-content-wrap {
    gap: 32px 48px;
    padding: 36px 16px;
  }
  .footer-logo-and-media-wrap {
    flex-basis: 100%;
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 480px) {
  .footer-content-wrap {
    column-gap: 32px;
  }
  .footer-bot-logo-svg {
    height: 48px;
  }
  .footer-bot-logo-title {
    font-size: 32px;
  }
  .copyright {
    flex-wrap: wrap;
    padding: 0 16px;
    text-align: center;
  }
}
/* ================= GENERIC MODAL ================= */
.commands-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
  padding: 20px;
}

.commands-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.commands-modal {
  width: 100%;
  max-width: 560px;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--bg-card);
  border-radius: var(--radius-20);
  padding: 32px;
  box-shadow: var(--shadow);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.2s ease;
}

.commands-modal-backdrop.open .commands-modal {
  transform: translateY(0) scale(1);
}

.commands-modal-title {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-on-surface);
  font-family: monospace;
}

.commands-modal-desc {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-on-surface);
  opacity: 0.85;
}

.commands-modal-usage-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-on-surface);
  opacity: 0.6;
  text-transform: uppercase;
}

.commands-modal-usage {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-10);
  background: var(--bg-btn);
  color: var(--text-on-surface);
  font-family: monospace;
  font-size: 14px;
  margin-bottom: 24px;
  overflow-x: auto;
  white-space: pre;
}

.commands-modal-close {
  display: block;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: var(--radius-10);
  background: var(--accent-color);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.commands-modal-close:hover {
  filter: brightness(1.08);
}

/* ================= FLOATING-LABEL SELECT ================= */
.field-select {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
  min-width: 0;
  padding: 0 16px;
  border: 2px solid var(--input-border);
  border-radius: var(--radius-4);
  transition: var(--transition);
}

.field-select:focus-within {
  border-color: var(--accent-color);
}

.field-select-label {
  padding: 0 6px;
  margin-left: -6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--input-border);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.field-select-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  flex: 1;
  width: 100%;
  height: 48px;
  padding: 0 28px 0 0;
  border: none;
  background: transparent;
  color: var(--text-on-surface);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
}

.field-select-input::-ms-expand {
  display: none;
}

.field-select-input option {
  background: var(--bg-card);
  color: var(--text-on-surface);
}

.field-select::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--input-border);
  border-bottom: 2px solid var(--input-border);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* ================= CUSTOM DROPDOWN (web/public/js/customSelect.js) ================= */
.field-select-input.cselect-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.cselect-trigger {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 28px 0 0;
  border: none;
  background: transparent;
  color: var(--text-on-surface);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  outline: none;
}

.cselect-trigger:disabled {
  cursor: default;
  opacity: 0.6;
}

.cselect-value {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.field-select.cselect-open {
  border-color: var(--accent-color);
}

.field-select::after {
  transition: transform 0.2s ease;
}

.field-select.cselect-open::after {
  transform: translateY(-20%) rotate(225deg);
}

.cselect-list {
  position: fixed;
  z-index: 2600;
  margin: 0;
  padding: 6px;
  list-style: none;
  overflow-y: auto;
  background: var(--bg-burger);
  border: 1px solid rgba(127, 127, 127, 0.3);
  border-radius: var(--radius-10);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  animation: cselectIn 0.14s ease;
  scrollbar-width: thin;
}

.cselect-list[hidden] {
  display: none;
}

.cselect-list--up {
  animation-name: cselectInUp;
}

@keyframes cselectIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes cselectInUp {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.cselect-option {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 36px 8px 12px;
  border-radius: var(--radius-4);
  color: var(--text-on-surface);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.cselect-option-label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cselect-option.active {
  background: var(--hover);
}

.cselect-option[aria-selected=true] {
  font-weight: 700;
}

.cselect-option[aria-selected=true]::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 5px;
  height: 10px;
  border-right: 2px solid #2458E3;
  border-bottom: 2px solid #2458E3;
  transform: translateY(-60%) rotate(45deg);
}

.cselect-option[aria-disabled=true] {
  opacity: 0.4;
  cursor: default;
}

/* ---------- цветная точка (роль) и пояснение у пункта ---------- */
.cselect-dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin-right: 10px;
  border-radius: 50%;
  background-color: #99AAB5;
}

.cselect-option-note {
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 12px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.6;
}

/* ---------- мультиселект: чипы в поле ---------- */
.cselect-trigger--multi {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  height: auto;
  min-height: 48px;
  padding: 7px 28px 7px 0;
}

.cselect-chips {
  display: contents;
}

.cselect-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  height: 30px;
  padding: 0 4px 0 10px;
  border-radius: 15px;
  background: var(--bg-btn);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-on-surface);
}

.cselect-chip .cselect-dot {
  width: 10px;
  height: 10px;
  margin-right: 7px;
}

.cselect-chip-label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cselect-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-left: 4px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-on-surface);
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.cselect-chip-remove:hover {
  opacity: 1;
  background: var(--hover);
}

.cselect-placeholder {
  color: var(--text-light-gray);
  font-size: 15px;
  font-weight: 500;
}

.cselect-placeholder[hidden] {
  display: none;
}

.field-select > .cselect-placeholder {
  display: none;
}

/* ---------- мультиселект: пункты с чекбоксом ---------- */
.cselect-list--multi .cselect-option {
  padding-right: 12px;
}

.cselect-list--multi .cselect-option[aria-selected=true]::after {
  content: none;
}

.cselect-checkbox {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-right: 12px;
  border: 2px solid var(--input-border);
  border-radius: var(--radius-4);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.cselect-option[aria-selected=true] .cselect-checkbox {
  border-color: #2458E3;
  background: #2458E3;
}

.cselect-option[aria-selected=true] .cselect-checkbox::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0;
  width: 5px;
  height: 10px;
  border-right: 2px solid #FFFFFF;
  border-bottom: 2px solid #FFFFFF;
  transform: rotate(45deg);
}

/* ---------- поиск в длинном списке ---------- */
.cselect-search {
  position: sticky;
  top: -6px;
  z-index: 1;
  margin: -6px -6px 6px;
  padding: 8px;
  background: var(--bg-burger);
  border-bottom: 1px solid rgba(127, 127, 127, 0.25);
  list-style: none;
}

.cselect-search-input {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-4);
  background: var(--bg-btn);
  color: var(--text-on-surface);
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.cselect-search-input:focus {
  border-color: var(--accent-color);
}

.cselect-option[hidden] {
  display: none;
}

/* ================= COLOR PICKER (web/public/js/colorPicker.js) ================= */
.cpick-trigger {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  height: 48px;
  padding: 0 28px 0 0;
  border: none;
  background: transparent;
  color: var(--text-on-surface);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  outline: none;
}

.cpick-swatch,
.cpick-preview {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.cpick-hex {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.cpick-panel {
  position: fixed;
  z-index: 2600;
  overflow: hidden;
  background: var(--bg-burger);
  border: 1px solid rgba(127, 127, 127, 0.3);
  border-radius: var(--radius-10);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  animation: cselectIn 0.14s ease;
  user-select: none;
}

.cpick-panel[hidden] {
  display: none;
}

.cpick-sv {
  position: relative;
  height: 150px;
  background-image: linear-gradient(to top, #000000, transparent), linear-gradient(to right, #FFFFFF, transparent);
  cursor: crosshair;
  touch-action: none;
}

.cpick-thumb {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 1px 4px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -50%);
  outline: none;
}

.cpick-thumb:focus-visible {
  box-shadow: 0 0 0 3px rgba(36, 88, 227, 0.8);
}

.cpick-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px 10px;
}

.cpick-preview {
  width: 30px;
  height: 30px;
}

.cpick-hue {
  position: relative;
  flex: 1;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(to right, #FF0000, #FFFF00, #00FF00, #00FFFF, #0000FF, #FF00FF, #FF0000);
  cursor: pointer;
  touch-action: none;
}

.cpick-hue-thumb {
  top: 50%;
  width: 16px;
  height: 16px;
}

.cpick-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-on-surface);
  opacity: 0.75;
  cursor: pointer;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.cpick-icon-btn:hover {
  opacity: 1;
  background: var(--hover);
}

.cpick-icon-btn[hidden] {
  display: none;
}

.cpick-inputs {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 12px 14px 18px;
}

.cpick-fields {
  flex: 1;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.cpick-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.cpick-field-input {
  width: 100%;
  height: 34px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: var(--radius-4);
  background: var(--bg-card);
  color: var(--text-on-surface);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  outline: none;
}

.cpick-field-input:focus {
  border-color: var(--accent-color);
}

.cpick-field-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-on-surface);
  opacity: 0.7;
}

/* ╔╗─╔╗╔═══╗╔═╗╔═╗╔═══╗     ╔═══╗╔═══╗╔═══╗╔═══╗ */
/* ║║─║║║╔═╗║║║╚╝║║║╔══╝     ║╔═╗║║╔═╗║║╔═╗║║╔══╝ */
/* ║╚═╝║║║─║║║╔╗╔╗║║╚══╗     ║╚═╝║║║─║║║║─╚╝║╚══╗ */
/* ║╔═╗║║║─║║║║║║║║║╔══╝     ║╔══╝║╚═╝║║║╔═╗║╔══╝ */
/* ║║─║║║╚═╝║║║║║║║║╚══╗     ║║───║╔═╗║║╚╩═║║╚══╗ */
/* ╚╝─╚╝╚═══╝╚╝╚╝╚╝╚═══╝     ╚╝───╚╝─╚╝╚═══╝╚═══╝ */
.main-wrap-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  gap: 60px;
}

.main-logo-svg {
  height: 384px;
  margin: 0 4px;
  fill: var(--accent-color);
}

.main-title {
  font-size: 64px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-inverted);
  text-transform: uppercase;
}

.main-desc {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 24px;
  color: var(--text-inverted);
}

.main-discord-btn {
  border-radius: 32px;
  background-color: var(--discord);
  color: var(--white);
  padding: 12px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  min-width: 280px;
}

.main-dashboard-btn {
  border-radius: 32px;
  background-color: var(--inverted-btn);
  color: var(--text-secondary);
  padding: 14px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  min-width: 180px;
}

.main-btns-wrap {
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 16px;
}

/* ╔═══╗╔═══╗╔═══╗╔╗─╔╗╔══╗─╔═══╗╔═══╗╔═══╗╔═══╗     ╔═══╗╔═══╗╔═══╗╔═══╗ */
/* ╚╗╔╗║║╔═╗║║╔═╗║║║─║║║╔╗║─║╔═╗║║╔═╗║║╔═╗║╚╗╔╗║     ║╔═╗║║╔═╗║║╔═╗║║╔══╝ */
/* ─║║║║║║─║║║╚══╗║╚═╝║║╚╝╚╗║║─║║║║─║║║╚═╝║─║║║║     ║╚═╝║║║─║║║║─╚╝║╚══╗ */
/* ─║║║║║╚═╝║╚══╗║║╔═╗║║╔═╗║║║─║║║╚═╝║║╔╗╔╝─║║║║     ║╔══╝║╚═╝║║║╔═╗║╔══╝ */
/* ╔╝╚╝║║╔═╗║║╚═╝║║║─║║║╚═╝║║╚═╝║║╔═╗║║║║╚╗╔╝╚╝║     ║║───║╔═╗║║╚╩═║║╚══╗ */
/* ╚═══╝╚╝─╚╝╚═══╝╚╝─╚╝╚═══╝╚═══╝╚╝─╚╝╚╝╚═╝╚═══╝     ╚╝───╚╝─╚╝╚═══╝╚═══╝ */
/* ================= HERO BANNER ================= */
.bot-dashboard-section {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.dashboard-hero {
  position: relative;
  width: 100%;
  height: 300px;
  margin-top: -64px;
  padding-top: 64px;
  display: flex;
  align-items: flex-end;
  box-sizing: border-box;
  z-index: 1;
  overflow: hidden;
}

.dashboard-hero::before {
  content: "";
  position: absolute;
  inset: -20px;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  filter: blur(50px);
  z-index: 0;
}

.dashboard-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.25) 100%);
  z-index: 1;
}

.dashboard-hero-content {
  position: relative;
  z-index: 2;
  padding: 28px 32px;
  width: 100%;
}

.dashboard-hero-icon {
  position: absolute;
  top: 50%;
  right: 32px;
  transform: translateY(-50%);
  width: 256px;
  height: 256px;
  color: #8C8C8C;
  opacity: 0.35;
  z-index: 2;
  display: none;
  pointer-events: none;
}

.dashboard-hero-icon.active {
  display: block;
}

@media (max-width: 900px) {
  .dashboard-hero-icon {
    display: none !important;
  }
}
.dashboard-hero-title {
  font-size: 64px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px 0;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.dashboard-hero-subtitle {
  font-size: 20px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.dashboard-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.dashboard-hero-members {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* ================= BODY LAYOUT ================= */
.dashboard-body {
  display: flex;
  flex-direction: row;
  flex: 1;
  width: 100%;
}

.features-bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 320px;
  flex-shrink: 0;
  padding-top: 32px;
  background: var(--bg-pages);
}

.dashboard-wrap {
  flex: 1;
  padding: 24px 32px;
}

.features-bar-btns-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.features-bar-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  width: 280px;
  height: 48px;
  padding: 12px 16px;
  background-color: var(--bg-pages);
  color: var(--text-dashboard-btns);
  border: none;
  border-radius: var(--radius-10);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  transition: var(--transition);
}

.features-bar-btn svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.features-bar-btn-span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.features-bar-btn:hover {
  background-color: var(--hover);
}

.features-bar-btn.active {
  background-color: var(--btn-active);
}

.features-bar-btn.active svg {
  opacity: 1;
}

/* ================= SETTINGS PANELS ================= */
.dashboard-panel {
  display: none;
  gap: 24px;
  flex-wrap: wrap;
}

.dashboard-panel.active {
  display: flex;
}

.setting-wrap {
  flex: 1 1 320px;
  background: var(--bg-card);
  border-radius: var(--radius-10);
  padding: 24px;
}

.setting-title-wrap {
  margin-bottom: 16px;
}

.setting-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-on-surface);
}

.setting-desc {
  margin: 0;
  font-size: 14px;
  color: var(--text-on-surface);
  opacity: 0.7;
  line-height: 1.4;
}

.settings-line {
  height: 1px;
  background: rgba(127, 127, 127, 0.25);
  margin-bottom: 16px;
}

.setting-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.setting-form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-on-surface);
  opacity: 0.6;
  text-transform: uppercase;
}

.setting-form-save {
  align-self: flex-start;
  margin-top: 8px;
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius-10);
  background: var(--save-btn-bg);
  color: var(--save-btn-text);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.setting-form-save:hover {
  filter: brightness(1.08);
}

.setting-form-textarea {
  padding: 12px 14px;
  border-radius: var(--radius-4);
  border: 1px solid var(--input-border);
  background: var(--bg-btn);
  color: var(--text-on-surface);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  resize: vertical;
}

.setting-form-hint {
  margin: 0;
  font-size: 12px;
  color: var(--text-on-surface);
  opacity: 0.55;
  line-height: 1.4;
}

/* ================= TOGGLE SWITCH ================= */
.toggle-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  width: fit-content;
  margin-bottom: 20px;
}

.toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch-slider {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 16px;
  border-radius: var(--radius-10);
  background: var(--switch-btn-bg);
  transition: var(--transition);
}

.toggle-switch-slider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-100);
  background: var(--switch-knob-off);
  transform: translateY(-50%);
  transition: var(--transition);
}

.toggle-switch input:checked + .toggle-switch-slider {
  background: #2458E3;
}

.toggle-switch input:checked + .toggle-switch-slider::before {
  background: #FFFFFF;
  transform: translateY(-50%) translateX(18px);
}

.toggle-switch-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-on-surface);
}

/* ================= WELCOME MESSAGE FIELDS ================= */
.welcome-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0.4;
  filter: grayscale(0.6);
  pointer-events: none;
  transition: var(--transition);
}

.welcome-fields.active {
  opacity: 1;
  filter: none;
  pointer-events: auto;
}

.welcome-toolbar {
  display: flex;
  gap: 6px;
}

.welcome-toolbar-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-4);
  border: 1px solid var(--input-border);
  background: var(--bg-btn);
  color: var(--text-on-surface);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.welcome-toolbar-btn:hover {
  background: var(--hover);
}

.welcome-row {
  gap: 24px;
}

.welcome-block {
  gap: 12px;
}

.welcome-dm-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.welcome-dm-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(127, 127, 127, 0.24);
  color: var(--text-on-surface);
  font-size: 14px;
  font-weight: 600;
}

.welcome-dm-button svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.welcome-dm-button-label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ================= EMPTY / COMING SOON PANEL ================= */
.dashboard-panel--empty {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  min-height: 320px;
  background: var(--bg-card);
  border-radius: var(--radius-16);
  color: var(--text-on-surface);
  gap: 12px;
  padding: 48px 24px;
}

.dashboard-panel--empty svg {
  opacity: 0.35;
}

.dashboard-panel--empty h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.dashboard-panel--empty p {
  margin: 0;
  max-width: 360px;
  font-size: 14px;
  opacity: 0.6;
  line-height: 1.5;
}

/* ================= UNSAVED CHANGES BAR ================= */
.unsaved-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 32px;
  background: var(--bg-burger);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  outline: 2px solid transparent;
  outline-offset: -2px;
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.unsaved-bar.visible {
  transform: translateY(0);
}

.unsaved-bar-text {
  color: var(--text-on-surface);
  font-weight: 600;
  font-size: 15px;
}

.unsaved-bar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.unsaved-bar-save {
  flex-shrink: 0;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-10);
  background: #2458E3;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.unsaved-bar-save:hover {
  filter: brightness(1.1);
}

.unsaved-bar-discard {
  flex-shrink: 0;
  padding: 12px 24px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-10);
  background: transparent;
  color: var(--text-on-surface);
  opacity: 0.6;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.unsaved-bar-discard:hover {
  opacity: 1;
  background: var(--hover);
}

.unsaved-bar-save:disabled {
  opacity: 0.6;
  cursor: default;
}

@keyframes unsavedBarShake {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  20% {
    transform: translateY(0) translateX(-8px);
  }
  40% {
    transform: translateY(0) translateX(8px);
  }
  60% {
    transform: translateY(0) translateX(-6px);
  }
  80% {
    transform: translateY(0) translateX(6px);
  }
}
.unsaved-bar.shake {
  animation: unsavedBarShake 0.4s ease;
  outline-color: #2458E3;
}

/* ================= TOASTS ================= */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.toast {
  min-width: 220px;
  max-width: 360px;
  padding: 14px 18px;
  border-radius: var(--radius-10);
  background: var(--bg-burger);
  color: var(--text-on-surface);
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow);
  border-left: 4px solid transparent;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: auto;
}

.toast.visible {
  opacity: 1;
  transform: translateX(0);
}

.toast--success {
  border-left-color: var(--green);
}

.toast--error {
  border-left-color: var(--red);
}

/* ================= MEMBER JOIN SETTINGS ================= */
.setting-wrap--wide {
  flex-basis: 100%;
}

.setting-check {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin: 6px 0;
  color: var(--text-on-surface);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.setting-check input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #2458E3;
  cursor: pointer;
}

.setting-toggle {
  margin: 10px 0 12px;
}

.setting-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.setting-col {
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.restore-fields {
  opacity: 0.4;
  filter: grayscale(0.6);
  pointer-events: none;
  transition: var(--transition);
}

.restore-fields.active {
  opacity: 1;
  filter: none;
  pointer-events: auto;
}

.setting-warning {
  margin: 0 0 8px;
  padding: 10px 14px;
  border-left: 4px solid #FFBF0D;
  border-radius: var(--radius-4);
  background: rgba(255, 191, 13, 0.1);
  color: var(--text-on-surface);
  font-size: 13px;
  line-height: 1.45;
}

/* ================= ACCESS & SECURITY ================= */
.setting-note {
  margin: 0;
  padding: 10px 14px;
  border-left: 4px solid #2458E3;
  border-radius: var(--radius-4);
  background: rgba(36, 88, 227, 0.1);
  color: var(--text-on-surface);
  font-size: 13px;
  line-height: 1.45;
}

.security-title-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  height: 28px;
  padding: 0 12px;
  border-radius: 14px;
  background: rgba(127, 127, 127, 0.18);
  color: var(--text-on-surface);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.security-locked {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  border: 1px dashed rgba(127, 127, 127, 0.45);
  border-radius: var(--radius-10);
  background: rgba(127, 127, 127, 0.08);
}

.security-locked-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(127, 127, 127, 0.2);
  color: var(--text-on-surface);
}

.security-locked-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-on-surface);
}

.security-locked-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-on-surface);
  opacity: 0.75;
}

.security-owner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin-top: 12px;
  padding: 4px 12px 4px 4px;
  border-radius: 16px;
  background: var(--bg-btn);
  color: var(--text-on-surface);
  font-size: 13px;
}

.security-owner-avatar {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.security-owner-label {
  flex-shrink: 0;
  opacity: 0.6;
}

.security-owner-name {
  overflow: hidden;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.security-readonly {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-select--readonly {
  cursor: not-allowed;
}

.field-select--readonly::after {
  display: none;
}

.readonly-chips {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 48px;
  padding: 7px 28px 7px 0;
  opacity: 0.7;
}

.readonly-chips .cselect-placeholder {
  display: inline;
}

.cselect-chip--readonly {
  padding: 0 10px;
}

.readonly-lock {
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--input-border);
  transform: translateY(-50%);
}

@media (max-width: 560px) {
  .security-title-wrap {
    flex-direction: column;
  }
  .security-locked {
    flex-direction: column;
  }
}
/* ================= MODERATION ================= */
.mute-role-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.mute-role-fields:not(.active) {
  display: none;
}

.toggle-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0.4;
  filter: grayscale(0.6);
  pointer-events: none;
  transition: var(--transition);
}

.toggle-fields.active {
  opacity: 1;
  filter: none;
  pointer-events: auto;
}

/* ---------- автонаказания ---------- */
.auto-rules {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 4px;
}

.auto-rules:empty {
  display: none;
}

.auto-rule {
  display: grid;
  grid-template-columns: minmax(120px, 170px) minmax(0, 1fr) minmax(0, 1fr) 40px;
  align-items: center;
  gap: 12px;
}

.auto-rule.is-kick .auto-rule-duration-field {
  visibility: hidden;
}

.field-select.field-number::after {
  display: none;
}

.field-number-input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-on-surface);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  outline: none;
}

.field-select.is-invalid,
.field-select.is-invalid:focus-within {
  border-color: var(--red);
}

.auto-rule-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-on-surface);
  opacity: 0.6;
  cursor: pointer;
  transition: var(--transition);
}

.auto-rule-remove:hover {
  opacity: 1;
  color: var(--red);
  background: rgba(237, 66, 69, 0.14);
}

.auto-rules-empty {
  margin: 0;
  padding: 14px;
  border: 1px dashed rgba(127, 127, 127, 0.4);
  border-radius: var(--radius-10);
  color: var(--text-on-surface);
  font-size: 13px;
  text-align: center;
  opacity: 0.7;
}

.auto-rules-add {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px 0 10px;
  border: 1px dashed rgba(127, 127, 127, 0.5);
  border-radius: var(--radius-10);
  background: transparent;
  color: var(--text-on-surface);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.auto-rules-add:hover:not(:disabled) {
  background: var(--hover);
}

.auto-rules-add:disabled {
  opacity: 0.5;
  cursor: default;
}

@media (max-width: 640px) {
  .auto-rule {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(127, 127, 127, 0.2);
  }
  .auto-rule-remove {
    justify-self: end;
  }
}
/* ---------- тексты сообщений наказанным ---------- */
.pm-disabled-note {
  margin-bottom: 14px;
}

.pm-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  transition: var(--transition);
}

.pm-cards--off {
  opacity: 0.55;
}

.pm-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 10px 12px 12px;
  border: 1px solid rgba(127, 127, 127, 0.25);
  border-left: 4px solid var(--pm-color);
  border-radius: var(--radius-10);
  background: var(--bg-btn);
  transition: var(--transition);
}

.pm-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(127, 127, 127, 0.16);
  color: var(--text-on-surface);
}

.pm-card-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pm-card-title {
  overflow: hidden;
  color: var(--text-on-surface);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pm-card-status {
  color: var(--text-on-surface);
  font-size: 12px;
  font-weight: 600;
  opacity: 0.6;
}

.pm-card--custom .pm-card-status {
  color: var(--light-green);
  opacity: 1;
}

.pm-card--off .pm-card-icon,
.pm-card--off .pm-card-main {
  opacity: 0.5;
}

.pm-card-toggle {
  flex-shrink: 0;
  margin: 0;
}

/* ---------- окно редактора: переменные и стандартный текст ---------- */
.pm-standard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px dashed rgba(127, 127, 127, 0.4);
  border-radius: var(--radius-10);
}

.pm-standard[hidden] {
  display: none;
}

.pm-vars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.pm-vars-label {
  color: var(--text-on-surface);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.6;
}

.pm-vars-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pm-var {
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(127, 127, 127, 0.35);
  border-radius: 14px;
  background: var(--bg-btn);
  color: var(--text-on-surface);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.pm-var:hover {
  border-color: var(--accent-color);
  background: var(--hover);
}

/* ================= REMINDERS SECTION ================= */
.reminders-section.active {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 16px;
}

.reminders-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-10);
  flex-wrap: wrap;
}

.reminders-toolbar-title {
  flex: 1 1 220px;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-on-surface);
}

.reminders-toolbar-filters {
  display: flex;
  gap: 12px;
  flex: 2 1 420px;
}

.reminders-filter {
  flex: 1;
}

.reminders-create-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px;
  border: none;
  border-radius: var(--radius-10);
  background: #2458E3;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.reminders-create-btn:hover {
  filter: brightness(1.1);
}

.reminders-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reminders-list:empty {
  display: none;
}

.reminders-empty {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-card);
  border-left: 4px solid var(--input-border);
  border-radius: var(--radius-4);
  color: var(--text-on-surface);
  font-weight: 600;
  font-size: 15px;
}

.reminders-empty[hidden] {
  display: none;
}

.reminders-empty svg {
  flex-shrink: 0;
  opacity: 0.9;
}

/* ================= REMINDER CARD ================= */
.reminder-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px 14px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-10);
  border-left: 4px solid #2458E3;
  transition: var(--transition);
}

.reminder-card--inactive {
  border-left-color: var(--input-border);
}

.reminder-card--inactive .reminder-card-main {
  opacity: 0.6;
}

.reminder-card-toggle {
  margin-bottom: 0;
}

.reminder-card-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reminder-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--text-on-surface);
  font-weight: 700;
  font-size: 15px;
}

.reminder-card-title-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.reminder-badge {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: var(--radius-4);
  background: var(--bg-btn);
  font-family: monospace;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.8;
}

.reminder-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  color: var(--text-on-surface);
  font-size: 13px;
  opacity: 0.75;
}

.reminder-card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.reminder-card-meta-item svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.reminder-card-avatar {
  width: 16px;
  height: 16px;
  border-radius: var(--radius-50);
}

.reminder-card-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.reminder-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: none;
  border-radius: var(--radius-10);
  background: transparent;
  color: var(--text-on-surface);
  cursor: pointer;
  opacity: 0.75;
  transition: var(--transition);
}

.reminder-icon-btn:hover {
  opacity: 1;
  background: var(--hover);
}

.reminder-icon-btn--danger:hover,
.reminder-icon-btn--danger.confirm {
  color: var(--red);
  opacity: 1;
}

.reminder-confirm-label {
  display: none;
  font-size: 13px;
  font-weight: 700;
}

.reminder-icon-btn.confirm .reminder-confirm-label {
  display: inline;
}

/* ================= EDITOR MODAL ================= */
body.reminder-editor-open {
  overflow: hidden;
}

.reminder-editor-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 32px 20px;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

.reminder-editor-backdrop.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease, visibility 0s;
}

.reminder-editor {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 920px;
  max-height: 100%;
  background: var(--bg-pages);
  border-radius: var(--radius-16);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.2s ease;
}

.reminder-editor-backdrop.open .reminder-editor {
  transform: translateY(0) scale(1);
}

.reminder-editor-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-card);
  flex-shrink: 0;
}

.reminder-editor-title {
  flex: 1;
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-on-surface);
}

.reminder-editor-save {
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius-10);
  background: #2458E3;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.reminder-editor-save:hover {
  filter: brightness(1.1);
}

.reminder-editor-save:disabled {
  opacity: 0.6;
  cursor: default;
}

.reminder-editor-reset {
  padding: 9px 18px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-10);
  background: transparent;
  color: var(--text-on-surface);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.reminder-editor-reset:hover:not(:disabled) {
  background: var(--hover);
}

.reminder-editor-reset:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ================= RESET CONFIRMATION ================= */
.reminder-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0s linear 0.15s;
}

.reminder-confirm-backdrop.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.15s ease, visibility 0s;
}

.reminder-confirm {
  width: 100%;
  max-width: 400px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-16);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  transform: scale(0.95);
  transition: transform 0.15s ease;
}

.reminder-confirm-backdrop.open .reminder-confirm {
  transform: scale(1);
}

.reminder-confirm-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-on-surface);
}

.reminder-confirm-text {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-on-surface);
  opacity: 0.75;
}

.reminder-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.reminder-confirm-cancel,
.reminder-confirm-ok {
  padding: 10px 20px;
  border-radius: var(--radius-10);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.reminder-confirm-cancel {
  border: 1px solid var(--input-border);
  background: transparent;
  color: var(--text-on-surface);
}

.reminder-confirm-cancel:hover {
  background: var(--hover);
}

.reminder-confirm-ok {
  border: none;
  background: var(--red);
  color: #FFFFFF;
}

.reminder-confirm-ok:hover {
  filter: brightness(1.1);
}

.reminder-editor-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 24px 28px;
  overflow-y: auto;
}

.reminder-group-label {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-on-surface);
  opacity: 0.55;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.reminder-toggle {
  margin-bottom: 0;
}

.reminder-toggle-hint {
  margin-top: -6px;
}

.reminder-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.reminder-row > .reminder-field,
.reminder-row > .reminder-repeat {
  flex: 1 1 260px;
}

.reminder-repeat {
  display: flex;
  gap: 14px;
}

.reminder-repeat[hidden] {
  display: none;
}

.reminder-repeat .reminder-field {
  flex: 1;
}

.reminder-field:has(> input)::after {
  display: none;
}

.reminder-field--number {
  flex: 0 0 150px !important;
}

.reminder-field--color {
  flex: 0 0 160px !important;
}

.reminder-input {
  flex: 1;
  width: 100%;
  height: 48px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-on-surface);
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  outline: none;
  color-scheme: dark;
}

[data-theme=light] .reminder-input {
  color-scheme: light;
}

.reminder-input::placeholder {
  color: var(--text-light-gray);
}

.reminder-color {
  width: 100%;
  height: 40px;
  margin: 4px 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.reminder-field--suffix .reminder-suffix {
  color: var(--text-on-surface);
  opacity: 0.6;
  font-size: 14px;
}

.reminder-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid rgba(127, 127, 127, 0.25);
}

.reminder-tab {
  padding: 10px 16px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-on-surface);
  opacity: 0.6;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.reminder-tab:hover {
  opacity: 0.9;
}

.reminder-tab.active {
  opacity: 1;
  border-bottom-color: #2458E3;
}

.reminder-tab[hidden] {
  display: none;
}

.reminder-tab-panel {
  display: none;
  flex-direction: column;
  gap: 8px;
}

.reminder-tab-panel.active {
  display: flex;
}

.reminder-toolbar-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-4);
  border: 1px solid var(--input-border);
  background: var(--bg-btn);
  color: var(--text-on-surface);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.reminder-toolbar-btn:hover {
  background: var(--hover);
}

.reminder-toolbar-btn svg {
  display: block;
  margin: 0 auto;
}

.reminder-textarea {
  min-height: 120px;
  font-family: inherit;
}

.reminder-counter {
  margin: 0;
  align-self: flex-end;
  font-size: 12px;
  color: var(--text-on-surface);
  opacity: 0.5;
}

.reminder-embed-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0.4;
  filter: grayscale(0.6);
  pointer-events: none;
  transition: var(--transition);
}

.reminder-embed-fields.active {
  opacity: 1;
  filter: none;
  pointer-events: auto;
}

.reminder-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reminder-options[hidden] {
  display: none;
}

.reminder-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  color: var(--text-on-surface);
}

.reminder-check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #2458E3;
  flex-shrink: 0;
}

.reminder-check > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reminder-check-title {
  font-size: 14px;
  font-weight: 600;
}

.reminder-command-note {
  margin: 0;
  padding: 14px 16px;
  border-left: 4px solid #2458E3;
  border-radius: var(--radius-4);
  background: var(--bg-card);
  color: var(--text-on-surface);
  font-size: 14px;
  line-height: 1.5;
}

.reminder-command-note[hidden] {
  display: none;
}

/* ================= DISCORD-LIKE PREVIEW ================= */
.reminder-preview {
  padding: 16px;
  border-radius: var(--radius-10);
  background: #313338;
  color: #DBDEE1;
  font-size: 15px;
  line-height: 1.375;
}

.dc-message {
  display: flex;
  gap: 16px;
}

.dc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dc-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dc-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dc-name {
  color: #F2F3F5;
  font-weight: 600;
}

.dc-bot-tag {
  padding: 0 5px;
  border-radius: 4px;
  background: #5865F2;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
}

.dc-time {
  color: #949BA4;
  font-size: 12px;
}

.dc-content,
.dc-embed-description {
  overflow-wrap: anywhere;
}

.dc-empty {
  color: #949BA4;
  font-style: italic;
}

.dc-embed {
  max-width: 520px;
  margin-top: 4px;
  padding: 10px 16px 14px 12px;
  border-left: 4px solid #2357E3;
  border-radius: 4px;
  background: #2B2D31;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dc-embed--container {
  border-left-color: #2357E3;
}

.dc-embed-title {
  color: #F2F3F5;
  font-weight: 700;
}

.dc-embed-image {
  max-width: 100%;
  max-height: 300px;
  margin-top: 6px;
  border-radius: 4px;
  object-fit: contain;
  align-self: flex-start;
}

.reminder-preview .md-h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 8px 0 4px;
  color: #F2F3F5;
}
.reminder-preview .md-h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 8px 0 4px;
  color: #F2F3F5;
}
.reminder-preview .md-h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 8px 0 4px;
  color: #F2F3F5;
}
.reminder-preview .md-subtext {
  font-size: 12px;
  color: #949BA4;
}
.reminder-preview .md-quote {
  padding-left: 12px;
  border-left: 4px solid #4E5058;
}
.reminder-preview .md-li::before {
  content: "•";
  margin-right: 8px;
}
.reminder-preview .md-code {
  padding: 0 3px;
  border-radius: 3px;
  background: #1E1F22;
  font-family: monospace;
  font-size: 13px;
}
.reminder-preview .md-codeblock {
  margin: 4px 0;
  padding: 8px;
  border-radius: 4px;
  background: #1E1F22;
  font-family: monospace;
  font-size: 13px;
  white-space: pre-wrap;
}
.reminder-preview .md-mention {
  padding: 0 2px;
  border-radius: 3px;
  background: rgba(88, 101, 242, 0.3);
  color: #C9CDFB;
  font-weight: 500;
}
.reminder-preview .md-timestamp {
  padding: 0 2px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
}
.reminder-preview .md-spoiler {
  border-radius: 3px;
  background: #1E1F22;
  color: transparent;
  cursor: pointer;
  transition: color 0.2s;
}
.reminder-preview .md-spoiler:hover {
  color: inherit;
  background: rgba(255, 255, 255, 0.1);
}
.reminder-preview a {
  color: #00A8FC;
  text-decoration: none;
}
.reminder-preview a:hover {
  text-decoration: underline;
}

/* ================= MOBILE ================= */
@media (max-width: 700px) {
  .reminders-toolbar-filters {
    flex-direction: column;
    flex-basis: 100%;
  }
  .reminders-create-btn {
    width: 100%;
    justify-content: center;
  }
  .reminder-card {
    flex-wrap: wrap;
  }
  .reminder-card-main {
    flex-basis: calc(100% - 80px);
  }
  .reminder-card-actions {
    margin-left: auto;
  }
  .reminder-editor-backdrop {
    padding: 0;
  }
  .reminder-editor {
    border-radius: 0;
  }
  .reminder-editor-body {
    padding: 16px;
  }
  .reminder-field--number,
  .reminder-field--color {
    flex: 1 1 100% !important;
  }
}
/* ================= TERMS & PRIVACY ================= */
.legal-section {
  min-height: 100vh;
  padding: 48px 64px 96px;
  background-color: var(--bg-dashboard);
}

html[lang=ru] .legal-lang--en,
html:not([lang=ru]) .legal-lang--ru {
  display: none;
}

.legal-top,
.legal-layout {
  max-width: 1180px;
  margin: 0 auto;
}

.legal-top {
  margin-bottom: 32px;
}

.legal-title {
  margin: 0 0 8px;
  font-size: 48px;
  font-weight: 800;
  color: var(--text-on-surface);
  text-transform: uppercase;
}

.legal-updated {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-light-gray);
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  gap: 32px;
}

/* ---------- оглавление ---------- */
.legal-toc {
  position: sticky;
  top: 96px;
  padding: 20px 16px;
  border-radius: var(--radius-10);
  background: var(--bg-card);
}

.legal-toc-title {
  margin: 0 0 10px 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light-gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legal-toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-toc-link {
  display: block;
  padding: 7px 8px;
  border-radius: var(--radius-4);
  color: var(--text-on-surface);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  opacity: 0.75;
  transition: var(--transition);
}

.legal-toc-link:hover {
  background: var(--hover);
  opacity: 1;
}

/* ---------- текст документа ---------- */
.legal-card {
  padding: 40px 48px;
  border-radius: var(--radius-10);
  background: var(--bg-card);
  color: var(--text-on-surface);
  font-size: 15px;
  line-height: 1.65;
}

.legal-lead {
  margin: 0 0 32px;
  font-size: 17px;
  line-height: 1.6;
}

.legal-block {
  scroll-margin-top: 96px;
}

.legal-block + .legal-block {
  margin-top: 32px;
}

.legal-heading {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.legal-num {
  opacity: 0.45;
  font-variant-numeric: tabular-nums;
}

.legal-card p {
  margin: 0 0 12px;
  opacity: 0.85;
}

.legal-card ul,
.legal-card ol {
  margin: 0 0 12px;
  padding-left: 24px;
}

.legal-card li > ul,
.legal-card li > ol {
  margin: 6px 0 0;
}

.legal-card li {
  margin: 6px 0;
  opacity: 0.85;
}

.legal-card li li {
  opacity: 1;
}

.legal-card li::marker {
  color: var(--text-light-gray);
}

.legal-card strong {
  font-weight: 700;
  opacity: 1;
}

.legal-card a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-card a:hover {
  opacity: 0.8;
}

.legal-effective {
  margin: 40px 0 0 !important;
  padding-top: 20px;
  border-top: 1px solid rgba(127, 127, 127, 0.25);
  color: var(--text-light-gray);
  font-size: 14px;
}

@media (max-width: 960px) {
  .legal-section {
    padding: 32px 16px 64px;
  }
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .legal-toc {
    position: static;
  }
  .legal-title {
    font-size: 32px;
  }
  .legal-card {
    padding: 24px 20px;
  }
}
/* ================= COMMANDS PAGE ================= */
.commands-section {
  min-height: 100vh;
  padding: 48px 64px 96px;
  background-color: var(--bg-dashboard);
}

.commands-top-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.commands-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-on-surface);
  margin: 0;
  text-transform: uppercase;
}

.commands-search-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.commands-lang-toggle {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-left: auto;
}

.commands-lang-label {
  font-size: 16px;
  font-weight: 700;
  color: #7A7A7A;
  white-space: nowrap;
}

.commands-lang-pill {
  display: flex;
  border-radius: var(--radius-16);
  overflow: hidden;
  background: #363636;
}

.commands-lang-seg {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: #C2C2C2;
  color: #161616;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

.commands-lang-seg.active {
  background: #2458E3;
  color: #FFFFFF;
}

.commands-search {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  background: var(--bg-card);
  border-radius: var(--radius-16);
  padding: 16px 20px;
}

.commands-search svg path {
  fill: var(--text-on-surface);
  opacity: 0.5;
}

.commands-search-input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-size: 16px;
  color: var(--text-on-surface);
}

.commands-search-input::placeholder {
  color: var(--text-on-surface);
  opacity: 0.5;
}

.commands-body {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.commands-sidebar {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.commands-category-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-16);
  border: none;
  background: var(--bg-card);
  color: var(--text-on-surface);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.commands-category-btn svg {
  flex-shrink: 0;
  color: var(--text-on-surface);
  opacity: 0.7;
}

.commands-category-btn span:nth-child(2) {
  flex: 1;
}

.commands-category-count {
  background: rgba(127, 127, 127, 0.25);
  border-radius: var(--radius-100);
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
}

.commands-category-btn:hover {
  filter: brightness(1.08);
}

.commands-category-btn.active {
  background: var(--accent-color);
  color: var(--text-secondary);
}

.commands-category-btn.active svg {
  color: var(--text-secondary);
  opacity: 1;
}

.commands-category-btn.active .commands-category-count {
  background: rgba(255, 255, 255, 0.35);
}

.commands-help-wrap {
  margin-top: 16px;
  border-radius: var(--radius-16);
  background: var(--bg-card);
  overflow: hidden;
}

.commands-help-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: none;
  border: none;
  color: var(--text-on-surface);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.commands-help-toggle span:nth-child(2) {
  flex: 1;
  text-align: left;
}

.commands-help-arrow {
  transition: transform 0.3s ease;
  color: var(--text-on-surface);
  opacity: 0.6;
}

.commands-help-toggle.open .commands-help-arrow {
  transform: rotate(90deg);
}

.commands-help-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.commands-help-body.open {
  max-height: 200px;
}

.commands-help-body p {
  padding: 0 16px 16px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-on-surface);
  opacity: 0.75;
}

.commands-list {
  flex: 1;
  background: var(--bg-card);
  border-radius: var(--radius-16);
  overflow: hidden;
}

.commands-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(127, 127, 127, 0.2);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.commands-row:last-child {
  border-bottom: none;
}

.commands-row:hover {
  background: var(--hover);
}

.commands-row-badge {
  flex-shrink: 0;
  padding: 4px 12px;
  border-radius: var(--radius-10);
  background: var(--bg-btn);
  color: var(--text-on-surface);
  font-family: monospace;
  font-weight: 700;
  font-size: 14px;
}

.commands-row-desc {
  color: var(--text-on-surface);
  opacity: 0.8;
  font-size: 14px;
}

.commands-row-icon {
  flex-shrink: 0;
  margin-left: auto;
}

.commands-empty {
  display: none;
  padding: 32px;
  text-align: center;
  color: var(--text-on-surface);
  opacity: 0.6;
}

@media (max-width: 900px) {
  .commands-section {
    padding: 32px 20px 64px;
  }
  .commands-body {
    flex-direction: column;
  }
  .commands-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .commands-category-btn {
    flex: 1 1 auto;
  }
}
/* ╔═══╗╔═══╗╔═══╗╔╗──╔╗╔═══╗╔═══╗╔═══╗     ╔═══╗╔═══╗╔═══╗╔═══╗ */
/* ║╔═╗║║╔══╝║╔═╗║║╚╗╔╝║║╔══╝║╔═╗║║╔═╗║     ║╔═╗║║╔═╗║║╔═╗║║╔══╝ */
/* ║╚══╗║╚══╗║╚═╝║╚╗║║╔╝║╚══╗║╚═╝║║╚══╗     ║╚═╝║║║─║║║║─╚╝║╚══╗ */
/* ╚══╗║║╔══╝║╔╗╔╝─║╚╝║─║╔══╝║╔╗╔╝╚══╗║     ║╔══╝║╚═╝║║║╔═╗║╔══╝ */
/* ║╚═╝║║╚══╗║║║╚╗─╚╗╔╝─║╚══╗║║║╚╗║╚═╝║     ║║───║╔═╗║║╚╩═║║╚══╗ */
/* ╚═══╝╚═══╝╚╝╚═╝──╚╝──╚═══╝╚╝╚═╝╚═══╝     ╚╝───╚╝─╚╝╚═══╝╚═══╝ */
.servers-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 6px;
  background: none;
  margin: 16px 0;
}

.servers-title {
  font-size: 24px;
  color: var(--text);
}

.servers-title-img {
  width: 200px;
  margin-top: 6px;
}

.servers-list-wrap {
  background-color: var(--bg-pages);
  padding-top: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.servers-search {
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: left;
  background-color: var(--bg-card);
  width: 552px;
  margin: 0 auto;
  margin-bottom: 32px;
  border-radius: 24px;
}

.servers-search-input {
  padding: 16px 12px;
  color: var(--text-light-gray);
  background-color: var(--bg-card);
  width: 100%;
  height: 52px;
  border-radius: 24px;
  border: none;
  outline: none;
  transition: color 0.2s ease;
}

.servers-search-input::placeholder {
  color: var(--text-light-gray);
}

.servers-search-input:focus {
  color: var(--text-on-surface);
}

.servers-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, 425px);
  justify-content: center;
  gap: 32px;
  padding: 0;
  list-style: none;
  width: 100%;
  margin-bottom: 32px;
}

.servers-empty {
  display: none;
  padding: 32px;
  text-align: center;
  color: var(--text-on-surface);
  opacity: 0.6;
}

.servers-list-item {
  background-color: var(--bg-card);
  width: 425px;
  height: 235px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, box-shadow;
  z-index: 1;
}

.card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background-size: cover;
  background-position: center;
  filter: blur(8px);
  transform: scale(1.1);
  z-index: 1;
}

.server-title-wrap {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 2;
  color: #ffffff;
  text-shadow: var(--text-shadow);
}

.server-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-role {
  margin: 4px 0 0 0;
  font-size: 14px;
  opacity: 0.9;
}

.server-icon-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.server-icon {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 4px solid var(--card);
  object-fit: cover;
  background-color: var(--card);
  box-shadow: var(--shadow);
}

.server-info {
  position: absolute;
  font-size: 18px;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  color: var(--text-inverted);
}

.server-online .server-info::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--light-green);
  box-shadow: 0 0 12px var(--light-green);
}

.server-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  bottom: 16px;
  left: 16px;
  border-radius: 8px;
  padding: 0 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-inverted);
  transition: background-color 0.2s ease, transform 0.1s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.server-add-btn:hover {
  transform: translateY(-1px);
}

.server-add-btn:hover {
  filter: brightness(1.08);
}

/* ---------- бот на сервере есть, но панель этому человеку закрыта ---------- */
.server-locked {
  cursor: not-allowed;
}

.server-locked .server-icon {
  filter: grayscale(0.8) brightness(0.7);
}

.server-lock-badge {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 4px solid var(--bg-card);
  border-radius: 50%;
  background: var(--red);
  color: #FFFFFF;
}

.server-locked .server-info {
  right: 16px;
  color: var(--text-on-surface);
  font-size: 15px;
  font-weight: 600;
}

.server-locked .server-info::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--red);
}

/* ================= BOT OWNER PANEL (/admin) ================= */
.admin-section {
  min-height: 100vh;
  padding: 48px 64px 96px;
  background-color: var(--bg-dashboard);
}

.admin-top,
.admin-stats,
.admin-grid {
  max-width: 1180px;
  margin: 0 auto;
}

.admin-title {
  margin: 0 0 8px;
  font-size: 48px;
  font-weight: 800;
  color: var(--text-on-surface);
  text-transform: uppercase;
}

.admin-subtitle {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-light-gray);
}

/* ---------- статистика ---------- */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
  margin-bottom: 24px;
}

.admin-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 24px;
  border-radius: var(--radius-10);
  background: var(--bg-card);
  color: var(--text-on-surface);
}

.admin-stat svg {
  margin-bottom: 4px;
  opacity: 0.6;
}

.admin-stat-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.admin-stat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light-gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- колонки и карточки ---------- */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
}

.admin-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.admin-card .setting-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 12px;
  background: rgba(127, 127, 127, 0.18);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-block-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.admin-empty {
  margin: 0;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-on-surface);
  opacity: 0.6;
}

/* ---------- списки блокировок и серверов ---------- */
.admin-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-10);
  background: rgba(127, 127, 127, 0.08);
  color: var(--text-on-surface);
}

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

.admin-item-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: var(--radius-50);
  background: rgba(127, 127, 127, 0.18);
  color: var(--text-light-gray);
}

.admin-item-avatar--guild {
  border-radius: 12px;
}

.admin-item-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-item-body {
  flex: 1;
  min-width: 0;
}

.admin-item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.admin-item-name {
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.admin-badge {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(127, 127, 127, 0.18);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-item-sub,
.admin-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--text-light-gray);
  overflow-wrap: anywhere;
}

.admin-item-reason {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.admin-item-reason--empty {
  opacity: 0.55;
}

.admin-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.admin-inline-icon {
  margin-right: 4px;
  vertical-align: -2px;
  opacity: 0.8;
}

/* ---------- кнопки ---------- */
.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-10);
  background: transparent;
  color: var(--text-on-surface);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.admin-btn:hover {
  background: var(--hover);
}

.admin-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.admin-btn--danger {
  width: 36px;
  padding: 0;
}

.admin-btn--danger:hover {
  border-color: var(--red);
  color: var(--red);
}

.admin-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: var(--radius-4);
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
}

.admin-icon-btn:hover {
  background: var(--hover);
  opacity: 1;
}

/* ---------- поиск по серверам ---------- */
.admin-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  margin-bottom: 12px;
  padding: 0 14px;
  border: 2px solid var(--input-border);
  border-radius: var(--radius-4);
  color: var(--text-light-gray);
  transition: var(--transition);
}

.admin-search:focus-within {
  border-color: var(--accent-color);
}

.admin-search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-on-surface);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  outline: none;
}

.admin-search-input::placeholder {
  color: var(--text-light-gray);
}

.admin-guild-list {
  max-height: 720px;
  overflow-y: auto;
}

@media (max-width: 1100px) {
  .admin-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 960px) {
  .admin-section {
    padding: 32px 16px 64px;
  }
  .admin-title {
    font-size: 32px;
  }
}
@media (max-width: 480px) {
  .admin-stats {
    gap: 10px;
  }
  .admin-stat {
    padding: 16px;
  }
  .admin-stat-value {
    font-size: 22px;
  }
  .admin-item {
    gap: 10px;
    padding: 10px;
  }
}
/* ================= ACCESS RESTRICTED (blocked user) ================= */
.blocked-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px);
  padding: 64px 16px;
  background-color: var(--bg-dashboard);
}

.blocked-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 520px;
  padding: 40px 36px;
  border-radius: var(--radius-10);
  background: var(--bg-card);
  color: var(--text-on-surface);
  text-align: center;
}

.blocked-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-50);
  background: rgba(237, 66, 69, 0.14);
  color: var(--red);
}

.blocked-title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
}

.blocked-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  opacity: 0.85;
}

.blocked-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin: 4px 0 0;
  text-align: left;
}

.blocked-detail {
  padding: 12px 14px;
  border-radius: var(--radius-10);
  background: rgba(127, 127, 127, 0.1);
}

.blocked-detail dt {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light-gray);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.blocked-detail dd {
  margin: 4px 0 0;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.blocked-appeal {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.7;
}

.blocked-support {
  align-self: center;
  display: inline-block;
  text-decoration: none;
}

@media (max-width: 480px) {
  .blocked-card {
    padding: 28px 20px;
  }
  .blocked-title {
    font-size: 22px;
  }
}
/* ================= DASHBOARD: COMMANDS TAB ================= */
.cmdset-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 24px;
  width: 100%;
}

.cmdset-main {
  min-width: 0;
}

/* ---------- верхняя строка: группа и кнопки ---------- */
.cmdset-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 48px;
  margin-bottom: 12px;
}

.cmdset-group-title {
  margin: 0 auto 0 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-on-surface);
}

.cmdset-text-btn {
  padding: 8px 12px;
  border: none;
  border-radius: var(--radius-10);
  background: transparent;
  color: var(--text-light-gray);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.cmdset-text-btn:hover {
  background: var(--hover);
  color: var(--text-on-surface);
}

.cmdset-text-btn--danger,
.cmdset-text-btn--danger:hover {
  color: var(--red);
}

.cmdset-text-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* ---------- список команд ---------- */
.cmdset-list {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-10);
  background: var(--bg-card);
  list-style: none;
}

.cmdset-row[hidden] {
  display: none;
}

.cmdset-row:not([hidden]) ~ .cmdset-row:not([hidden]) {
  border-top: 1px solid rgba(127, 127, 127, 0.2);
}

.cmdset-row-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 12px 8px 14px;
}

.cmdset-info-btn.active {
  background: var(--hover);
  opacity: 1;
}

.cmdset-name {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(127, 127, 127, 0.2);
  color: var(--text-on-surface);
  font-size: 13px;
  font-weight: 700;
}

.cmdset-desc {
  flex: 1;
  min-width: 0;
  color: var(--text-on-surface);
  font-size: 14px;
  line-height: 1.35;
}

.cmdset-row.is-off .cmdset-name,
.cmdset-row.is-off .cmdset-desc {
  opacity: 0.45;
}

.cmdset-toggle {
  flex-shrink: 0;
}

.cmdset-gear {
  position: relative;
}

.cmdset-gear.is-customized::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-50);
  background: var(--green);
}

.cmdset-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 20px 14px 62px;
  color: var(--text-light-gray);
  font-size: 13px;
}

.cmdset-details[hidden] {
  display: none;
}

.cmdset-usage {
  padding: 3px 8px;
  border-radius: var(--radius-4);
  background: rgba(127, 127, 127, 0.15);
  color: var(--text-on-surface);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.cmdset-empty {
  margin: 16px 0 0;
  color: var(--text-on-surface);
  font-size: 14px;
  opacity: 0.6;
}

/* ---------- правая колонка ---------- */
.cmdset-side {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cmdset-card {
  border-radius: var(--radius-10);
  background: var(--bg-card);
}

.cmdset-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 16px;
  color: var(--text-light-gray);
  border: 2px solid transparent;
  transition: var(--transition);
}

.cmdset-search:focus-within {
  border-color: var(--accent-color);
}

.cmdset-search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-on-surface);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  outline: none;
}

.cmdset-search-input::placeholder {
  color: var(--text-light-gray);
}

.cmdset-cats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}

.cmdset-cat {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: none;
  border-radius: var(--radius-10);
  background: transparent;
  color: var(--text-dashboard-btns);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.cmdset-cat svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.cmdset-cat:hover {
  background: var(--hover);
}

.cmdset-cat.active {
  background: var(--btn-active);
}

.cmdset-cat.active svg {
  opacity: 1;
}

.cmdset-cat-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cmdset-count {
  min-width: 28px;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(127, 127, 127, 0.2);
  color: var(--text-on-surface);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.cmdset-help-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  border: none;
  background: transparent;
  color: var(--text-on-surface);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.cmdset-help-toggle > span {
  flex: 1;
}

.cmdset-help-toggle > svg:first-child {
  opacity: 0.7;
}

.cmdset-help-arrow {
  transition: transform 0.2s ease;
}

.cmdset-help-toggle.open .cmdset-help-arrow {
  transform: rotate(180deg);
}

.cmdset-help-body {
  padding: 0 16px 16px;
  color: var(--text-on-surface);
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.8;
}

.cmdset-help-body[hidden] {
  display: none;
}

.cmdset-help-body p {
  margin: 0 0 8px;
}

.cmdset-help-body p:last-child {
  margin-bottom: 0;
}

#cmdsetDurationField[hidden] {
  display: none;
}

@media (max-width: 1500px) {
  .cmdset-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .cmdset-side {
    position: static;
    order: -1;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
    align-items: start;
  }
  .cmdset-cats {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .cmdset-cat {
    width: auto;
  }
  .cmdset-help {
    grid-column: 1/-1;
  }
}
@media (max-width: 900px) {
  .cmdset-side {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* ================= PREMIUM ================= */
/* ---------- страница «Поддержите нас» (/donate) ---------- */
.premium-section {
  min-height: 100vh;
  padding: 48px 64px 96px;
  background-color: var(--bg-dashboard);
}

.premium-hero,
.premium-block,
.premium-wide,
.premium-thanks {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.premium-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  text-align: center;
}

.premium-hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-50);
  background: rgba(255, 191, 13, 0.14);
  color: #FFBF0D;
}

.premium-title {
  margin: 0;
  font-size: 48px;
  font-weight: 800;
  color: var(--text-on-surface);
  text-transform: uppercase;
}

.premium-subtitle {
  max-width: 720px;
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-light-gray);
}

.premium-wide {
  display: block;
  margin-top: 32px;
}

p.premium-wide {
  margin-bottom: 0;
}

.premium-block {
  margin-top: 40px;
}

.premium-heading {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  color: var(--text-on-surface);
}

.premium-lead {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--text-light-gray);
}

.premium-soon {
  margin: 12px 0 0;
  padding: 24px;
  border: 1px dashed rgba(127, 127, 127, 0.4);
  border-radius: var(--radius-10);
  color: var(--text-light-gray);
  font-size: 15px;
  text-align: center;
}

/* бонусы - раскрывающийся список */
.premium-bonuses {
  overflow: hidden;
  border-radius: var(--radius-10);
  background: var(--bg-card);
}

.premium-bonus + .premium-bonus {
  border-top: 1px solid rgba(127, 127, 127, 0.2);
}

.premium-bonus summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  color: var(--text-on-surface);
  cursor: pointer;
  list-style: none;
  transition: var(--transition);
}

.premium-bonus summary::-webkit-details-marker {
  display: none;
}

.premium-bonus summary:hover {
  background: var(--hover);
}

.premium-chip {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(127, 127, 127, 0.2);
  font-size: 12px;
  font-weight: 700;
}

.premium-bonus-title {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
}

.premium-bonus-arrow {
  flex-shrink: 0;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.premium-bonus[open] .premium-bonus-arrow {
  transform: rotate(180deg);
}

.premium-bonus p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--text-on-surface);
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.8;
}

/* способы поддержки - вкладки */
.premium-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 20px;
}

.premium-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 96px;
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius-10);
  background: transparent;
  color: var(--text-light-gray);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.premium-tab:hover {
  background: var(--hover);
  color: var(--text-on-surface);
}

.premium-tab.active {
  color: #FFBF0D;
}

.premium-panel[hidden] {
  display: none;
}

.premium-steps {
  margin: 0 0 20px;
  padding-left: 22px;
  color: var(--text-on-surface);
  font-size: 15px;
  line-height: 1.55;
}

.premium-steps li + li {
  margin-top: 6px;
}

.premium-link-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 0;
  text-decoration: none;
}

/* уровни подписки */
.premium-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.premium-tier {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-10);
  background: var(--bg-card);
  color: var(--text-on-surface);
}

.premium-tier-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.premium-tier-name {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.premium-tier-price {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.premium-tier-price span {
  display: block;
  color: var(--text-light-gray);
  font-size: 12px;
  font-weight: 600;
}

.premium-tier-slots {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--tier-color, #FFBF0D);
  border-radius: 24px;
  font-size: 14px;
}

.premium-tier-count {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-50);
  background: var(--tier-color, #FFBF0D);
  color: #161616;
  font-weight: 800;
}

.premium-tier-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: var(--radius-10);
  background: var(--save-btn-bg);
  color: var(--save-btn-text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  transition: var(--transition);
}

.premium-tier-btn:hover {
  filter: brightness(1.08);
}

/* благодарность внизу */
.premium-thanks {
  margin-top: 48px;
  color: var(--text-on-surface);
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}

.premium-thanks p {
  margin: 0 0 6px;
}

.premium-thanks a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.premium-thanks-title {
  font-size: 18px;
  font-weight: 700;
}

.premium-nonprofit {
  color: var(--text-light-gray);
  font-size: 13px;
}

/* мои серверы */
.premium-manage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.premium-status {
  padding: 4px 12px;
  border-radius: 14px;
  background: rgba(127, 127, 127, 0.18);
  color: var(--text-on-surface);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.premium-status.is-active {
  background: rgba(255, 191, 13, 0.16);
  color: #FFBF0D;
}

.premium-login-hint {
  margin-bottom: 12px;
}

.premium-slots {
  margin: 12px 0 0;
  color: var(--text-on-surface);
  font-size: 15px;
}

.premium-list-title {
  margin: 20px 0 10px;
  color: var(--text-light-gray);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- значки ---------- */
.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(255, 191, 13, 0.18);
  color: #FFBF0D;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.server-premium {
  vertical-align: -2px;
  color: #FFBF0D;
}

/* ---------- замок на премиум-функции ---------- */
.premium-locked {
  position: relative;
}

.premium-locked > :not(.premium-lock) {
  opacity: 0.35;
  filter: grayscale(0.6);
  pointer-events: none;
  user-select: none;
}

.premium-lock {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border: 1px dashed rgba(255, 191, 13, 0.45);
  border-radius: var(--radius-10);
  background: color-mix(in srgb, var(--bg-card) 70%, transparent);
  backdrop-filter: blur(2px);
  color: #FFBF0D;
  text-align: center;
}

.premium-lock-title {
  color: var(--text-on-surface);
  font-size: 15px;
  font-weight: 700;
}

.premium-lock-link {
  color: #FFBF0D;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- карточка в панели владельца ---------- */
.admin-wide {
  max-width: 1180px;
  margin: 24px auto 0;
}

.admin-premium-page {
  margin-left: auto;
  color: var(--text-light-gray);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#adminPremium .setting-title > svg {
  color: #FFBF0D;
}

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

.admin-premium-side .premium-list-title:first-child {
  margin-top: 0;
}

.admin-item.is-inactive .admin-item-name {
  opacity: 0.55;
}

.admin-premium-off {
  color: var(--red);
}

.admin-tiers {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-tiers:empty {
  display: none;
}

.admin-tier {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(127, 127, 127, 0.3);
  border-radius: var(--radius-10);
}

.admin-tier .setting-col.admin-tier-small {
  flex: 0 0 110px;
}

.admin-tier-color .reminder-color {
  height: 48px;
  margin: 0;
}

.admin-tier-remove {
  align-self: flex-start;
}

.admin-tier-remove:hover {
  border-color: var(--red);
  color: var(--red);
}

.admin-tier-add {
  align-self: flex-start;
}

.admin-tier-add[hidden] {
  display: none;
}

@media (max-width: 1100px) {
  .admin-premium-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 960px) {
  .premium-section {
    padding: 32px 16px 64px;
  }
  .premium-title {
    font-size: 32px;
  }
}
:root {
  --bg: #161616;
  --bg-pages: #252525;
  --bg-dashboard: #161616;
  --bg-burger: #242424;
  --bg-card: #363636;
  --bg-btn: #252525;
  --hover: #FFFFFF26;
  --discord-hover: #FFFFFF26;
  --active: #ffffff3b;
  --accent-color: #FFFFFF;
  --white: #fff;
  --black: #161616;
  --green: #00A336;
  --light-green: #3ba55c;
  --red: #ED4245;
  --light-gray: #9A9898;
  --text-white: #fff;
  --text-black: #161616;
  --text-light-gray: #737373;
  --text-gray: #252525;
  --text: #FFFFFF;
  --text-secondary: #161616;
  --text-inverted: #FFFFFF;
  --text-dashboard-btns: #FFFFFF;
  --discord: #5865F2;
  --inverted-btn: #FFFFFF;
  --btn-active: #4C4C4C;
  --input-border: #737373;
  --switch-btn-bg: #4A4A4A;
  --switch-knob-off: #8C8C8C;
  --save-btn-bg: #FFFFFF;
  --save-btn-text: #161616;
  --radius-4: 4px;
  --radius-10: 10px;
  --radius-16: 16px;
  --radius-20: 20px;
  --radius-50: 50%;
  --radius-100: 100%;
  --transition: .2s ease;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  --text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  --text-on-surface: #FFFFFF;
}

[data-theme=light] {
  --bg: #FFFFFF;
  --bg-pages: #2458E3;
  --bg-dashboard: #DBDBDB;
  --bg-burger: #E4E4E4;
  --bg-card: #E2E2E2;
  --bg-btn: #CCCCCC;
  --hover: #00000026;
  --active: #0000003B;
  --accent-color: #2458E3;
  --white: #fff;
  --black: #161616;
  --green: #00A336;
  --red: #ED4245;
  --light-gray: #9A9898;
  --text-white: #fff;
  --text-black: #161616;
  --text-light-gray: #737373;
  --text-gray: #252525;
  --text: #2458E3;
  --text-secondary: #FFFFFF;
  --text-inverted: #161616;
  --text-dashboard-btns: #161616;
  --discord: #5865F2;
  --inverted-btn: #161616;
  --btn-active: #FFFFFF;
  --input-border: #161616;
  --switch-btn-bg: #4A4A4A;
  --switch-knob-off: #161616;
  --save-btn-bg: #161616;
  --save-btn-text: #FFFFFF;
  --radius-4: 4px;
  --radius-10: 10px;
  --radius-16: 16px;
  --radius-20: 20px;
  --radius-50: 50%;
  --radius-100: 100%;
  --transition: .2s ease;
  --shadow: 0 8px 24px rgba(0,0,0,.35);
  --text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  --text-on-surface: #161616;
}

[data-theme=blue] {
  --bg: #2458E3;
  --bg-pages: #FFFFFF;
  --bg-dashboard: #DBDBDB;
  --bg-burger: #E4E4E4;
  --bg-card: #E2E2E2;
  --bg-btn: #FFFFFF;
  --hover: #00000026;
  --active: #0000003B;
  --accent-color: #FFFFFF;
  --white: #fff;
  --black: #161616;
  --green: #00A336;
  --red: #ED4245;
  --light-gray: #9A9898;
  --text-white: #fff;
  --text-black: #161616;
  --text-light-gray: #737373;
  --text-gray: #252525;
  --text-discord: #252525;
  --text: #FFFFFF;
  --text-secondary: #161616;
  --text-inverted: #FFFFFF;
  --text-dashboard-btns: #161616;
  --discord: #5865F2;
  --inverted-btn: #FFFFFF;
  --btn-active: #2458E3;
  --input-border: #161616;
  --switch-btn-bg: #4A4A4A;
  --switch-knob-off: #161616;
  --save-btn-bg: #161616;
  --save-btn-text: #FFFFFF;
  --radius-4: 4px;
  --radius-10: 10px;
  --radius-16: 16px;
  --radius-20: 20px;
  --radius-50: 50%;
  --radius-100: 100%;
  --transition: .2s ease;
  --shadow: 0 8px 24px rgba(0,0,0,.35);
  --text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  --text-on-surface: #161616;
}

/*# sourceMappingURL=main.css.map */
