:root {
  --bg: #0b1220;
  --panel: #22324a;
  --border: #465a75;
  --text: #eef2f7;
  --muted: #a8b7c9;
  --accent: #5aa9ff;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', 'Roboto', sans-serif;
}

h1, h2 { color: var(--text); font-weight: 600; }
a { color: var(--accent); }
a:hover { text-decoration: underline; }

input, select {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
}

table {
  background: var(--panel);
  border-radius: 8px;
  border-collapse: collapse;
  overflow: hidden;
  width: 100%;
  margin-top: 16px;
}
th {
  background: var(--bg);
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}
th, td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
tr:hover { background: rgba(74, 158, 255, 0.1); }

.player-card {
  display: inline-block;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 8px;
  padding: 8px;
  transition: border-color 0.2s;
}
.player-card:hover { border-color: var(--accent); }

#persons td:first-child img {
  border-radius: 6px;
  border: 1px solid var(--border);
  object-fit: cover;
}

/* =========================================
   Unified Button Theme — Vollance
   ========================================= */

[hidden] {
    display: none !important;
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 36px;
    padding: 8px 14px;

    color: var(--text);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 7px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;

    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

/* Обычная кнопка */

button:hover:not(:disabled),
.button:hover {
    background: #27364b;
    border-color: #475569;
}

/* Нажатие */

button:active:not(:disabled),
.button:active {
    transform: translateY(1px);
}

/* Фокус с клавиатуры */

button:focus-visible,
.button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Отключённая кнопка */

button:disabled,
.button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

/* Основное действие */

.btn-primary {
    color: #fff;
    background: rgba(74, 158, 255, 0.16);
    border-color: rgba(74, 158, 255, 0.45);
}

.btn-primary:hover:not(:disabled) {
    color: #fff;
    background: rgba(74, 158, 255, 0.25);
    border-color: var(--accent);
}

/* Успешное действие */

.btn-success {
    color: #6ee7b7;
    background: rgba(52, 211, 153, 0.08);
    border-color: rgba(52, 211, 153, 0.3);
}

.btn-success:hover:not(:disabled) {
    background: rgba(52, 211, 153, 0.16);
    border-color: #34d399;
}

/* Опасное действие */

.btn-danger {
    color: #fca5a5;
    background: rgba(248, 113, 113, 0.07);
    border-color: rgba(248, 113, 113, 0.3);
}

.btn-danger:hover:not(:disabled) {
    background: rgba(248, 113, 113, 0.15);
    border-color: #f87171;
}

/* Второстепенное действие */

.btn-secondary {
    color: var(--muted);
    background: transparent;
    border-color: var(--border);
}

.btn-secondary:hover:not(:disabled) {
    color: var(--text);
    background: var(--panel);
    border-color: #64748b;
}

/* Уменьшенный вариант */

.btn-sm {
    min-height: 30px;
    padding: 5px 10px;
    font-size: 12px;
}

/* Уважение системных настроек анимации */

@media (prefers-reduced-motion: reduce) {
    button,
    .button {
        transition: none;
    }
}

/* =========================================
   Notification badge — Vollance
   ========================================= */

.notif-anchor {
    position: relative;
}

.notif-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 20px;
    height: 20px;
    padding: 0 6px;

    border-radius: 999px;
    background: #ef4444;
    color: #fff;

    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;

    flex: 0 0 auto;
    box-shadow:
        0 0 0 2px rgba(15, 23, 42, 0.95),
        0 2px 8px rgba(239, 68, 68, 0.35);

    animation: notif-pop 0.18s ease-out;
}

.notif-badge--dot {
    width: 10px;
    min-width: 10px;
    height: 10px;
    padding: 0;
    font-size: 0;
}

.notif-badge--floating {
    position: absolute;
    top: -6px;
    right: -6px;
    z-index: 2;
}

@keyframes notif-pop {
    from {
        opacity: 0;
        transform: scale(0.65);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .notif-badge {
        animation: none;
    }
}

/* =========================================
   Header link button — Vollance
   ========================================= */

.header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 40px;
    padding: 0 16px;

    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 10px;

    background: rgba(30, 41, 59, 0.8);
    color: #e2e8f0;

    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;

    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.header-btn:hover {
    background: rgba(51, 65, 85, 0.95);
    border-color: rgba(148, 163, 184, 0.5);
    transform: translateY(-1px);
}

.header-btn-secondary {
    background: transparent;
    color: #94a3b8;
}

.header-btn-secondary:hover {
    color: #f1f5f9;
}

/* =========================================
   Scrollbars — Vollance
   ========================================= */

* {
    scrollbar-width: thin;
    scrollbar-color: #475569 rgba(15, 23, 42, 0.55);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.55);
}

::-webkit-scrollbar-thumb {
    background: #475569;
    border: 2px solid rgba(15, 23, 42, 0.55);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

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