/* Общие стили */
body {
    background-color: #121417;
    font-family: 'Segoe UI', Roboto, sans-serif;
    color: #e1e1e1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Навбар */
.bg-custom-navbar {
    background-color: rgba(20, 23, 28, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #28a745;
}

/* Баннер / Герой */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(18,20,23,1)), url('https://assets.mcstatus.io/v2/banner/play.hypixel.net') center/cover;
    border-bottom: 1px solid #2c3036;
}

.glowing-text {
    color: #fff;
    text-shadow: 0 0 15px rgba(40, 167, 69, 0.6);
}

/* Карточки (новости, блоки) */
.card {
    background-color: #1a1d24;
    border: 1px solid #2c313a;
    color: #fff;
    border-radius: 10px;
}

.card-header {
    background-color: #21252e;
    border-bottom: 1px solid #2c313a;
    font-weight: bold;
}

/* Футер */
.bg-custom-footer {
    background-color: #0d0e11;
}

/* Кнопки */
.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    font-weight: 600;
}

.btn-success:hover {
    background-color: #218838;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}
/* --- RPG Тематика и Цвета --- */
:root {
    --rpg-gold: #ffc107;
    --rpg-gold-glow: rgba(255, 193, 7, 0.4);
    --rpg-purple: #6f42c1;
    --rpg-dark-card: #161920;
    --rpg-border: #2d323e;
}

/* Золотой градиентный текст */
.rpg-title-gold {
    background: linear-gradient(135deg, #fff2a3 0%, #d4af37 50%, #aa7c11 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    text-shadow: 0 0 20px var(--rpg-gold-glow);
}

/* Разделитель секций с мечом/кристаллом */
.rpg-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 3rem 0;
}
.rpg-divider::before, .rpg-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--rpg-border);
}
.rpg-divider i {
    padding: 0 1rem;
    color: var(--rpg-gold);
    font-size: 1.2rem;
}

/* Карточки Классов и Рас */
.rpg-card {
    background: var(--rpg-dark-card);
    border: 1px solid var(--rpg-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.rpg-card:hover {
    transform: translateY(-7px);
    border-color: var(--rpg-gold);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--rpg-gold-glow);
}

/* Картинка внутри карточки */
.rpg-card-img-wrapper {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.rpg-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.rpg-card:hover .rpg-card-img-wrapper img {
    transform: scale(1.1);
}

.rpg-card-icon {
    position: absolute;
    bottom: -20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #212529;
    border: 2px solid var(--rpg-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rpg-gold);
    font-size: 1.2rem;
}

/* Мониторинг онлайна */
.monitoring-card {
    background: linear-gradient(135deg, #1d212a 0%, #14161d 100%);
    border: 1px solid var(--rpg-gold);
    box-shadow: 0 0 15px var(--rpg-gold-glow);
}

.online-pulse {
    width: 10px;
    height: 10px;
    background-color: #28a745;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #28a745;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}
/* Принудительное раскрытие меню и выпадающих списков */
.navbar-collapse.show {
    display: block !important;
}

.dropdown-menu.show {
    display: block !important;
    position: absolute !important;
}

/* --- Стили для Рас и Классов Feudal Rights --- */
.rpg-badge-bonus {
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.4);
    color: #ffc107;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 6px;
}

.rpg-stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.rpg-race-card {
    background: linear-gradient(145deg, #1a1d24 0%, #121419 100%);
    border: 1px solid #2d323e;
    transition: all 0.3s ease;
}

.rpg-race-card:hover {
    border-color: #ffc107;
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.2);
}

/* --- Стили для 8 Рас и 9 Классов --- */

/* Клавиша способности [Z] */
.key-badge {
    background: linear-gradient(135deg, #ffc107 0%, #b8860b 100%);
    color: #121417;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.75rem;
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.4);
}

/* Бейдж получения XP */
.xp-badge {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.4);
    color: #28a745;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
}

/* Бейдж размера хитбокса/роста */
.size-badge {
    background: rgba(13, 202, 240, 0.15);
    border: 1px solid rgba(13, 202, 240, 0.3);
    color: #0dcaf0;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 6px;
}
/* Баннер вверху с фоном из Админки */
.hero-banner-admin {
    border: 1px solid #ffc107;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 193, 7, 0.2);
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Карточка скачивания лаунчера */
.launcher-card {
    background: linear-gradient(135deg, #1f232d 0%, #14161d 100%);
    border: 1px solid #ffc107 !important;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.25);
    border-radius: 15px;
}

.launcher-card:hover {
    box-shadow: 0 0 30px rgba(255, 193, 7, 0.4);
}
/* --- Читаемость и контрастность в Личном Кабинете --- */

/* Все подписи к полям (Labels) */
.rpg-card label, 
.rpg-card .form-label {
    color: #cbd5e1 !important; /* Яркий серебристый цвет */
    font-weight: 600;
    font-size: 0.9rem;
}

/* Все мелкие подписи и описания */
.rpg-card .text-muted,
.rpg-card small.text-muted {
    color: #94a3b8 !important; /* Светло-стальной цвет */
}

/* Поля ввода (Input) */
.rpg-card input.form-control {
    background-color: #0d0f12 !important;
    color: #2d323e !important;
    border-color: #2d323e !important;
}

.rpg-card input.form-control:focus {
    border-color: #ffc107 !important;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.3) !important;
}

/* Поля только для чтения (Никнейм и Почта) */
.rpg-card input.form-control[readonly] {
    background-color: #121418 !important;
    color: #ffc107 !important; /* Золотой ник и почта */
    border-color: #2d323e !important;
    font-weight: 700;
}
/* Переключатели категорий в Вики */
.custom-rpg-pills .nav-link {
    color: #e2e8f0;
    background: #1a1d24;
    border: 1px solid #2d323e;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.custom-rpg-pills .nav-link:hover {
    border-color: #ffc107;
    color: #ffc107;
}

.custom-rpg-pills .nav-link.active {
    background: linear-gradient(135deg, #ffc107 0%, #b8860b 100%) !important;
    color: #121417 !important;
    font-weight: 800;
    border-color: #ffc107;
    box-shadow: 0 0 12px rgba(255, 193, 7, 0.4);
}
/* Фиксация высоты Вики для защиты футера */
#v-pills-tabContent {
    min-height: 580px; /* Гарантированная минимальная высота контента справа */
}

.custom-rpg-sidebar {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
/* --- Темный Терминал Команд Вики --- */
.rpg-terminal-box {
    background-color: #0d0f14 !important;
    border: 1px solid #2d323e !important;
    border-left: 4px solid #ffc107 !important;
    color: #cbd5e1 !important;
    border-radius: 8px;
}

.rpg-terminal-box code {
    color: #ffc107 !important;
    background: transparent !important;
    font-size: 0.95rem;
    font-weight: 700;
}

.rpg-terminal-box .cmd-desc {
    color: #cbd5e1 !important; /* Четкий яркий серебристый цвет */
}