:root {
  --bg: #0d0f12;
  --surface: #15181d;
  --surface-strong: #111419;
  --border: #23272f;
  --text-muted: #9aa4b2;
  --text: #e6edf3;
  --primary: #6a0dad;
  --primary-hover: #b57edc;
  --primary-soft: rgba(181, 126, 220, 0.16);
  --discord: #4452bb;
  --discord-hover: #3b47a3;
  --telegram: #31ade1;
  --telegram-hover: #279ac8;
  --alphabot: #63fe1f;
  --alphabot-hover: #52d918;
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
  scrollbar-color: rgba(106, 13, 173, 0.42) rgba(255, 255, 255, 0.03);
  scrollbar-width: thin;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(106, 13, 173, 0.58), rgba(181, 126, 220, 0.84));
  border: 3px solid var(--bg);
  border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(106, 13, 173, 0.78), rgba(181, 126, 220, 0.96));
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

body {
  font-family: 'Manrope', sans-serif;
  background:
    radial-gradient(circle at top, rgba(106, 13, 173, 0.1), transparent 22%),
    var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--text);
  line-height: 1.15;
}

p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

small,
label,
span,
strong {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
  border-radius: 12px;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--text);
  font-size: 0.88rem;
}

td {
  color: var(--text-muted);
}

.container {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 40px 20px 56px;
  flex: 1;
}

.container-centered {
  display: grid;
  place-items: center;
}

@media (max-width: 640px) {
  .container {
    padding: 24px 16px 40px;
  }
}

.card {
  width: min(100%, 560px);
  background: rgba(21, 24, 29, 0.94);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--primary);
  color: var(--text);
  font-weight: 800;
  padding: 12px 18px;
  min-height: 46px;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.button:disabled {
  background: rgba(154, 164, 178, 0.14);
  color: var(--text-muted);
  border-color: var(--border);
  transform: none;
}

.button-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.02);
}

.button-danger {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.34);
  color: #ffc9c9;
}

.button-danger:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.46);
}

.button-provider {
  color: var(--text);
}

.button-provider__icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.button-discord {
  background: var(--discord);
}

.button-discord:hover {
  background: var(--discord-hover);
}

.button-telegram {
  background: var(--telegram);
}

.button-telegram:hover {
  background: var(--telegram-hover);
}

.text-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.text-link:hover {
  color: var(--primary-hover);
}

.status {
  min-height: 24px;
}

.status-error {
  color: var(--error);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: capitalize;
}

.badge-primary {
  border-color: rgba(181, 126, 220, 0.4);
  background: var(--primary-soft);
  color: #e6ccff;
}

.badge-neutral {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--warning);
}

.badge-admin {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--info);
}

.badge-user {
  background: rgba(154, 164, 178, 0.1);
  border-color: rgba(154, 164, 178, 0.28);
  color: #c8d0da;
}

.badge-discord {
  background: rgba(68, 82, 187, 0.16);
  border-color: rgba(68, 82, 187, 0.38);
  color: #cfd5ff;
}

.badge-telegram {
  background: rgba(49, 173, 225, 0.16);
  border-color: rgba(49, 173, 225, 0.38);
  color: #c9f0ff;
}

.badge-danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--error);
}
