/* --- СТИЛИ ОФОРМЛЕНИЯ В ГОТИЧЕСКОМ СТИЛЕ ЛИМБА --- */

body {
    background-color: #0b0813; /* Чистый глубокий темный фон без текстур */
    color: #E2E8F0;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    display: flex; /* Сайдбар слева, контент справа */
    min-height: 100vh;
    overflow: hidden; 
}

/* --- ВЕРТИКАЛЬНЫЙ САЙДБАР (Стиль Juniper) --- */
.sidebar {
    width: 280px;
    background-color: #110d1f; 
    border-right: 1px solid rgba(120, 39, 159, 0.3); 
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    box-sizing: border-box;
    flex-shrink: 0; 
    position: relative;
    z-index: 2; 
}

.logo-area {
    text-align: center;
    margin-bottom: 40px;
}

.logo-area h1 {
    font-size: 24px;
    margin: 0;
    letter-spacing: 1px;
    color: #5BFEE0; 
    text-shadow: 0 0 10px rgba(91, 254, 224, 0.2);
}

.logo-area .subtitle {
    font-size: 11px;
    color: #A0AEC0;
    margin-top: 5px;
    font-style: italic;
}

/* Кнопки меню в сайдбаре */
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px; 
}

.menu-btn {
    background: transparent;
    color: #A0AEC0;
    border: 1px solid transparent;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s ease; 
    display: flex;
    align-items: center;
    gap: 12px; 
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.menu-btn:hover {
    color: #FFFFFF;
    background-color: rgba(120, 39, 159, 0.15); 
    border-color: rgba(120, 39, 159, 0.4);
}

.menu-btn.active {
    background-color: #78279F; 
    border-color: #5BFEE0; 
    color: #FFFFFF;
    box-shadow: 0 0 15px rgba(120, 39, 159, 0.4); 
}

/* --- ОСНОВНАЯ ОБЛАСТЬ КОНТЕНТА --- */
.content-area {
    flex-grow: 1; 
    padding: 40px;
    box-sizing: border-box;
    height: 100vh; /* Ограничиваем высоту контентной зоны экраном */
    overflow-y: auto; /* Включаем независимую вертикальную прокрутку */
    position: relative;
    z-index: 2; 
    display: flex;
    flex-direction: column;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.header-top h2 {
    margin: 0;
    font-size: 26px;
    color: #5BFEE0;
}

/* Контейнеры контента (Вкладки) */
.tab-content {
    display: none;
    width: 100%;
}

.tab-content.active {
    display: block;
}

/* --- ПЛИТОЧНАЯ СЕТКА МОДУЛЕЙ (Стиль StreamersMagic) --- */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 25px; 
    width: 100%;
}

.module-card {
    background-color: #120e23; 
    border: 1px solid rgba(120, 39, 159, 0.2); 
    border-radius: 16px;
    padding: 25px;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
}

.module-card:hover {
    transform: translateY(-5px); 
    border-color: #5BFEE0; 
    box-shadow: 0 8px 25px rgba(91, 254, 224, 0.15); 
}

.module-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(120, 39, 159, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.module-icon {
    font-size: 32px;
    margin-bottom: 15px;
    display: inline-block;
}

.module-title {
    font-size: 18px;
    font-weight: 600;
    color: #5BFEE0;
    margin: 0 0 10px 0;
}

.module-desc {
    font-size: 13px;
    color: #A0AEC0;
    line-height: 1.5;
    margin: 0;
}

.status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    background-color: rgba(91, 254, 224, 0.1);
    color: #5BFEE0;
    border: 1px solid rgba(91, 254, 224, 0.2);
}

/* --- СТИЛИ ПРЕДПРОСМОТРА КАРТОЧКИ (ВОССТАНОВЛЕН ОРИГИНАЛЬНЫЙ ДИЗАЙН) --- */
.rank-card-preview-container {
    width: 100%;
    max-width: 1100px;
    height: 260px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    background-color: #78279F;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 50px;
    box-sizing: border-box;
    border: 1px solid #2d2d34;
}

.rank-card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.29);
    z-index: 1;
}

.rank-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    width: 100%;
    gap: 30px;
}

.preview-avatar-wrap {
    position: relative;
    width: 160px;
    height: 160px;
}

.preview-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid #F39C12;
    object-fit: cover;
}

.preview-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.preview-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 10px;
}

.preview-name {
    font-size: 42px;
    font-weight: bold;
    text-transform: uppercase;
}

.preview-rank-name {
    font-size: 24px;
    color: #F39C12;
    font-weight: bold;
}

.preview-mid-row {
    display: flex;
    gap: 40px;
    font-size: 24px;
    margin-bottom: 20px;
}

.preview-shards {
    margin-left: auto;
    color: #F39C12;
}

.preview-progress-bg {
    width: 100%;
    height: 30px; /* Восстановлено 30px */
    background-color: rgba(35, 39, 42, 0.8);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.preview-progress-fill {
    width: 46%;
    height: 100%;
    background-color: #F39C12;
    border-radius: 15px;
}

.preview-exp-text {
    position: absolute;
    right: 0;
    top: -25px; /* Восстановлено позиционирование над шкалой */
    font-size: 20px;
}

/* Стилизация ползунка затемнения */
input[type=range] {
    width: 100%;
    background: transparent;
    cursor: pointer;
}

.design-controls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

.color-input-group {
    background-color: #24242b;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #78279F;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

input[type="color"] {
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: none;
}

/* --- СТИЛИ ДЛЯ ВНУТРЕННИХ ФОРМ И УПРАВЛЕНИЯ --- */
.card {
    background-color: #1a1a1e;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #2d2d34;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 25px;
}

.card h2 {
    margin-top: 0;
    font-size: 22px;
    border-bottom: 1px solid #78279F;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #5BFEE0;
}

.sub-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
    width: 100%;
}

.sub-tab-btn {
    background-color: #24242b;
    color: #A0AEC0;
    border: 1px solid #2d2d34;
    padding: 8px 18px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s;
}

.sub-tab-btn:hover {
    border-color: #5BFEE0;
    color: #FFFFFF;
}

.sub-tab-btn.active {
    background-color: #5BFEE0;
    color: #121214;
    border-color: #5BFEE0;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(91, 254, 224, 0.4);
}

.leaderboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .leaderboard-grid {
        grid-template-columns: 1fr;
    }
}

.leader-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: #24242b;
    margin-bottom: 8px;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.leader-item:hover {
    transform: scale(1.02);
    background-color: #2c2c35;
}

.leader-name {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.leader-xp {
    color: #F39C12;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 18px;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #A0AEC0;
}

input[type="password"], input[type="number"], select {
    width: 100%;
    max-width: 350px;
    background-color: #24242b;
    border: 1px solid #78279F;
    color: #E2E8F0;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s;
}

input[type="password"]:focus, input[type="number"]:focus, select:focus {
    border-color: #5BFEE0;
}

textarea {
    width: 100%;
    height: 80px;
    background-color: #24242b;
    border: 1px solid #78279F;
    color: #E2E8F0;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    outline: none;
    resize: vertical;
}

textarea:focus {
    border-color: #5BFEE0;
}

.list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 250px;
    overflow-y: auto;
    background-color: #24242b;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #2d2d34;
}

.list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    background-color: #1a1a1e;
    border: 1px solid #2d2d34;
}

.list-row-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: bold;
}

.rewards-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background-color: #24242b;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #2d2d34;
}

.rewards-table th, .rewards-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #1a1a1e;
}

.rewards-table th {
    background-color: #1a1a1e;
    color: #5BFEE0;
}

/* КНОПКА СОХРАНЕНИЯ (ИСПРАВЛЕНО: Добавлен !important для принудительного фиолетового цвета) */
.btn-submit {
    background-color: #78279F !important;
    color: #FFFFFF !important;
    border: none !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    cursor: pointer !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    box-shadow: 0 0 10px rgba(120, 39, 159, 0.4) !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    text-align: center !important;
}

.btn-submit:hover {
    background-color: #5BFEE0 !important;
    color: #121214 !important;
    box-shadow: 0 0 15px rgba(91, 254, 224, 0.5) !important;
}

footer {
    margin-top: auto;
    padding-top: 30px;
    text-align: center;
    color: #718096;
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- СЕЛЕКТОР СЕРВЕРОВ --- */
.server-selector {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(120, 39, 159, 0.2);
    border-radius: 12px;
    padding: 10px 15px;
    margin-bottom: 25px;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: all 0.3s ease;
}
.server-selector:hover {
    background-color: rgba(120, 39, 159, 0.1);
    border-color: rgba(91, 254, 224, 0.3);
}
.server-selector-btn {
    display: flex;
    align-items: center;
    gap: 12px;
}
.server-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #78279F;
}
.server-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.server-name {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
}
.server-status {
    font-size: 11px;
    color: #A0AEC0;
}
.selector-arrow {
    font-size: 10px;
    color: #A0AEC0;
    transition: transform 0.3s;
}
.server-selector.open .selector-arrow {
    transform: rotate(180deg);
}
.server-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background-color: #110d1f;
    border: 1px solid #78279F;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    z-index: 10;
    overflow: hidden;
}
.server-selector.open .server-dropdown {
    display: block;
}
.server-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    transition: background-color 0.2s;
}
.server-dropdown-item:hover:not(.disabled) {
    background-color: rgba(120, 39, 159, 0.2);
}
.server-dropdown-item.active {
    background-color: rgba(120, 39, 159, 0.3);
    color: #5BFEE0;
}
.server-dropdown-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.server-avatar-mini {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* --- ПРОФИЛЬ ВЛАДЫКИ В САЙДБАРЕ --- */
.user-profile-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}
.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #78279F;
    box-shadow: 0 0 8px rgba(120, 39, 159, 0.5);
}
.user-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}
.user-username {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-role {
    font-size: 10px;
    color: #5BFEE0;
    font-weight: bold;
    letter-spacing: 0.5px;
}
.logout-btn {
    background: transparent;
    border: none;
    color: #A0AEC0;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    transition: all 0.2s;
}
.logout-btn:hover {
    color: #ff3c3c;
    background-color: rgba(255, 60, 60, 0.1);
}

/* --- МИНИ-СВИТЧИ НА ПЛИТКАХ --- */
.card-toggle-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 12px;
}
.switch-mini {
    transform: scale(0.8);
    margin-right: -5px;
}

/* --- СТИЛИ МУЗЫКАЛЬНОГО ПЛЕЕРА --- */
.player-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .player-grid {
        grid-template-columns: 1fr;
    }
}
.player-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px !important;
}
.disk-container {
    position: relative;
    width: 220px;
    height: 220px;
    margin-bottom: 25px;
}
.disk-vinyl {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, #1a1a1a 20%, #050505 60%, #1a1a1a 70%, #050505 100%);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 0 10px rgba(120, 39, 159, 0.3);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}
.disk-vinyl::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.05);
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.disk-vinyl.playing {
    animation: spin 6s linear infinite;
}
.player-cover {
    position: absolute;
    top: 35px;
    left: 35px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #110d1f;
    z-index: 3;
    transition: all 0.5s ease;
}
.disk-vinyl.playing + .player-cover {
    animation: spin 6s linear infinite;
}
.player-meta {
    text-align: center;
    margin-bottom: 25px;
    width: 100%;
}
.player-meta h3 {
    margin: 0;
    font-size: 24px;
    color: #5BFEE0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 0 8px rgba(91, 254, 224, 0.2);
}
.player-meta p {
    margin: 6px 0 0 0;
    font-size: 15px;
    color: #A0AEC0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.genre-badge-offline {
    display: inline-block;
    margin-top: 12px;
    background-color: rgba(255, 60, 60, 0.1);
    border: 1px solid rgba(255, 60, 60, 0.3);
    color: #ff5c5c;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.genre-badge-online {
    display: inline-block;
    margin-top: 12px;
    background-color: rgba(91, 254, 224, 0.1);
    border: 1px solid rgba(91, 254, 224, 0.3);
    color: #5BFEE0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 8px rgba(91, 254, 224, 0.2);
}
.player-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 10px;
}
.player-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #24242b;
    border: 1px solid #78279F;
    color: #E2E8F0;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.player-btn:hover {
    border-color: #5BFEE0;
    color: #FFFFFF;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(91, 254, 224, 0.2);
}
.player-btn.control-play-pause {
    width: 60px;
    height: 60px;
    font-size: 22px;
    background-color: #78279F;
    box-shadow: 0 0 15px rgba(120, 39, 159, 0.4);
}
.player-btn.control-play-pause:hover {
    background-color: #5BFEE0;
    color: #121214;
    box-shadow: 0 0 20px rgba(91, 254, 224, 0.5);
}
.music-genres-card {
    display: flex;
    flex-direction: column;
}
.genre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: #78279F #121214;
}
.genre-btn {
    background-color: #24242b;
    color: #E2E8F0;
    border: 1px solid #2d2d34;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-align: left;
}
.genre-btn:hover {
    border-color: #78279F;
    background-color: rgba(120, 39, 159, 0.1);
    color: #FFFFFF;
}
.genre-btn.active {
    border-color: #5BFEE0;
    background-color: rgba(91, 254, 224, 0.15);
    color: #FFFFFF;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(91, 254, 224, 0.2);
}

/* --- КАСТОМНЫЙ СЕЛЕКТОР С ПОИСКОМ --- */
.search-select-wrapper {
    position: relative;
    width: 100%;
}
.search-select-input {
    width: 100%;
    background-color: #24242b;
    border: 1px solid #78279F;
    color: #E2E8F0;
    padding: 12px 15px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    box-sizing: border-box;
    outline: none;
    text-align: left;
    transition: border-color 0.3s;
}
.search-select-input:focus, .search-select-wrapper.open .search-select-input {
    border-color: #5BFEE0;
}
.search-select-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background-color: #110d1f;
    border: 1px solid #78279F;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    z-index: 100;
    padding: 10px;
    box-sizing: border-box;
}
.search-select-wrapper.open .search-select-dropdown {
    display: block;
}
.search-select-search {
    width: 100%;
    background-color: #24242b;
    border: 1px solid rgba(120, 39, 159, 0.5);
    color: #E2E8F0;
    padding: 8px 10px;
    font-size: 14px;
    border-radius: 6px;
    box-sizing: border-box;
    outline: none;
    margin-bottom: 10px;
}
.search-select-search:focus {
    border-color: #5BFEE0;
}
.search-select-options {
    max-height: 180px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #78279F #121214;
}
.search-select-option {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-select-option:hover {
    background-color: rgba(120, 39, 159, 0.2);
    color: #FFFFFF;
}
.search-select-option.selected {
    background-color: #78279F;
    color: #FFFFFF;
    font-weight: bold;
}

/* --- МОДАЛЬНОЕ ОКНО АВТОРИЗАЦИИ --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(5, 4, 10, 0.94);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-box {
    background-color: #110d1f;
    border: 1px solid #78279F;
    box-shadow: 0 0 30px rgba(120, 39, 159, 0.4), 0 0 15px rgba(91, 254, 224, 0.15);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-sizing: border-box;
    animation: login-pulse-glow 3s infinite ease-in-out alternate;
}
@keyframes login-pulse-glow {
    0% { border-color: #78279F; box-shadow: 0 0 25px rgba(120, 39, 159, 0.3); }
    100% { border-color: #5BFEE0; box-shadow: 0 0 35px rgba(91, 254, 224, 0.4); }
}
.login-logo {
    font-size: 32px;
    font-weight: 800;
    color: #5BFEE0;
    letter-spacing: 1.5px;
    text-shadow: 0 0 12px rgba(91, 254, 224, 0.4);
    font-family: 'Inter', sans-serif;
}
.login-subtitle {
    font-size: 14px;
    color: #A0AEC0;
    margin-top: 8px;
    margin-bottom: 20px;
}
.login-error {
    color: #ff5c5c;
    font-size: 13px;
    margin-top: 15px;
    background-color: rgba(255, 60, 60, 0.1);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 60, 60, 0.25);
    text-align: left;
    line-height: 1.4;
}

/* Стили заголовков категорий радиожанров */
.genre-category-title {
    font-size: 13px;
    font-weight: 700;
    color: #5BFEE0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
    margin-bottom: 12px;
    border-left: 3px solid #78279F;
    padding-left: 10px;
    font-family: 'Inter', sans-serif;
}

/* --- СТИЛИ ДЛЯ УПРАВЛЕНИЯ БАЛАНСОМ --- */
.shards-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background-color: #24242b;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #2d2d34;
}

.shards-table th, .shards-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #1a1a1e;
}

.shards-table th {
    background-color: #1a1a1e;
    color: #5BFEE0;
    font-weight: 600;
}

.shards-table tbody tr:hover {
    background-color: rgba(120, 39, 159, 0.05);
}

.shards-table td {
    color: #E2E8F0;
    font-size: 14px;
}

/* Двухколоночный макет */
.shards-layout-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.shards-main-area {
    flex: 1;
    min-width: 0;
}

.shards-sidebar {
    width: 320px;
    background-color: #1a1a24;
    border: 1px solid rgba(120, 39, 159, 0.3);
    border-radius: 12px;
    padding: 20px;
    max-height: calc(100vh - 260px);
    min-height: 600px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.shards-sidebar-title {
    margin-top: 0;
    color: #5BFEE0;
    margin-bottom: 15px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
    font-weight: 600;
}

.shards-sidebar-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 5px;
}

/* Кастомизация скроллбара боковой панели */
.shards-sidebar-list::-webkit-scrollbar {
    width: 6px;
}

.shards-sidebar-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.shards-sidebar-list::-webkit-scrollbar-thumb {
    background: rgba(120, 39, 159, 0.4);
    border-radius: 4px;
}

.shards-sidebar-list::-webkit-scrollbar-thumb:hover {
    background: rgba(91, 254, 224, 0.4);
}

/* Элемент списка */
.shards-sidebar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.shards-sidebar-item:hover {
    background-color: rgba(120, 39, 159, 0.12);
    border-color: rgba(91, 254, 224, 0.3);
    box-shadow: 0 0 10px rgba(120, 39, 159, 0.2);
}

.shards-sidebar-item-name {
    font-weight: 500;
    color: #FFFFFF;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.shards-sidebar-item-stats {
    font-size: 11px;
    color: #A0AEC0;
    text-align: right;
    font-family: monospace;
}

.shards-table tbody tr {
    cursor: pointer;
}