/* =====================================================================
   /style.css — Базовые стили (Инициализация)
   ===================================================================== */

/* ===== СБРОС СТИЛЕЙ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* ===== БАЗОВЫЕ НАСТРОЙКИ СТРАНИЦЫ ===== */
body {
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
    color: #c8c8c8;
    background-color: #0a0a0a;
    max-width: 480px;
    margin: 0 auto;
    padding: 0;
    line-height: 1.3;
    text-shadow: 0 1px 0 #000;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    overflow-x: hidden;
}

/* ===== ССЫЛКИ И КАРТИНКИ ===== */
a {
    color: #a0a0a0;
    text-decoration: none;
}

a:active {
    color: #e0e0e0;
}

img {
    border: 0;
    vertical-align: middle;
}

/* =====================================================================
   /system/head.php — Стили для шапки, фона и уведомлений
   ===================================================================== */

/* ===== ФОНОВЫЕ ЭФФЕКТЫ (ДЫМ) ===== */
.fog-layer { position: fixed; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 0; overflow: hidden; filter: blur(80px); background-color: #0a0a0a; }
.smoke { position: absolute; background: rgba(150, 155, 160, 0.12); border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; will-change: transform, border-radius; }
.smoke-1 { width: 70vw; height: 70vw; top: -10%; left: -10%; animation: smoke-drift-1 25s infinite alternate ease-in-out; }
.smoke-2 { width: 80vw; height: 80vw; bottom: -20%; right: -10%; background: rgba(120, 125, 130, 0.1); animation: smoke-drift-2 30s infinite alternate ease-in-out; }
.smoke-3 { width: 60vw; height: 60vw; top: 30%; left: 20%; background: rgba(100, 105, 110, 0.08); animation: smoke-drift-3 35s infinite alternate ease-in-out; }

@keyframes smoke-drift-1 { 0% { transform: translate(0, 0) rotate(0deg) scale(1); } 100% { transform: translate(-5%, 15%) rotate(180deg) scale(0.9); } }
@keyframes smoke-drift-2 { 0% { transform: translate(0, 0) rotate(0deg) scale(1); } 100% { transform: translate(-15%, -10%) rotate(-180deg) scale(1.2); } }
@keyframes smoke-drift-3 { 0% { transform: translate(0, 0) scale(0.8); opacity: 0.5; } 100% { transform: translate(-20%, 20%) scale(1.3); opacity: 1; } }

/* ===== ЧАСТИЦЫ ПЕПЛА И ИСКР ===== */
.particle-container { position: fixed; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.particle { position: absolute; border-radius: 50%; will-change: transform, opacity; }
.particle.ash { background: rgba(200, 200, 200, 0.6); box-shadow: 0 0 3px rgba(200, 200, 200, 0.4); }
.particle.ember { background: rgba(255, 140, 0, 1); box-shadow: 0 0 8px rgba(255, 100, 0, 0.9), 0 0 2px rgba(255, 200, 0, 1); }

@keyframes fly-path-1 { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translate(120vw, -100vh); opacity: 0; } }
@keyframes fly-path-2 { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 0.8; } 90% { opacity: 0.8; } 100% { transform: translate(110vw, -120vh); opacity: 0; } }
@keyframes fly-path-3 { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 0.6; } 90% { opacity: 0.6; } 100% { transform: translate(100vw, -100vh); opacity: 0; } }

/* Виньетка */
body::after { content: ""; position: fixed; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; box-shadow: inset 0 0 120px rgba(0,0,0,0.95); z-index: 999; }

/* ===== ШАПКА ===== */
.head { background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%); border-bottom: 1px solid #4a4a4a; padding: 6px 8px; display: flex; align-items: center; justify-content: space-between; position: relative; box-shadow: 0 1px 4px rgba(0,0,0,0.8); z-index: 2; }
.head::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent 0%, #6a6a6a 20%, #8a8a8a 50%, #6a6a6a 80%, transparent 100%); }
.head-title { font-family: Georgia, "Times New Roman", serif; color: #d0d0d0; font-weight: 700; font-size: 12px; letter-spacing: 0.8px; text-shadow: 0 0 6px rgba(208, 208, 208, 0.3), 0 1px 0 #000; }
.head-right { display: flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 700; }
.head-right span { display: flex; align-items: center; gap: 3px; }
.head-right img { width: 12px; height: 12px; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.8)) brightness(1.1); }
.head-hp { color: #c04a4a; }
.head-mp { color: #5a7a9a; }
.head-mail img { animation: pulse-mail 2s infinite; }

@keyframes pulse-mail {
    0% { filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.2)); }
    50% { filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.8)); }
    100% { filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.2)); }
}

/* ===== ПОЛОСА ОПЫТА (ИСПРАВЛЕНО) ===== */
.exp-bar { 
    height: 4px; /* Сделали чуть толще */
    background: #2a2a2a; /* Светлее, чтобы пустая дорожка была видна */
    overflow: hidden; 
    box-shadow: inset 0 2px 3px rgba(0,0,0,0.9); 
    position: relative; 
    z-index: 2; 
    border-bottom: 1px solid #000;
}
.exp-bar-fill { 
    height: 100%; 
    background: linear-gradient(90deg, #5a5a5a, #a0a0a0, #d0d0d0); 
    box-shadow: 0 0 6px rgba(180, 180, 180, 0.6); 
    position: relative; 
    overflow: hidden; 
    transition: width 0.3s ease;
}
.exp-bar-fill::after { 
    content: ""; 
    position: absolute; 
    top: 0; left: -100%; 
    width: 100%; height: 100%; 
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent); 
    animation: shimmer 2s infinite; 
}
@keyframes shimmer { 
    0% { left: -100%; } 
    100% { left: 100%; } 
}

/* ===== УВЕДОМЛЕНИЯ И БЛОКИ (Общие стили) ===== */
.main { background: #222222; padding: 0; margin: 0; position: relative; z-index: 2; box-shadow: 0 0 30px rgba(0,0,0,0.8); }

.block { background: #2a2a2a; border: 1px solid #3a3a3a; border-radius: 6px; margin: 8px; padding: 10px; }
.center { text-align: center; }
.separ { height: 1px; background: linear-gradient(90deg, transparent, #3e3d36, transparent); margin: 8px 0; }
.mini-line { height: 1px; background: #3e3d36; margin: 4px 0; }
.muted-link { color: #8a8a8a; font-size: 10px; text-decoration: underline; cursor: pointer; }
.green-text { color: #7aaa4a; font-weight: 700; }

/* Уведомление о новом уровне */
/* .level-up-block { border-color: #f4d06e; background: linear-gradient(180deg, #2a2a2a 0%, #1f1d18 100%); } */
/* .level-up-text { color: #ff9; font-size: 14px; font-family: Georgia, serif; font-weight: 700; text-shadow: 0 0 5px rgba(255,255,0,0.3); } */
/* .level-up-reward { font-size: 12px; color: #c8c8c8; margin-top: 4px; } */
/* .level-up-reward img { width: 12px; height: 12px; } */

/* Объявление клана */
.clan-msg-block { font-size: 11px; }
.time-ago { font-size: 9px; color: #666; margin-top: 4px; display: inline-block; }

/* Приглашение в клан */
.invite-clan-info { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; }
.invite-gerb { width: 40px; height: 40px; border: 1px solid #444; border-radius: 4px; }
.invite-details { text-align: left; font-size: 10px; line-height: 1.4; }
.invite-details a { color: #f4d06e; font-weight: 700; font-family: Georgia, serif; font-size: 11px; }
.invite-details img { width: 12px; height: 12px; vertical-align: middle; }

/* =====================================================================
   /system/foot.php — Стили для нижней части сайта (Футер)
   ===================================================================== */

.foot { 
    background: linear-gradient(180deg, #1a1a1a 0%, #121212 100%); 
    border-top: 1px solid #3e3e3e; 
    padding: 6px 8px; 
    margin-top: 4px; 
    position: relative; 
    z-index: 2; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.8); 
}

.foot::before { 
    content: ""; 
    position: absolute; 
    top: -1px; left: 0; right: 0; 
    height: 1px; 
    background: linear-gradient(90deg, transparent 0%, #5a5a5a 20%, #7a7a7a 50%, #5a5a5a 80%, transparent 100%); 
}

/* Кнопки навигации */
.foot-nav { 
    display: flex; 
    gap: 4px; 
    padding-bottom: 6px; 
    margin-bottom: 6px; 
    border-bottom: 1px solid #2a2a2a; 
}

.foot-nav a { 
    flex: 1; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 4px; 
    color: #b0b0b0; 
    font-size: 10px; 
    padding: 6px 4px; 
    background: linear-gradient(180deg, #333333 0%, #222222 100%); 
    border: 1px solid #444444; 
    border-radius: 4px; 
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 2px rgba(0, 0, 0, 0.5); 
    transition: all 0.15s ease; 
    text-shadow: 0 1px 1px #000; 
}

.foot-nav a:hover { 
    background: linear-gradient(180deg, #404040 0%, #2a2a2a 100%); 
    border-color: #666666; 
    color: #ffffff; 
}

.foot-nav a:active { 
    transform: translateY(1px); 
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.8); 
}

.foot-nav img { 
    width: 12px; 
    height: 12px; 
    opacity: 0.8; 
}

/* Информация об игроке */
.foot-user { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    margin-bottom: 5px; 
    padding-bottom: 5px; 
    border-bottom: 1px solid #2a2a2a; 
}

.foot-name { 
    display: flex; 
    align-items: center; 
    gap: 5px; 
    font-family: Georgia, "Times New Roman", serif; 
    color: #b0b0b0; 
    font-weight: 700; 
    font-size: 12px; 
    text-shadow: 0 0 6px rgba(176, 176, 176, 0.3); 
}

.foot-name img { 
    width: 14px; 
    height: 14px; 
}

.foot-stats { 
    font-size: 10px; 
    color: #909090; 
    display: flex; 
    align-items: center; 
    gap: 5px; 
}

.foot-stats img { 
    width: 10px; 
    height: 10px; 
}

.foot-stats .gold { color: #b0b0b0; font-weight: 700; }
.foot-stats .silver { color: #909090; font-weight: 700; }

/* Ссылки */
.foot-links { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 6px 0; 
    font-size: 10px; 
}

.foot-links a { 
    color: #8a8a8a; 
    padding: 0 4px; 
    transition: color 0.2s, text-shadow 0.2s; 
}

.foot-links a:hover { 
    color: #e0e0e0; 
    text-shadow: 0 0 5px rgba(255,255,255,0.5); 
}

.foot-links a:active { color: #c8c8c8; }

.foot-links .dot { 
    color: #3e3e3e; 
    font-size: 8px; 
}

/* Копирайт */
.foot-copyright { 
    text-align: center; 
    font-size: 9px; 
    color: #5a5a5a; 
    line-height: 1.5; 
    font-style: italic; 
    margin-top: 5px; 
}

.foot-copyright .online { 
    color: #8a8a8a; 
    font-weight: 700; 
    font-style: normal; 
}

/* =====================================================================
   /index.php — Стили для главной страницы
   ===================================================================== */

/* ===== КАРТИНКА ГОРОДА ===== */
.town-image {
    padding: 5px;
    text-align: center;
    background: linear-gradient(180deg, #0a0a0a 0%, #1c1c1c 100%);
    border-bottom: 1px solid #2e2e2e;
}

.town-image img {
    width: 100%;
    height: auto; 
    display: block; 
    border: 1px solid #3e3e3e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* ===== МЕНЮ И ЭЛЕМЕНТЫ СПИСКА ===== */
.menuList .sub {
    display: block;
    font-size: 9px;
    color: #6a6a6a;
    margin-top: 1px;
    font-style: italic;
}

.menuList .badge {
    display: inline-block;
    color: #7aaa4a;
    font-weight: 700;
    margin-left: 3px;
    text-shadow: 0 0 4px rgba(122, 170, 74, 0.4);
}

/* ===== ФОРМА ВХОДА (ДЛЯ ГОСТЕЙ) ===== */
.login-container {
    padding: 15px 15px 20px 15px;
    text-align: center;
    background: linear-gradient(180deg, #0a0a0a 0%, #1c1c1c 100%);
    border-bottom: 1px solid #2e2e2e;
}

.login-logo {
    margin-bottom: 15px;
    max-width: 100%;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.8));
    border: 1px solid #3e3e3e;
}

.login-intro {
    margin-bottom: 20px;
}

.login-headline {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    color: #e0e0e0;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(224, 224, 224, 0.3), 0 2px 2px #000;
}

.login-subtext {
    font-size: 11px;
    color: #8a8a8a;
    line-height: 1.6;
    margin-bottom: 10px;
    text-shadow: 0 1px 1px #000;
}

.login-players {
    font-size: 13px;
    color: #b0b0b0;
    font-weight: bold;
}

.login-players .highlight {
    color: #ff9c00;
    text-shadow: 0 0 8px rgba(255, 156, 0, 0.4);
}

.form-group {
    margin-bottom: 12px;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 10px;
    color: #8a8a8a;
    margin-bottom: 4px;
    padding-left: 4px;
}

.form-input {
    width: 100%;
    background: #111;
    border: 1px solid #4a4a4a;
    color: #d0d0d0;
    padding: 10px;
    border-radius: 4px;
    font-family: Verdana, Arial, sans-serif;
    font-size: 12px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.8);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-input:focus {
    border-color: #8a8a8a;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.8), 0 0 5px rgba(138, 138, 138, 0.3);
}

/* Кнопки */
.btn-action {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    background: linear-gradient(180deg, #404040 0%, #2a2a2a 100%);
    border: 1px solid #5a5a5a;
    border-radius: 4px;
    color: #e0e0e0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.15s ease;
    position: relative;
    overflow: hidden;
}

.btn-action:hover {
    background: linear-gradient(180deg, #505050 0%, #353535 100%);
    border-color: #7a7a7a;
    color: #fff;
}

.btn-action:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.8);
}

.btn-action::after {
    content: "";
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: none;
}
.btn-action:hover::after {
    animation: nav-shimmer 1s ease;
}

.btn-register {
    background: linear-gradient(180deg, #2a3a2a 0%, #1a2a1a 100%);
    border-color: #4a5a4a;
    margin-top: 10px;
}
.btn-register:hover {
    background: linear-gradient(180deg, #3a4a3a 0%, #2a3a2a 100%);
    border-color: #6a7a6a;
}

@keyframes nav-shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* Блок "Об игре" */
.about-game {
    padding: 15px;
    background: #1c1c1c;
    border-bottom: 1px solid #2e2e2e;
    text-align: center;
}

.about-game .section-title {
    padding: 0 0 10px 0;
}

.about-text {
    font-size: 11px;
    color: #8a8a8a;
    line-height: 1.6;
    text-shadow: 0 1px 1px #000;
}

/* =====================================================================
   /start.php — Стили для страницы регистрации, истории и эффекта пробуждения
   ===================================================================== */

/* ===== ЭФФЕКТ ОТКРЫВАЮЩИХСЯ ГЛАЗ ===== */
#eye-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999; /* Поверх всего интерфейса */
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.eyelid {
    background-color: #000;
    width: 100%;
    height: 50vh;
    /* Плавное, слегка замедленное открытие */
    transition: transform 1.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.eyelid.top {
    transform-origin: top;
    transform: translateY(0);
    border-bottom: 1px solid #111; /* Тонкая линия стыка */
}

.eyelid.bottom {
    transform-origin: bottom;
    transform: translateY(0);
    border-top: 1px solid #111;
}

/* КОГДА ГЛАЗА ОТКРЫВАЮТСЯ */
body.eyes-open .eyelid.top {
    transform: translateY(-100%);
}

body.eyes-open .eyelid.bottom {
    transform: translateY(100%);
}

/* ===== ЭКРАН 1: ВСТУПИТЕЛЬНАЯ ИСТОРИЯ ===== */
.intro-container {
    padding: 30px 20px;
    text-align: center;
    background: linear-gradient(180deg, #0a0a0a 0%, #1c1c1c 100%);
    border-bottom: 1px solid #2e2e2e;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Эффект "фокусировки зрения" при пробуждении */
    animation: wake-up 3s ease-out forwards;
}

@keyframes wake-up {
    0% { filter: blur(10px) brightness(0.1); }
    50% { filter: blur(5px) brightness(0.5); }
    100% { filter: blur(0) brightness(1); }
}

.intro-text {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    line-height: 1.8;
    color: #c8c8c8;
    text-shadow: 0 0 5px rgba(200, 200, 200, 0.2), 0 1px 0 #000;
    min-height: 200px; 
    text-align: left;
}

/* Мигающий курсор в конце текста */
.intro-text::after {
    content: "|";
    animation: blink 0.8s infinite;
    color: #f4d06e;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Кнопка "Продолжить..." */
#continue-btn {
    margin-top: 30px;
    max-width: 250px;
    align-self: center;
    background: linear-gradient(180deg, #404040 0%, #2a2a2a 100%);
    border: 1px solid #5a5a5a;
    color: #f4d06e;
    font-size: 14px;
    display: none; /* Изначально скрыта, JS покажет */
}

#continue-btn:hover {
    border-color: #f4d06e;
    color: #fff;
    background: linear-gradient(180deg, #505050 0%, #353535 100%);
}

/* ===== ЭКРАН 2: ФОРМА РЕГИСТРАЦИИ ===== */
.register-container {
    padding: 20px 15px;
    background: linear-gradient(180deg, #0a0a0a 0%, #1c1c1c 100%);
    border-bottom: 1px solid #2e2e2e;
    display: none; /* Изначально скрыта, JS покажет */
}

/* Блок ошибок */
.errors-block {
    background: rgba(168, 58, 58, 0.15);
    border: 1px solid #8a3030;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 15px;
}

.error-msg {
    color: #f0a0a0;
    font-size: 11px;
    margin-bottom: 4px;
    text-shadow: 0 1px 1px #000;
}
.error-msg:last-child {
    margin-bottom: 0;
}

/* Сетка для радио-кнопок (выбор расы/пола) */
.radio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* СКРЫВАЕМ СТАНДАРТНЫЙ ИНПУТ */
.radio-grid input[type="radio"] {
    display: none;
}

/* КАСТОМНАЯ КНОПКА */
.radio-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #151515;
    border: 1px solid #3e3e3e;
    border-radius: 6px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.8);
    font-size: 12px;
    color: #a0a0a0;
}

.radio-box img {
    width: 18px;
    height: 18px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

/* Эффект при наведении */
.radio-box:hover {
    border-color: #666;
    background: #1c1c1c;
}

/* Стилизация при выборе */
.radio-grid input[type="radio"]:checked + .radio-box {
    border-color: #8a8a8a;
    background: #222222;
    color: #e0e0e0;
    box-shadow: inset 0 1px 5px rgba(0,0,0,0.8), 0 0 10px rgba(255,255,255,0.05);
}

.radio-grid input[type="radio"]:checked + .radio-box img {
    opacity: 1;
}

/* Ссылки */
.muted-link {
    color: #8a8a8a;
    font-size: 11px;
    text-decoration: underline;
    transition: color 0.2s;
}

.muted-link:hover {
    color: #c8c8c8;
}

/* =====================================================================
   /index.php — Стили для авторизованной главной страницы
   ===================================================================== */

/* ===== КАРТИНКА ГОРОДА ===== */
.town-image {
    padding: 5px;
    text-align: center;
    background: linear-gradient(180deg, #0a0a0a 0%, #1c1c1c 100%);
    border-bottom: 1px solid #2e2e2e;
}

.town-image img {
    width: 100%;
    height: auto; 
    display: block; 
    border: 1px solid #3e3e3e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* ===== ЗАГОЛОВКИ РАЗДЕЛОВ (Сражения / Локации) ===== */
.section-title {
    font-family: Georgia, "Times New Roman", serif;
    text-align: center;
    color: #8a8a8a;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 8px 4px;
    font-weight: 700;
    text-shadow: 0 1px 0 #000;
}

.section-title::before,
.section-title::after {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #4a4a4a);
    margin: 0 6px;
}
.section-title::after {
    background: linear-gradient(90deg, #4a4a4a, transparent);
}

/* ===== БЛОК МЕНЮ ===== */
.menuList {
    list-style: none;
    padding: 0;
    margin: 0;
    background: linear-gradient(180deg, #262626 0%, #1c1c1c 100%);
    border-top: 1px solid #2e2e2e;
    border-bottom: 1px solid #2e2e2e;
}

.menuList li {
    list-style: none;
    border-bottom: 1px solid #2a2a2a;
    position: relative;
    transition: background 0.12s ease;
}

.menuList li:last-child {
    border-bottom: 0;
}

.menuList li:hover,
.menuList li:active {
    background: linear-gradient(90deg, #323232 0%, #262626 50%, #323232 100%);
}

.menuList a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    color: #c8c8c8;
    text-decoration: none;
    font-size: 11px;
    position: relative;
}

.menuList a:hover {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* Свечение иконки при наведении на пункт меню */
.menuList a:hover img {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
}

.menuList img {
    width: 12px;  /* Уменьшили с 14px */
    height: 12px; /* Уменьшили с 14px */
    flex-shrink: 0;
    image-rendering: -webkit-optimize-contrast;
    filter: drop-shadow(0 1px 0 rgba(0,0,0,0.9));
}

/* Контейнер для текста (Название и подпись) */
.menuList .label {
    flex: 1;
    display: block; /* Строго блочный элемент, чтобы текст не слипался */
    text-align: left;
    line-height: 1.3;
}

.menuList .sub {
    display: block; /* Гарантирует перенос на новую строку */
    font-size: 9px;
    color: #6a6a6a;
    margin-top: 2px;
    font-style: italic;
}

/* Зеленый плюсик */
.menuList .badge {
    display: inline-block;
    color: #7aaa4a;
    font-weight: 700;
    margin-left: 4px;
    text-shadow: 0 0 4px rgba(122, 170, 74, 0.4);
}

/* Стрелочка вправо */
.menuList .arrow {
    color: #4a4a4a;
    font-size: 14px;
    font-family: Georgia, serif;
}

/* =====================================================================
   /user.php — Стили для страницы профиля игрока
   ===================================================================== */

.profile-top {
    padding: 10px;
    background: linear-gradient(180deg, #1a1a1a 0%, #151515 100%);
    border-bottom: 1px solid #2e2e2e;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Визуальная сетка (Манекен + Слоты) */
.profile-visuals {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px; 
    background: #111;
    border: 1px solid #2e2e2e;
    padding: 6px;
    border-radius: 4px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.equip-column {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mannequin-center {
    width: 120px;
    height: 180px;
    background: #1c1c1c;
    border: 1px solid #3e3e3e;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.9);
    padding: 0;
    margin: 0 4px;
}

.mannequin-center img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    opacity: 0.95; 
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.8)); 
}

.equip-icon-box {
    width: 42px; height: 42px;
    background: #151515;
    border: 1px solid #3e3e3e;
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 1px 5px rgba(0,0,0,0.8);
    transition: border-color 0.2s;
}
.equip-icon-box:hover { border-color: #666; }
.equip-icon-box img { width: 90%; height: 90%; object-fit: contain; image-rendering: -webkit-optimize-contrast; filter: drop-shadow(0 1px 2px #000); }
.equip-icon-box.empty { border-style: dashed; background: #0a0a0a; border-color: #222; }

/* Блок умений */
.abilities-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: #111;
    border: 1px solid #2e2e2e;
    padding: 6px;
    border-radius: 4px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.ability-icon-box {
    width: 34px; height: 34px;
    background: #151515;
    border: 1px solid #3e3e3e;
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 1px 5px rgba(0,0,0,0.8);
    position: relative;
}
.ability-icon-box img { width: 90%; height: 90%; object-fit: contain; image-rendering: -webkit-optimize-contrast; filter: drop-shadow(0 0 4px rgba(255,255,255,0.2)); }

/* Панель с информацией и статами */
.profile-info-panel { 
    background: linear-gradient(180deg, #111111 0%, #0a0a0a 100%); 
    border: 1px solid #3e3e3e; 
    border-radius: 6px; 
    padding: 15px; 
    box-shadow: inset 0 0 25px rgba(0,0,0,0.9), 0 4px 10px rgba(0,0,0,0.5); 
    position: relative; 
    overflow: hidden; 
}
.profile-info-panel::before { 
    content: ""; 
    position: absolute; 
    top: 0; left: 0; right: 0; 
    height: 1px; 
    background: linear-gradient(90deg, transparent, #5a5a5a, transparent); 
}

.char-header { text-align: center; margin-bottom: 12px; }
.char-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    color: #f0f0f0;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(240, 240, 240, 0.4), 0 2px 2px #000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
}
.char-name img { width: 18px; height: 18px; filter: drop-shadow(0 0 5px rgba(0,0,0,0.8)); }

.status-badge { font-family: Verdana, Arial, sans-serif; font-size: 9px; padding: 2px 6px; border-radius: 4px; margin-left: 6px; vertical-align: middle; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; box-shadow: inset 0 1px 3px rgba(0,0,0,0.5); }
.status-online { background: rgba(50, 150, 50, 0.2); color: #5cb85c; border: 1px solid #3c763d; text-shadow: 0 0 5px rgba(92, 184, 92, 0.5); }
.status-offline { background: rgba(150, 50, 50, 0.2); color: #d9534f; border: 1px solid #a94442; text-shadow: 0 0 5px rgba(217, 83, 79, 0.5); }

.char-clan-badge { display: inline-block; background: rgba(255, 255, 255, 0.05); border: 1px solid #3e3e3e; border-radius: 12px; padding: 3px 12px; font-size: 10px; color: #a0a0a0; box-shadow: inset 0 1px 3px rgba(0,0,0,0.5); }
.char-clan-badge span { color: #d0d0d0; font-weight: 700; }

.char-divider { height: 1px; background: linear-gradient(90deg, transparent, #3e3e3e, transparent); margin: 12px 0; }

/* Текстовые статы */
.stats-text-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.stat-text-row { display: flex; align-items: center; justify-content: space-between; padding-bottom: 4px; border-bottom: 1px dotted #2a2a2a; }
.stat-text-left { display: flex; align-items: center; gap: 6px; color: #8a8a8a; font-size: 11px; }
.stat-text-left img { width: 14px; height: 14px; opacity: 0.8; }
.stat-text-right { color: #e0e0e0; font-weight: 700; font-size: 13px; font-family: Georgia, serif; text-shadow: 0 0 5px rgba(255,255,255,0.2); }

/* Блок последнего визита */
.last-seen-block { background: #151515; border-bottom: 1px solid #2e2e2e; padding: 10px; text-align: center; font-size: 10px; color: #8a8a8a; display: flex; justify-content: center; align-items: center; gap: 6px; }
.last-seen-block img { width: 12px; height: 12px; opacity: 0.5; }
.last-seen-block span { color: #c8c8c8; font-weight: 700; }

/* =====================================================================
   /ability.php — Стили для страницы умений
   ===================================================================== */

.ability-card {
    background: linear-gradient(180deg, #111111 0%, #0a0a0a 100%);
    border: 1px solid #3e3e3e;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.9), 0 2px 5px rgba(0,0,0,0.5);
}

.ability-card:last-child {
    margin-bottom: 0;
}

/* Шапка карточки (иконка + текст) */
.ability-header {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.ability-icon {
    width: 50px;
    height: 50px;
    background: #151515;
    border: 1px solid #3e3e3e;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 1px 5px rgba(0,0,0,0.8);
}

.ability-icon img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}

.ability-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ability-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    color: #e0e0e0;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(224, 224, 224, 0.3), 0 1px 0 #000;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ability-name img {
    width: 14px;
    height: 14px;
}

.ability-desc {
    font-size: 10px;
    color: #8a8a8a;
    margin-top: 2px;
    font-style: italic;
}

.ability-stats {
    font-size: 11px;
    color: #b0b0b0;
    margin-top: 4px;
}

.ability-stats b {
    color: #7aaa4a; /* Зеленоватый оттенок для бонусов */
}

.ability-stats.muted {
    color: #555;
    font-style: italic;
}

/* Прогресс-бар умения */
.ability-progress {
    height: 4px;
    background: #1a1a1a;
    border-radius: 2px;
    margin: 8px 0;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.8);
}

.ability-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a4a4a, #8a8a8a);
    box-shadow: 0 0 5px rgba(138, 138, 138, 0.5);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Кнопка действия */
.ability-action {
    text-align: center;
    margin-top: 8px;
}

.ability-action .btn-action {
    display: inline-block;
    width: 100%;
    padding: 8px;
    margin: 0;
    font-size: 12px;
}

.ability-action .btn-action img {
    width: 12px;
    height: 12px;
    margin-top: -2px;
    vertical-align: middle;
}

.ability-maxed {
    display: inline-block;
    padding: 6px;
    color: #f4d06e;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(244, 208, 110, 0.3);
    border: 1px solid #5a4a2a;
    border-radius: 4px;
    background: rgba(244, 208, 110, 0.05);
    width: 100%;
    box-sizing: border-box;
}

/* =====================================================================
   /adm.php — Стили для Админ-панели
   ===================================================================== */

.admin-container {
    padding: 10px;
    background: linear-gradient(180deg, #1a1a1a 0%, #151515 100%);
    min-height: 500px;
}

.admin-form {
    background: #111;
    border: 1px solid #3e3e3e;
    border-radius: 6px;
    padding: 15px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.9);
    margin-bottom: 15px;
}

.admin-form .form-group {
    margin-bottom: 12px;
}

.admin-form label {
    display: block;
    font-size: 10px;
    color: #8a8a8a;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-form .form-input {
    width: 100%;
    background: #1c1c1c;
    border: 1px solid #4a4a4a;
    color: #d0d0d0;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 12px;
    box-sizing: border-box;
    outline: none;
}
.admin-form .form-input:focus {
    border-color: #8a8a8a;
    box-shadow: 0 0 5px rgba(138, 138, 138, 0.3);
}

.admin-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.admin-time-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 5px;
}

.admin-result {
    background: #111;
    border: 1px solid #3e3e3e;
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 10px;
    word-break: break-all;
    color: #8a8a8a;
}

.admin-result-row {
    margin-bottom: 5px;
}

.admin-result-row b {
    color: #d0d0d0;
}

/* =====================================================================
   /ban.php — Стили для страницы блокировки
   ===================================================================== */

.ban-container {
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ban-icon {
    margin-bottom: 15px;
    animation: pulse-error 2s infinite;
}

.ban-icon img {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 0 15px rgba(200, 50, 50, 0.6));
}

@keyframes pulse-error {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

.ban-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    color: #c06060;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(192, 96, 96, 0.4), 0 2px 2px #000;
    margin-bottom: 10px;
}

.ban-divider {
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #3e3e3e, transparent);
    margin: 15px 0;
}

.ban-time {
    font-size: 13px;
    color: #a0a0a0;
    line-height: 1.6;
}

.ban-time span {
    display: inline-block;
    font-family: "Courier New", Courier, monospace;
    font-size: 20px;
    color: #f4d06e;
    font-weight: 700;
    margin-top: 5px;
    text-shadow: 0 0 8px rgba(244, 208, 110, 0.4);
}

.ban-desc {
    font-size: 11px;
    color: #777;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Кнопка выхода */
.ban-container .btn-action {
    width: 200px;
    background: linear-gradient(180deg, #333333 0%, #1a1a1a 100%);
    border-color: #5a5a5a;
    color: #c8c8c8;
}

.ban-container .btn-action:hover {
    background: linear-gradient(180deg, #444444 0%, #2a2a2a 100%);
    border-color: #888;
    color: #fff;
}

/* =====================================================================
   /adm.php — Стили для списка платежей UnitPay
   ===================================================================== */

.payment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border-bottom: 1px solid #2a2a2a;
    background: #111;
    transition: background 0.15s;
}

.payment-item:hover {
    background: #1c1c1c;
}

.payment-item:last-child {
    border-bottom: 0;
}

.payment-user {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #c8c8c8;
    font-weight: 700;
    font-size: 11px;
    flex: 1;
    min-width: 0;
}

.payment-user img {
    width: 14px;
    height: 14px;
    opacity: 0.8;
}

.payment-sum {
    color: #f4d06e;
    font-weight: 700;
    font-size: 12px;
    margin: 0 15px;
}

.payment-status {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    width: 60px;
    text-align: right;
}

/* Пагинация в админке (аналогично чату) */
.admin-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 15px;
    padding: 10px;
}

.admin-pagination a,
.admin-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    background: #111;
    border: 1px solid #2e2e2e;
    border-radius: 4px;
    color: #8a8a8a;
    font-size: 10px;
    text-decoration: none;
    box-sizing: border-box;
}

.admin-pagination a:hover {
    background: #2a2a2a;
    color: #e0e0e0;
    border-color: #5a5a5a;
}

.admin-pagination span.current {
    background: #2a2a2a;
    border-color: #5a5a5a;
    color: #f4d06e;
    font-weight: 700;
}

.admin-pagination span.dots {
    border: none;
    background: transparent;
    color: #555;
    min-width: auto;
}

/* =====================================================================
   /arena.php — Стили для Арены
   ===================================================================== */

.arena-opponent {
    padding: 15px;
    background: linear-gradient(180deg, #111 0%, #0a0a0a 100%);
    border: 1px solid #3e3e3e;
    border-radius: 6px;
    margin: 10px;
}

.arena-title {
    font-family: Georgia, serif;
    font-size: 10px;
    text-transform: uppercase;
    color: #8a8a8a;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.arena-user {
    font-family: Georgia, serif;
    font-size: 16px;
    color: #e0e0e0;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
}

.arena-race {
    width: 16px;
    height: 16px;
}

.arena-maneken {
    width: 120px;
    height: 180px;
    margin: 0 auto;
    background: #1c1c1c;
    border: 1px solid #3e3e3e;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.9);
}

.arena-maneken img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.arena-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    font-size: 12px;
    color: #c8c8c8;
}

.arena-stats img {
    width: 12px;
    height: 12px;
    margin-top: -2px;
}

/* =====================================================================
   /arena.php — Красивая панель параметров и блок подсказки
   ===================================================================== */

/* Панель своих параметров */
.arena-own-panel {
    background: linear-gradient(180deg, #151515 0%, #0d0d0d 100%);
    border: 1px solid #2e2e2e;
    border-radius: 6px;
    margin: 10px;
    padding: 10px 12px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.arena-panel-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 9px;
    text-transform: uppercase;
    color: #8a8a8a;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 8px;
    font-weight: 700;
    text-shadow: 0 1px 0 #000;
}

.arena-stats-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Каждый стат */
.arena-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
    position: relative;
}

/* Красивые разделители между статами */
.arena-stat-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: linear-gradient(180deg, transparent, #3e3e3e, transparent);
}

.arena-stat-item img {
    width: 14px;
    height: 14px;
    opacity: 0.7;
    filter: drop-shadow(0 1px 1px #000);
}

.arena-stat-item .stat-name {
    font-size: 10px;
    color: #7a7a7a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.arena-stat-item .stat-value {
    color: #e0e0e0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    font-weight: 700;
    text-shadow: 0 1px 2px #000;
    margin-left: 2px;
}

/* Блок подсказки */
.arena-hint-block {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #111111;
    border: 1px solid #2e2e2e;
    border-left: 3px solid #4a4a4a; /* Аккуратный серый акцент слева */
    border-radius: 4px;
    margin: 0 10px 10px 10px;
    padding: 10px 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.hint-icon {
    width: 18px;
    height: 18px;
    opacity: 0.5;
    filter: drop-shadow(0 1px 2px #000);
    flex-shrink: 0;
}

.hint-text {
    font-size: 10px;
    color: #8a8a8a;
    line-height: 1.5;
    font-style: italic;
    text-shadow: 0 1px 1px #000;
}

/* =====================================================================
   /cave.php — Стили для Пещеры
   ===================================================================== */

.cave-container {
    padding: 15px;
    background: linear-gradient(180deg, #1a1a1a 0%, #151515 100%);
    border-bottom: 1px solid #2e2e2e;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 400px;
}

.cave-image-box {
    width: 150px;
    height: 150px;
    margin-bottom: 15px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.8));
    animation: cave-breathe 4s ease-in-out infinite alternate;
}

.cave-image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes cave-breathe {
    0% { transform: scale(1); filter: drop-shadow(0 5px 15px rgba(0,0,0,0.8)) brightness(0.9); }
    100% { transform: scale(1.05); filter: drop-shadow(0 10px 20px rgba(0,0,0,0.9)) brightness(1.1); }
}

.cave-text {
    font-size: 12px;
    color: #c8c8c8;
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.5;
}

.cave-text.status-text {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    color: #e0e0e0;
    text-shadow: 0 0 5px rgba(224, 224, 224, 0.2), 0 1px 0 #000;
}

.cave-text.status-text.green {
    color: #7aaa4a;
    text-shadow: 0 0 8px rgba(122, 170, 74, 0.3), 0 1px 0 #000;
}

.cave-timer {
    font-family: "Courier New", Courier, monospace;
    font-size: 20px;
    color: #f4d06e;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(244, 208, 110, 0.4);
}

/* Анимация прогресс-бара (просто бегающая полоска) */
.cave-progress-bar {
    width: 80%;
    height: 4px;
    background: #0a0a0a;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.9);
    margin-bottom: 20px;
}

.cave-progress-fill {
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, transparent, #f4d06e, transparent);
    animation: cave-progress-slide 2s infinite linear;
}

@keyframes cave-progress-slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

/* Кнопки и действия */
.cave-action-box {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

.cave-action-box .btn-action {
    max-width: 250px;
    margin: 0 auto;
}

/* Список найденных ресурсов */
.cave-res-list {
    width: 100%;
    max-width: 300px;
    background: #111;
    border: 1px solid #2e2e2e;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 15px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
}

.cave-res-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-bottom: 1px solid #2a2a2a;
}

.cave-res-item:last-child {
    border-bottom: 0;
}

.cave-res-item img {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px #000);
}

.cave-res-info {
    text-align: left;
}

.cave-res-name {
    color: #e0e0e0;
    font-weight: 700;
    font-size: 12px;
    font-family: Georgia, serif;
}

.cave-res-chance {
    font-size: 10px;
    color: #8a8a8a;
    margin-top: 2px;
}

/* Результаты добычи */
.cave-result-block {
    padding: 20px;
    margin: 15px;
    background: linear-gradient(180deg, #111 0%, #0a0a0a 100%);
    border: 1px solid #3e3e3e;
    border-radius: 6px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.9);
}

.cave-title {
    font-family: Georgia, serif;
    font-size: 14px;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cave-result-text {
    font-size: 12px;
    color: #c8c8c8;
    margin-bottom: 10px;
}

.cave-result-text.muted {
    color: #777;
    font-style: italic;
}

.cave-earned-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 8px 0;
    font-size: 13px;
    color: #f4d06e;
    font-weight: 700;
}

.cave-earned-item img {
    width: 24px;
    height: 24px;
}

.plus-one {
    color: #7aaa4a;
    font-size: 11px;
    margin-left: 4px;
}

/* =====================================================================
   /cave.php — Гид по пещере (подсказки)
   ===================================================================== */

.cave-guide {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #2e2e2e;
    border-radius: 6px;
    padding: 12px;
    width: 90%;
    max-width: 320px;
    margin-bottom: 20px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.guide-title {
    font-family: Georgia, "Times New Roman", serif;
    color: #8a8a8a;
    text-align: center;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-weight: 700;
}

.guide-res-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.guide-res-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #111;
    border: 1px solid #222;
    border-radius: 4px;
    padding: 6px 2px;
}

.guide-res-item img {
    width: 22px;
    height: 22px;
    opacity: 0.8;
    filter: drop-shadow(0 1px 2px #000);
}

.guide-res-item span {
    font-size: 9px;
    color: #a0a0a0;
    text-align: center;
}

.guide-time {
    text-align: center;
    font-size: 10px;
    color: #6a6a6a;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #2a2a2a;
    font-style: italic;
}

/* =====================================================================
   /cave.php — Блок с советами во время ожидания
   ===================================================================== */

.cave-tip-box {
    width: 90%;
    max-width: 340px;
    background: rgba(20, 20, 20, 0.6);
    border: 1px dashed #3e3e3e;
    border-radius: 6px;
    padding: 15px;
    margin-top: 25px;
    text-align: center;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
    animation: fadeInTip 1s ease-out;
}

.tip-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 10px;
    color: #f4d06e; /* Золотистый акцент */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    font-weight: 700;
    opacity: 0.8;
}

.tip-text {
    font-size: 11px;
    color: #8a8a8a;
    line-height: 1.6;
    font-style: italic;
}

@keyframes fadeInTip {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* =====================================================================
   /chat.php — Стили для чата
   ===================================================================== */

.chat-wrapper {
    padding: 10px;
    background: linear-gradient(180deg, #1a1a1a 0%, #151515 100%);
    min-height: 500px;
}

/* Вкладки */
.chat-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
}

/* Неактивная вкладка */
.chat-tabs a {
    flex: 1;
    text-align: center;
    padding: 8px;
    background: #1c1c1c; /* Темный фон */
    border: 1px solid #3e3e3e;
    border-radius: 4px;
    color: #7a7a7a; /* Приглушенный текст */
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.15s;
}

/* Эффект при наведении на неактивную вкладку */
.chat-tabs a:hover:not(.active) {
    background: #2a2a2a;
    color: #e0e0e0;
    border-color: #5a5a5a;
}

/* Активная вкладка */
.chat-tabs a.active {
    background: #111;
    border-color: #4a4a4a; /* Строгая серая рамка вместо золотой */
    color: #b0b0b0; /* Светло-серый текст */
    box-shadow: inset 0 1px 5px rgba(0,0,0,0.8);
    
    /* МАГИЯ: Отключаем клики и перезагрузку по активной вкладке */
    pointer-events: none; 
    cursor: default;
}

/* Предупреждения */
.chat-warning {
    text-align: center;
    padding: 15px;
    background: rgba(168, 58, 58, 0.1);
    border: 1px solid #5a2a2a;
    border-radius: 4px;
    color: #c06060;
    font-size: 11px;
    font-style: italic;
    margin-bottom: 10px;
}

/* Поле ввода */
.chat-input-area {
    background: #111;
    border: 1px solid #3e3e3e;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.chat-input-area .form-input {
    background: #1c1c1c;
    border-color: #2a2a2a;
}

.chat-input-area .form-input:focus {
    border-color: #8a8a8a;
}

/* Контейнер сообщений */
.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-empty {
    text-align: center;
    color: #555;
    font-style: italic;
    padding: 20px;
}

/* Сообщение */
.chat-row {
    background: #1c1c1c;
    border: 1px solid #2e2e2e;
    border-radius: 4px;
    padding: 8px 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Личные сообщения (Вам) - Зеленый акцент */
.chat-row.chat-incoming {
    background: rgba(144, 192, 144, 0.08);
    border-left: 2px solid #7aaa4a; /* Зеленая полоса слева */
}

/* Личные сообщения (От вас) - Нейтральный серый */
.chat-row.chat-outgoing {
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid #5a5a5a;
}

/* Мои обычные сообщения в общем чате */
.chat-row.chat-mine {
    border-left: 2px solid #4a4a4a;
    background: #1c1c1c;
}

/* Кнопка ответа (») */
.chat-reply {
    color: #5a5a5a;
    font-size: 11px;
    text-decoration: none;
    margin-left: 6px;
    transition: color 0.15s ease, text-shadow 0.15s ease;
}

.chat-reply:hover {
    color: #e0e0e0;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.chat-reply:active {
    color: #f4d06e;
}

/* Шапка сообщения */
.chat-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    font-size: 11px;
}

.chat-avatar {
    width: 14px;
    height: 14px;
    opacity: 0.9;
}

.chat-header a {
    font-weight: 700;
    text-decoration: none;
    text-shadow: 0 1px 1px #000;
}

.chat-header a:hover {
    text-decoration: underline;
}

.chat-arrow {
    color: #555;
    font-size: 10px;
}

.chat-time {
    margin-left: auto;
    color: #555;
    font-size: 9px;
    font-variant-numeric: tabular-nums;
}

.chat-del {
    color: #8a3030;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    padding: 0 4px;
    margin-left: 5px;
    transition: color 0.15s;
}

.chat-del:hover {
    color: #ff4a4a;
}

/* Текст сообщения */
.chat-text {
    font-size: 12px;
    color: #c8c8c8;
    line-height: 1.4;
    word-wrap: break-word;
}

.chat-text img {
    vertical-align: middle;
    margin: 0 2px;
}

/* Пагинация */
.chat-pagination {
    display: flex;
    flex-wrap: wrap; /* Разрешаем кнопкам переноситься на новую строку */
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 15px;
    padding: 0 10px; /* Защита от прилипания к краям экрана */
}

.chat-pagination a,
.chat-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    background: #111;
    border: 1px solid #2e2e2e;
    border-radius: 4px;
    color: #8a8a8a;
    font-size: 10px;
    text-decoration: none;
    box-sizing: border-box;
}

.chat-pagination a:hover {
    background: #2a2a2a;
    color: #e0e0e0;
    border-color: #5a5a5a;
}

.chat-pagination span.current {
    background: #2a2a2a;
    border-color: #5a5a5a;
    color: #f4d06e;
    font-weight: 700;
}

/* Стиль для троеточия */
.chat-pagination span.dots {
    border: none;
    background: transparent;
    color: #555;
    min-width: auto;
}

/* Индикатор новых сообщений в чате */
.chat-badge {
    color: #7aaa4a;
    font-weight: 700;
    font-size: 11px;
    margin-left: 2px;
    text-shadow: 0 0 6px rgba(122, 170, 74, 0.6);
}

/* Кнопка "Ответить" в чате */
.chat-reply {
    color: #5a5a5a;
    font-size: 11px;
    text-decoration: none;
    margin-left: 6px;
    transition: color 0.15s ease, text-shadow 0.15s ease;
}

.chat-reply:hover {
    color: #e0e0e0;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.chat-reply:active {
    color: #f4d06e;
}

/* ===== Группа кнопок в чате (Отправить + Обновить) ===== */
.chat-btn-group {
    display: flex;
    gap: 8px;
    margin-top: 5px;
    align-items: stretch; /* Заставляет кнопки быть одинаковыми по высоте */
}

/* Кнопка "Отправить" (растягивается на всё оставшееся место) */
.chat-btn-group .btn-action {
    flex: 1; 
    margin: 0; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 5px;
}

/* Кнопка "Обновить" (фиксированная ширина, по высоте как Отправить) */
.chat-btn-group .btn-refresh {
    flex: 0 0 auto; /* Запрещаем растягиваться */
    width: 45px; /* Узкая квадратная кнопка */
    padding: 0; /* Убираем горизонтальные отступы */
    font-size: 20px; /* Размер значка ↻ */
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Стили для иконки внутри кнопки в чате */
.chat-btn-group .btn-action img {
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.8));
    transition: transform 0.3s ease;
}

/* Эффект вращения при наведении на кнопку с иконкой */
.chat-btn-group .btn-action:hover img {
    transform: rotate(180deg);
}

/* =====================================================================
   /clans.php — Единый красивый список кланов (Компактный Зал Славы)
   ===================================================================== */

.clans-list-wrapper {
    background: #111;
    border: 1px solid #2e2e2e;
    border-radius: 4px;
    margin: 5px; /* Уменьшили отступ снаружи */
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.clan-row {
    display: flex;
    align-items: center;
    padding: 6px 8px; /* Уменьшили высоту строки */
    border-bottom: 1px solid #2a2a2a;
    text-decoration: none;
    transition: background 0.15s;
    position: relative;
}

.clan-row:last-child {
    border-bottom: 0;
}

.clan-row:hover {
    background: #1c1c1c;
}

.clan-row:active {
    background: #262626;
}

/* Подсветка Топ-3 (сделали полоски чуть тоньше) */
.row-gold {
    background: linear-gradient(90deg, rgba(244, 208, 110, 0.05) 0%, transparent 100%);
    border-left: 2px solid #f4d06e;
}
.row-silver {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.05) 0%, transparent 100%);
    border-left: 2px solid #c0c0c0;
}
.row-bronze {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.05) 0%, transparent 100%);
    border-left: 2px solid #cd7f32;
}

/* Номер места */
.clan-row-place {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px; /* Уменьшили шрифт */
    font-weight: 700;
    width: 35px; /* Уменьшили ширину колонки */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 1px;
}

.crown-small {
    font-size: 10px; /* Уменьшили корону */
    filter: drop-shadow(0 0 2px rgba(244,208,110,0.8));
}

/* Герб */
.clan-row-gerb {
    width: 26px; /* Уменьшили герб */
    height: 26px;
    background: #000;
    border: 1px solid #3e3e3e;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 8px; /* Уменьшили отступ */
}

.clan-row-gerb img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

/* Инфо */
.clan-row-info {
    flex: 1;
    min-width: 0;
}

.clan-row-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px; /* Уменьшили название */
    color: #e0e0e0;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 3px;
}

.clan-row-name img {
    width: 10px; /* Уменьшили иконку расы */
    height: 10px;
    opacity: 0.8;
}

.clan-row-stats {
    font-size: 9px; /* Уменьшили текст статов */
    color: #8a8a8a;
    margin-top: 1px;
}

.clan-row-stats b {
    color: #c8c8c8;
}

/* Стрелочка */
.clan-row-arrow {
    font-size: 14px; /* Уменьшили стрелочку */
    color: #4a4a4a;
    font-family: Georgia, serif;
    padding-left: 5px;
    transition: color 0.15s;
}

.clan-row:hover .clan-row-arrow {
    color: #f4d06e;
}

/* Блок создания клана */
.create-clan-block {
    margin: 10px 5px; /* Уменьшили отступы блока */
    padding: 10px;
    background: linear-gradient(180deg, #151515 0%, #0a0a0a 100%);
    border: 1px dashed #4a4a4a;
    border-radius: 4px;
    text-align: center;
}

.create-clan-text {
    font-size: 10px; /* Уменьшили текст */
    color: #8a8a8a;
    margin-bottom: 8px;
    font-style: italic;
}

.create-clan-block .btn-action {
    width: 100%;
    max-width: 250px; /* Сделали кнопку чуть уже */
    margin: 0 auto;
    padding: 8px; /* Кнопка стала тоньше */
    font-size: 12px;
}

/* =====================================================================
   /clan.php — Эпичный дизайн конкретного клана (с анимациями)
   ===================================================================== */

/* ===== ШАПКА КЛАНА (БАННЕР) ===== */
.clan-banner { 
    position: relative; 
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border-bottom: 2px solid #3e3e3e; 
    padding: 20px 15px; 
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.9);
}

/* Текстура камня */
.clan-banner::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 10% 20%, rgba(255,255,255,0.03) 0%, transparent 50%),
                      radial-gradient(circle at 90% 80%, rgba(255,255,255,0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Золотая линия снизу */
.clan-banner::after {
    content: "";
    position: absolute;
    bottom: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #f4d06e, transparent);
    opacity: 0.5;
}

.clan-banner-content { 
    position: relative; 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    z-index: 2; 
}

/* Герб с пульсацией */
.clan-emblem { 
    width: 75px; height: 75px; 
    background: #050505; 
    border: 3px solid #5a5a5a; 
    border-radius: 12px; 
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; 
    box-shadow: inset 0 0 20px rgba(0,0,0,1), 0 0 15px rgba(244, 208, 110, 0.15);
    animation: emblemPulse 4s infinite alternate ease-in-out;
}

@keyframes emblemPulse {
    0% { box-shadow: inset 0 0 20px rgba(0,0,0,1), 0 0 10px rgba(244, 208, 110, 0.1); border-color: #4a4a4a; }
    100% { box-shadow: inset 0 0 20px rgba(0,0,0,1), 0 0 25px rgba(244, 208, 110, 0.4); border-color: #8a8a8a; }
}

.clan-emblem img { 
    width: 90%; height: 90%; 
    object-fit: contain; 
    filter: drop-shadow(0 3px 5px rgba(0,0,0,0.8)); 
    animation: breatheEmblem 4s infinite alternate ease-in-out;
}

@keyframes breatheEmblem { 
    0% { transform: scale(1); } 
    100% { transform: scale(1.05); } 
}

.clan-main-info { flex: 1; min-width: 0; }

/* Название клана со свечением */
.clan-title { 
    font-family: Georgia, serif; font-size: 22px; 
    color: #f4d06e; font-weight: 700; margin-bottom: 6px; 
    display: flex; align-items: center; gap: 8px; 
    text-shadow: 0 0 15px rgba(244, 208, 110, 0.4), 0 2px 2px #000;
    animation: textGlow 3s infinite alternate;
}

@keyframes textGlow { 
    0% { text-shadow: 0 0 10px rgba(244, 208, 110, 0.2), 0 2px 2px #000; } 
    100% { text-shadow: 0 0 20px rgba(244, 208, 110, 0.6), 0 2px 2px #000; } 
}

.clan-title img { width: 18px; height: 18px; }
.clan-subtitle { font-size: 12px; color: #a0a0a0; margin-bottom: 10px; font-family: Georgia, serif; }
.clan-subtitle b { color: #e0e0e0; }

/* Прогресс-бар с бегущим бликом */
.clan-progress-wrap { 
    background: #0a0a0a; padding: 8px 10px; border-radius: 6px; border: 1px solid #333; 
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.8); 
}

.clan-progress-text { 
    font-size: 9px; color: #8a8a8a; text-transform: uppercase; margin-bottom: 6px; 
    display: flex; justify-content: space-between; font-weight: 700; letter-spacing: 1px;
}

.clan-progress-bar { height: 6px; background: #1a1a1a; border-radius: 3px; overflow: hidden; box-shadow: inset 0 1px 2px #000; position: relative;}

.clan-progress-fill { 
    height: 100%; background: linear-gradient(90deg, #b8942c, #f4d06e, #ffeba1); 
    box-shadow: 0 0 10px rgba(244, 208, 110, 0.6); position: relative; overflow: hidden;
}

.clan-progress-fill::after {
    content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    animation: progressShimmer 2s infinite linear;
}

@keyframes progressShimmer { 
    0% { left: -100%; } 
    100% { left: 100%; } 
}

/* ===== ВКЛАДКИ (Главная, Казна, Статуя) ===== */
.chat-tabs { display: flex; gap: 6px; margin: 15px 10px; }
.chat-tabs a { 
    flex: 1; text-align: center; padding: 10px 0; 
    background: linear-gradient(180deg, #2a2a2a 0%, #151515 100%); 
    border: 1px solid #3e3e3e; border-radius: 6px; 
    color: #777; font-size: 11px; text-transform: uppercase; font-weight: 700; 
    transition: all 0.2s; box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 2px 4px rgba(0,0,0,0.5);
    text-decoration: none;
}
.chat-tabs a:hover:not(.active) { color: #bbb; border-color: #555; transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,0,0,0.6); }
.chat-tabs a.active { 
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%); 
    border-color: #f4d06e; color: #f4d06e; pointer-events: none; 
    box-shadow: inset 0 2px 8px rgba(0,0,0,1), 0 0 15px rgba(244, 208, 110, 0.2); 
    text-shadow: 0 0 8px rgba(244, 208, 110, 0.4);
}

/* ===== КНОПКА КЛАНОВОГО ЧАТА ===== */
.clan-chat-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin: 0 10px 15px 10px; padding: 10px;
    background: linear-gradient(180deg, #222 0%, #111 100%);
    border: 1px solid #333; border-radius: 6px;
    color: #90c090; font-weight: 700; font-size: 12px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 2px 5px rgba(0,0,0,0.5);
    transition: all 0.2s; text-decoration: none;
    position: relative; overflow: hidden;
}

.clan-chat-btn::after {
    content: ""; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(144, 192, 144, 0.2), transparent);
    transition: none;
}

.clan-chat-btn:hover::after { animation: btnShimmer 1s ease; }
@keyframes btnShimmer { 0% { left: -100%; } 100% { left: 200%; } }

.clan-chat-btn:hover { border-color: #5cb85c; color: #a0d0a0; box-shadow: 0 0 15px rgba(92, 184, 92, 0.3); }
.clan-chat-btn img { width: 16px; height: 16px; }

/* ===== СПИСОК УЧАСТНИКОВ ===== */
.clan-member-list { list-style: none; padding: 0 10px; margin: 0; display: flex; flex-direction: column; gap: 6px; }

.clan-member-row { 
    display: flex; align-items: center; justify-content: space-between; 
    background: linear-gradient(90deg, #1c1c1c 0%, #111 100%); 
    border: 1px solid #2e2e2e; border-radius: 4px; padding: 8px 10px; position: relative; 
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    /* Каскадное появление */
    opacity: 0; animation: slideUpFade 0.5s forwards;
}

.clan-member-row:nth-child(1) { animation-delay: 0.1s; }
.clan-member-row:nth-child(2) { animation-delay: 0.2s; }
.clan-member-row:nth-child(3) { animation-delay: 0.3s; }
.clan-member-row:nth-child(4) { animation-delay: 0.4s; }
.clan-member-row:nth-child(5) { animation-delay: 0.5s; }
.clan-member-row:nth-child(6) { animation-delay: 0.6s; }
.clan-member-row:nth-child(7) { animation-delay: 0.7s; }
.clan-member-row:nth-child(8) { animation-delay: 0.8s; }

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.clan-member-row:hover {
    transform: translateX(3px);
    border-color: #555;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5), inset 0 0 10px rgba(255,255,255,0.02);
}

/* Шестеренка управления */
.clan-memb-settings { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); padding: 5px; opacity: 0.6; transition: opacity 0.2s, transform 0.2s; }
.clan-memb-settings:hover { opacity: 1; transform: translateY(-50%) rotate(45deg); }
.clan-memb-settings img { width: 16px; height: 16px; }

.clan-memb-left { display: flex; align-items: center; gap: 10px; }

/* Аватарка и статус */
.clan-memb-avatar-wrap { position: relative; width: 30px; height: 30px; flex-shrink: 0; }
.clan-memb-avatar { width: 100%; height: 100%; border-radius: 4px; border: 1px solid #333; display: block; }

.status-dot { position: absolute; bottom: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #151515; }
.status-dot.status-on { 
    background-color: #5cb85c; 
    box-shadow: 0 0 6px rgba(92, 184, 92, 0.8); 
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(92, 184, 92, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(92, 184, 92, 0); }
    100% { box-shadow: 0 0 0 0 rgba(92, 184, 92, 0); }
}

.status-dot.status-off { background-color: #555; }

/* Инфо участника */
.clan-memb-info { display: flex; flex-direction: column; }
.clan-memb-name { color: #e0e0e0; font-weight: 700; font-size: 13px; font-family: Georgia, serif; transition: color 0.2s; text-decoration: none; }
.clan-member-row:hover .clan-memb-name { color: #f4d06e; }
.clan-memb-rank { font-size: 9px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; margin-top: 2px; }

/* Опыт */
.clan-memb-right { text-align: right; padding-right: 25px; }
.clan-memb-exp { font-family: Georgia, serif; font-size: 12px; color: #b0b0b0; font-weight: 700; }
.clan-memb-exp span { font-size: 9px; color: #666; font-family: Verdana, sans-serif; font-weight: normal; }
.clan-memb-last-seen { font-size: 8px; color: #666; margin-top: 2px; font-style: italic; }

/* =====================================================================
   /clan.php — Панель навигации (Вкладки + Чат)
   ===================================================================== */

.clan-nav-panel {
    margin: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px; /* Расстояние между вкладками и кнопкой чата */
}

/* Переопределяем отступы у вкладок внутри новой панели */
.clan-nav-panel .chat-tabs {
    margin: 0; 
}

/* Кнопка чата внутри панели (убираем лишние отступы) */
.clan-nav-panel .clan-chat-btn {
    margin: 0;
}

/* =====================================================================
   /system/head.php — Компактное всплывающее уведомление
   ===================================================================== */

.clan-invite-toast {
    /* Опускаем ниже (на 70px от верха) */
    position: fixed;
    top: 70px; 
    left: 50%;
    transform: translateX(-50%);
    
    /* Делаем уже (максимум 340px вместо 440px) */
    width: 95%;
    max-width: 340px; 
    z-index: 1000; 
    
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    background: linear-gradient(180deg, #2a2a2a 0%, #151515 100%);
    border: 1px solid #f4d06e; /* Сделали рамку чуть тоньше */
    border-radius: 6px;
    
    /* Уменьшили внутренние отступы */
    padding: 6px 10px; 
    
    box-shadow: 0 8px 20px rgba(0,0,0,0.9), 0 0 15px rgba(244,208,110,0.3);
    animation: slideDownFade 0.4s ease-out forwards;
}

@keyframes slideDownFade {
    0% { opacity: 0; transform: translate(-50%, -15px); }
    100% { opacity: 1; transform: translate(-50%, 0); }
}

.invite-toast-left {
    display: flex;
    align-items: center;
    gap: 8px; /* Уменьшили расстояние между иконкой и текстом */
    flex: 1;
    min-width: 0;
}

.invite-toast-gerb {
    width: 28px; /* Уменьшили герб */
    height: 28px;
    border: 1px solid #f4d06e;
    border-radius: 4px;
    background: #000;
    flex-shrink: 0;
}

.invite-toast-text {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.invite-toast-title {
    font-size: 10px; /* Уменьшили шрифт */
    color: #a0a0a0;
}

.invite-toast-title b {
    color: #ffffff;
    font-family: Georgia, serif;
    font-size: 12px; /* Уменьшили имя клана */
}

.invite-toast-sub {
    font-size: 9px; /* Уменьшили бонус */
    color: #7aaa4a;
    margin-top: 1px;
    font-weight: 700;
}

.invite-toast-right {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    flex-shrink: 0;
}

/* Уменьшили кнопку */
.toast-btn-accept {
    background: linear-gradient(180deg, #4a7a4a 0%, #2a5a2a 100%);
    border: 1px solid #6a9a6a;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    text-shadow: 0 1px 1px #000;
}

.toast-btn-accept:hover {
    background: linear-gradient(180deg, #5a8a5a 0%, #3a6a3a 100%);
}

/* Уменьшили крестик */
.toast-btn-cancel {
    color: #999;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    padding: 0 2px;
    font-weight: 700;
}

.toast-btn-cancel:hover {
    color: #ff5a5a;
}

/* =====================================================================
   /clan.php — Сетка для выбора герба (без :has)
   ===================================================================== */

.gerb-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); 
    gap: 8px;
    margin: 15px 0;
    padding: 5px;
    background: #0a0a0a;
    border: 1px solid #2e2e2e;
    border-radius: 4px;
    max-height: 250px; 
    overflow-y: auto;  

    /* ===== СКРЫВАЕМ СКРОЛЛБАР ===== */
    /* Для Firefox */
    scrollbar-width: none;
    /* Для Internet Explorer и Edge */
    -ms-overflow-style: none;
}

/* Для Chrome, Safari и новых версий Edge */
.gerb-grid::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Скрываем сами радиокнопки */
.gerb-radio {
    display: none;
}

/* Стилизуем label (визуальную кнопку) */
.gerb-item {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #111;
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 4px;
    transition: all 0.15s ease;
}

.gerb-item img {
    width: 100%;
    height: auto;
    border-radius: 2px;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.8));
    opacity: 0.7;
    transition: opacity 0.2s;
}

.gerb-item:hover {
    border-color: #555;
}

.gerb-item:hover img {
    opacity: 1;
}

/* МАГИЯ: Когда скрытый input получает статус :checked, стилизуем следующий за ним label */
.gerb-radio:checked + .gerb-item {
    border-color: #f4d06e;
    background: rgba(244, 208, 110, 0.1);
    box-shadow: 0 0 10px rgba(244, 208, 110, 0.3);
}

/* Делаем картинку полностью непрозрачной при выборе */
.gerb-radio:checked + .gerb-item img {
    opacity: 1;
}

/* =====================================================================
   /clan.php — Блок информации о статуе
   ===================================================================== */

.clan-statue-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #1a1a1a, #111);
    border: 1px solid #3e3e3e;
    border-left: 3px solid #f4d06e; /* Золотая полоска слева */
    border-radius: 4px;
    margin: 10px;
    padding: 8px 12px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.clan-statue-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e0e0e0;
    font-size: 11px;
}

.clan-statue-left img {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 0 5px rgba(244,208,110,0.4));
}

.clan-statue-left b {
    color: #f4d06e;
}

.clan-statue-right {
    font-size: 11px;
    color: #8a8a8a;
}

/* ===== Бейджи уведомлений в футере ===== */
.chat-badge-green {
    color: #7aaa4a;
    font-weight: 700;
    font-size: 11px;
    margin-left: 2px;
    text-shadow: 0 0 6px rgba(122, 170, 74, 0.6);
}

.chat-badge-red {
    color: #c04a4a;
    font-weight: 700;
    font-size: 11px;
    margin-left: 2px;
    text-shadow: 0 0 6px rgba(192, 74, 74, 0.6);
}

/* =====================================================================
   /coliseum.php — Стили для Колизея
   ===================================================================== */

.coliseum-info {
    display: flex;
    justify-content: space-between;
    background: #111;
    border: 1px solid #2e2e2e;
    border-radius: 4px;
    padding: 10px;
    margin: 10px;
}

.coliseum-stat {
    font-family: Georgia, serif;
    font-size: 12px;
    color: #a0a0a0;
}

.coliseum-stat b {
    color: #e0e0e0;
}

.coliseum-target {
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid #f4d06e;
    border-radius: 6px;
    padding: 15px;
    margin: 10px;
    text-align: center;
    box-shadow: 0 0 15px rgba(244, 208, 110, 0.1);
}

.coliseum-target-name {
    font-family: Georgia, serif;
    font-size: 16px;
    color: #e0e0e0;
    font-weight: 700;
    margin-bottom: 5px;
}

.coliseum-target-name img {
    width: 16px;
    height: 16px;
}

.coliseum-target-hp {
    color: #c06060;
    font-size: 11px;
    font-weight: 700;
}

.coliseum-log {
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    margin: 10px;
    padding: 10px;
    font-size: 11px;
    line-height: 1.6;
    max-height: 200px;
    overflow-y: auto;
}

.coliseum-wait {
    text-align: center;
    padding: 30px 15px;
    background: #111;
    border: 1px solid #2e2e2e;
    border-radius: 6px;
    margin: 10px;
}

/* =====================================================================
   /coliseum.php — Манекен противника
   ===================================================================== */

.coliseum-maneken {
    width: 100px;
    height: 150px;
    margin: 10px auto;
    background: #0a0a0a;
    border: 1px solid #2e2e2e;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.9);
    position: relative;
}

/* Декоративная подсветка снизу (как подиум) */
.coliseum-maneken::after {
    content: "";
    position: absolute;
    bottom: -5px; left: 10%; right: 10%;
    height: 6px;
    background: radial-gradient(ellipse at center, rgba(244, 208, 110, 0.3) 0%, transparent 70%);
    filter: blur(2px);
}

.coliseum-maneken img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.8));
}

/* =====================================================================
   /common.php — Стили для реферальной системы и правил
   ===================================================================== */

.ref-link-box {
    background: #111;
    border: 1px solid #3e3e3e;
    border-radius: 4px;
    padding: 10px;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    color: #f4d06e;
    word-break: break-all;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.8);
    user-select: all; /* Чтобы ссылку было легко скопировать */
}

.common-text {
    font-size: 11px;
    color: #c8c8c8;
    line-height: 1.6;
    text-align: left;
}

.common-rules-list {
    margin: 10px 0 10px 15px;
    padding: 0;
    list-style-type: square;
}

.common-rules-list li {
    margin-bottom: 6px;
    color: #a0a0a0;
}

.common-rules-list li::marker {
    color: #f4d06e;
}

/* =====================================================================
   /complect.php — Компактный дизайн комплекта
   ===================================================================== */

.complect-header {
    text-align: center;
    padding: 10px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    border-bottom: 1px solid #3e3e3e;
}

.complect-title {
    font-family: Georgia, serif;
    font-size: 16px; /* Уменьшили с 18px */
    color: #f4d06e;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(244, 208, 110, 0.3);
    margin-bottom: 5px;
}

.complect-maneken {
    width: 80px;  /* Уменьшили с 120px */
    height: 120px; /* Уменьшили с 180px */
    margin: 0 auto;
    background: #0a0a0a;
    border: 1px solid #2e2e2e;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.9);
}

.complect-maneken img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.8));
}

/* Список предметов */
.complect-items-list {
    padding: 0 5px; /* Уменьшили с 0 10px */
    display: flex;
    flex-direction: column;
    gap: 4px; /* Уменьшили с 6px */
}

.complect-item-card {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #1c1c1c 0%, #111 100%);
    border: 1px solid #2e2e2e;
    border-radius: 4px;
    padding: 6px 8px; /* Уменьшили с 8px 10px */
    transition: background 0.15s;
}

.complect-item-card:hover {
    background: linear-gradient(90deg, #262626 0%, #151515 100%);
    border-color: #555;
}

.ci-icon {
    width: 28px; /* Уменьшили с 36px */
    height: 28px;
    flex-shrink: 0;
    margin-right: 8px; /* Уменьшили с 10px */
    display: flex;
    align-items: center;
    justify-content: center;
}

.ci-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    filter: drop-shadow(0 2px 2px #000);
}

.ci-info {
    flex: 1;
    min-width: 0;
}

.ci-name {
    font-family: Georgia, serif;
    font-size: 11px; /* Уменьшили с 12px */
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ci-name a {
    color: #e0e0e0;
    text-decoration: none;
}

.ci-name a:hover {
    color: #f4d06e;
    text-decoration: underline;
}

.ci-name img {
    width: 10px; /* Уменьшили с 12px */
    height: 10px;
}

.ci-stats {
    font-size: 9px; /* Уменьшили с 10px */
    color: #8a8a8a;
    margin-top: 1px; /* Уменьшили с 2px */
}

.stat-diff {
    font-weight: 700;
    margin-left: 5px;
}

.stat-diff.green { color: #7aaa4a; }
.stat-diff.red { color: #c06060; }

.ci-action {
    flex-shrink: 0;
    margin-left: 5px;
}

/* Кнопка покупки одной вещи */
.btn-buy-small {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: linear-gradient(180deg, #333 0%, #1a1a1a 100%);
    border: 1px solid #4a4a4a;
    border-radius: 3px;
    padding: 4px 8px; /* Уменьшили */
    color: #e0e0e0;
    font-size: 10px; /* Уменьшили с 11px */
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s;
}

.btn-buy-small:hover {
    background: linear-gradient(180deg, #444 0%, #2a2a2a 100%);
    border-color: #888;
    color: #fff;
}

.btn-buy-small img {
    width: 10px; /* Уменьшили с 12px */
    height: 10px;
}

/* =====================================================================
   /equip.php — Стили для снаряжения
   ===================================================================== */

.equip-list {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.equip-slot {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #1c1c1c 0%, #111 100%);
    border: 1px solid #2e2e2e;
    border-radius: 6px;
    padding: 10px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
    transition: transform 0.15s, border-color 0.15s;
}

.equip-slot.equipped:hover {
    border-color: #555;
    transform: translateX(2px);
}

.equip-slot.empty {
    background: #0d0d0d;
    border-style: dashed;
    border-color: #222;
}

.equip-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    border: 1px solid #3e3e3e;
    border-radius: 4px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.equip-icon img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    filter: drop-shadow(0 2px 3px #000);
}

.equip-icon.empty-icon {
    border-color: #1a1a1a;
    box-shadow: none;
    opacity: 0.3;
}

.equip-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.equip-name {
    font-family: Georgia, serif;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.equip-name a {
    color: #e0e0e0;
    text-decoration: none;
}

.equip-name a:hover {
    color: #f4d06e;
    text-decoration: underline;
}

.equip-name img {
    width: 12px;
    height: 12px;
}

.equip-stats {
    font-size: 10px;
    color: #8a8a8a;
    margin-top: 4px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.stat-sums {
    color: #7aaa4a;
    font-weight: 700;
}

.equip-rune {
    font-size: 10px;
    color: #a0a0a0;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(144, 192, 144, 0.05);
    padding: 2px 6px;
    border-radius: 3px;
    width: fit-content;
    border: 1px solid rgba(144, 192, 144, 0.1);
}

.equip-rune img {
    width: 10px;
    height: 10px;
}

/* =====================================================================
   /farm.php — Стили для Похода
   ===================================================================== */

.farm-container {
    padding: 15px;
    background: linear-gradient(180deg, #1a1a1a 0%, #151515 100%);
    border-bottom: 1px solid #2e2e2e;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 400px;
}

.farm-image-box {
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.8));
    animation: farm-float 4s ease-in-out infinite alternate;
}

.farm-image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes farm-float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

.farm-text {
    font-size: 12px;
    color: #c8c8c8;
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.5;
}

.farm-text.status-text {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    color: #e0e0e0;
    text-shadow: 0 0 5px rgba(224, 224, 224, 0.2), 0 1px 0 #000;
}

.farm-text.status-text.green {
    color: #7aaa4a;
    text-shadow: 0 0 8px rgba(122, 170, 74, 0.3), 0 1px 0 #000;
}

.farm-timer {
    font-family: "Courier New", Courier, monospace;
    font-size: 20px;
    color: #f4d06e;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(244, 208, 110, 0.4);
}

/* Блок награды */
.farm-reward-box {
    background: rgba(244, 208, 110, 0.05);
    border: 1px solid #4a3a1a;
    border-left: 3px solid #f4d06e;
    border-radius: 4px;
    padding: 15px;
    width: 100%;
    max-width: 300px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.5);
}

.farm-reward-text {
    font-size: 11px;
    color: #8a8a8a;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.farm-reward-amount {
    font-family: Georgia, serif;
    font-size: 18px;
    color: #e0e0e0;
    font-weight: 700;
}

.farm-reward-amount img {
    width: 16px;
    height: 16px;
}

/* =====================================================================
   /forum.php — Главный пост в топике
   ===================================================================== */

.forum-main-post {
    background: linear-gradient(135deg, #1c1c1c 0%, #111111 100%);
    border: 1px solid #3e3e3e;
    border-left: 3px solid #f4d06e; /* Золотая акцентная полоса слева */
    border-radius: 6px;
    margin: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5), inset 0 0 20px rgba(0,0,0,0.8);
    overflow: hidden;
}

.forum-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.4);
    padding: 10px 15px;
    border-bottom: 1px solid #2a2a2a;
}

.forum-post-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    font-size: 13px;
}

.forum-post-author img {
    width: 16px;
    height: 16px;
    filter: drop-shadow(0 1px 1px #000);
}

.forum-post-author a {
    text-decoration: none;
}

.forum-post-author a:hover {
    text-decoration: underline;
}

.forum-post-time {
    font-size: 9px;
    color: #666;
    font-style: italic;
}

.forum-post-text {
    padding: 15px;
    font-size: 12px;
    line-height: 1.7;
    color: #d0d0d0;
    word-wrap: break-word;
}

/* Кнопка управления топиком */
.forum-post-manage {
    text-align: right;
    padding: 8px 15px;
    background: rgba(0,0,0,0.3);
    border-top: 1px dashed #2a2a2a;
}

.forum-post-manage a {
    color: #8a8a8a;
    font-size: 10px;
    text-decoration: none;
    transition: color 0.2s, text-shadow 0.2s;
}

.forum-post-manage a:hover {
    color: #f4d06e;
    text-shadow: 0 0 5px rgba(244, 208, 110, 0.4);
}

/* =====================================================================
   /forum.php — Кнопки управления топиком (закрепление/закрытие)
   ===================================================================== */

/* Стиль для активного состояния кнопки */
.chat-tabs a.toggle-on {
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    border-color: #f4d06e;
    color: #f4d06e;
    box-shadow: inset 0 2px 8px rgba(0,0,0,1), 0 0 10px rgba(244, 208, 110, 0.2);
    text-shadow: 0 0 8px rgba(244, 208, 110, 0.4);
    /* В отличие от .active, здесь НЕТ pointer-events: none, поэтому клик работает */
}

/* =====================================================================
   /item.php — Стили для карточки предмета
   ===================================================================== */

.item-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    border-bottom: 1px solid #3e3e3e;
}

.item-image-box {
    width: 64px;
    height: 64px;
    background: #000;
    border: 1px solid #4a4a4a;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 0 10px rgba(0,0,0,1), 0 2px 5px rgba(0,0,0,0.5);
}

.item-image-box img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px #000);
}

.item-image-box.small {
    width: 44px;
    height: 44px;
}

.item-title-info {
    flex: 1;
}

.item-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
    text-shadow: 0 1px 1px #000;
}

.item-name img {
    width: 14px;
    height: 14px;
}

.item-subtitle {
    font-size: 11px;
    color: #8a8a8a;
    margin-bottom: 6px;
}

.item-mastery {
    font-size: 10px;
    font-weight: 700;
}

/* Блок сравнения */
.item-compare-block {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    font-size: 11px;
    margin: 10px;
    border-radius: 4px;
    border-left: 3px solid;
}

.item-compare-block.better {
    background: rgba(122, 170, 74, 0.1);
    border-color: #7aaa4a;
    color: #b0d090;
}

.item-compare-block.worse {
    background: rgba(192, 96, 96, 0.1);
    border-color: #c06060;
    color: #d09090;
}

.item-compare-block img {
    width: 14px;
    height: 14px;
    opacity: 0.8;
}

/* Панель характеристик */
.item-stats-panel {
    padding: 15px;
    background: #151515;
    border-top: 1px solid #2e2e2e;
    border-bottom: 1px solid #2e2e2e;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #222;
}

.stat-row:last-child {
    border-bottom: 0;
}

.stat-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #a0a0a0;
    font-size: 12px;
}

.stat-label img {
    width: 14px;
    height: 14px;
    opacity: 0.8;
}

.stat-value {
    font-family: Georgia, serif;
    font-size: 14px;
    color: #e0e0e0;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(255,255,255,0.1);
}

/* Панель эффектов */
.item-effects-panel {
    padding: 15px;
    background: #111;
}

.effect-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 11px;
}

.effect-row:last-child {
    margin-bottom: 0;
}

.effect-label {
    color: #8a8a8a;
    display: flex;
    align-items: center;
    gap: 5px;
}

.effect-label img {
    width: 12px;
    height: 12px;
    opacity: 0.8;
}

.effect-value {
    font-weight: 700;
}

/* Кнопки действий */
.item-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
}

.item-actions .btn-action {
    margin-top: 0;
    font-size: 12px;
}

/* Карточка надетой вещи */
.item-equipped-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #151515;
    border: 1px solid #2e2e2e;
    border-radius: 4px;
    margin: 10px;
}

.item-stats-mini {
    display: flex;
    gap: 10px;
    font-size: 10px;
    color: #888;
    margin-top: 5px;
}

.item-stats-mini img {
    width: 10px;
    height: 10px;
    opacity: 0.6;
}

/* =====================================================================
   /inv.php — Компактные карточки инвентаря
   ===================================================================== */

.inv-list {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.inv-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: linear-gradient(180deg, #1a1a1a 0%, #111 100%);
    border: 1px solid #2e2e2e;
    border-radius: 4px;
    padding: 8px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.8), 0 2px 4px rgba(0,0,0,0.5);
    transition: border-color 0.15s;
}

.inv-card:hover {
    border-color: #555;
}

/* Цветная полоса слева в зависимости от качества */
.inv-card.quality-border-0 { border-left: 3px solid #908060; }
.inv-card.quality-border-1 { border-left: 3px solid #60c030; }
.inv-card.quality-border-2 { border-left: 3px solid #6090c0; }
.inv-card.quality-border-3 { border-left: 3px solid #c060f0; }
.inv-card.quality-border-4 { border-left: 3px solid #f06000; }
.inv-card.quality-border-5 { border-left: 3px solid #999; }
.inv-card.quality-border-6 { border-left: 3px solid #666; }

.inv-card-icon {
    width: 36px;
    height: 36px;
    background: #000;
    border: 1px solid #3e3e3e;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.inv-card-icon img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 2px 2px #000);
}

.inv-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.inv-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inv-name {
    font-family: Georgia, serif;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 4px;
}

.inv-name a {
    color: #e0e0e0;
    text-decoration: none;
}

.inv-name a:hover {
    color: #f4d06e;
    text-decoration: underline;
}

.inv-name img {
    width: 12px;
    height: 12px;
}

.inv-stat-right {
    font-size: 10px;
    color: #888;
    flex-shrink: 0;
    margin-left: 5px;
}

.inv-stat-right.skill-low {
    color: #c06060;
    font-weight: 700;
}

.inv-card-mid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
}

.inv-quality {
    font-weight: 700;
}

.inv-stat-bonus {
    font-weight: 700;
}

/* Кнопки */
.inv-card-actions {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
    margin-top: 2px;
}

.inv-btn {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all 0.15s;
    text-shadow: 0 1px 1px #000;
    border: 1px solid;
    cursor: pointer;
}

.inv-btn-wear {
    background: linear-gradient(180deg, #2a3a2a 0%, #1a2a1a 100%);
    border-color: #4a5a4a;
    color: #b0d0b0;
}
.inv-btn-wear:hover {
    background: linear-gradient(180deg, #3a4a3a 0%, #2a3a2a 100%);
    border-color: #6a8a6a;
    color: #fff;
}

.inv-btn-move {
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    border-color: #4a4a4a;
    color: #c8c8c8;
}
.inv-btn-move:hover {
    background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
    border-color: #6a6a6a;
    color: #fff;
}

.inv-btn-sell {
    background: linear-gradient(180deg, #3a1a1a 0%, #2a0a0a 100%);
    border-color: #5a2a2a;
    color: #d09090;
}
.inv-btn-sell:hover {
    background: linear-gradient(180deg, #4a2a2a 0%, #3a1a1a 100%);
    border-color: #8a3a3a;
    color: #ffb0b0;
}

/* =====================================================================
   /user.php — Блок премиума в профиле (Центрированный и компактный)
   ===================================================================== */

.premium-profile-block {
    background: linear-gradient(180deg, #1a1a1a 0%, #111 100%);
    /* Убрали полоску слева, сделали аккуратную рамку в тон золоту */
    border: 1px solid #4a3a1a; 
    border-radius: 6px;
    padding: 10px 15px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.8), 0 2px 5px rgba(0,0,0,0.5);
    text-align: center; /* Центрируем весь текст внутри */
    margin-top: 0px; /* Отступ от панели с характеристиками */
}

.premium-header {
    display: flex;
    align-items: center;
    justify-content: center; /* Центрируем иконку и заголовок */
    gap: 6px;
    color: #f4d06e;
    font-family: Georgia, serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    text-shadow: 0 0 8px rgba(244, 208, 110, 0.3);
}

.premium-header img {
    width: 14px;
    height: 14px;
    filter: drop-shadow(0 0 3px rgba(244, 208, 110, 0.5));
}

.premium-time {
    font-size: 11px;
    color: #8a8a8a;
    margin-bottom: 10px;
}

.premium-time b {
    color: #e0e0e0;
    font-family: Georgia, serif;
    font-size: 12px;
}

.premium-bonuses {
    display: flex;
    justify-content: center; /* Центрируем плашки с бонусами */
    gap: 8px;
    flex-wrap: wrap;
}

.premium-bonuses span {
    background: rgba(244, 208, 110, 0.05);
    border: 1px solid rgba(244, 208, 110, 0.15);
    padding: 4px 10px;
    border-radius: 12px; /* Сделали плашки более округлыми */
    font-size: 9px;
    color: #d0b070; /* Золотистый текст */
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* =====================================================================
   /mail.php — Стили для почты
   ===================================================================== */

.mail-history {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

.mail-item {
    background: #151515;
    border: 1px solid #2e2e2e;
    border-radius: 6px;
    padding: 10px;
    max-width: 90%;
}

/* Мои сообщения (справа) */
.mail-item.mail-me {
    align-self: flex-end;
    background: linear-gradient(135deg, #1e2a1e 0%, #121a12 100%);
    border-color: #3a4a3a;
    border-bottom-right-radius: 0; /* Хвостик */
}

/* Сообщения собеседника (слева) */
.mail-item.mail-them {
    align-self: flex-start;
    background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
    border-color: #3e3e3e;
    border-bottom-left-radius: 0; /* Хвостик */
}

.mail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 10px;
}

.mail-header img {
    width: 12px;
    height: 12px;
    opacity: 0.8;
}

.mail-time {
    color: #666;
    font-size: 9px;
}

.mail-text {
    font-size: 12px;
    color: #c8c8c8;
    line-height: 1.5;
    word-wrap: break-word;
}

/* =====================================================================
   /mail.php — Список диалогов (как в мессенджере)
   ===================================================================== */

.mail-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    background: #111;
    border-top: 1px solid #2e2e2e;
    border-bottom: 1px solid #2e2e2e;
}

.mail-contact-item {
    border-bottom: 1px solid #2a2a2a;
}

.mail-contact-item:last-child {
    border-bottom: 0;
}

.mail-contact-item a {
    display: flex;
    align-items: center;
    padding: 12px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.mail-contact-item a:hover {
    background: #1c1c1c;
}

/* Аватарка */
.mail-contact-avatar {
    width: 38px;
    height: 38px;
    background: #0a0a0a;
    border: 1px solid #3e3e3e;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.mail-contact-avatar img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px #000);
}

/* Информация */
.mail-contact-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mail-contact-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    color: #e0e0e0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mail-contact-preview {
    font-size: 11px;
    color: #7a7a7a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* Стрелочка */
.mail-contact-arrow {
    color: #4a4a4a;
    font-size: 18px;
    font-family: Georgia, serif;
    margin-left: 10px;
    transition: color 0.15s, transform 0.15s;
}

.mail-contact-item a:hover .mail-contact-arrow {
    color: #f4d06e;
    transform: translateX(2px);
}

/* =====================================================================
   /mail.php — Компактная история сообщений
   ===================================================================== */

/* Шапка диалога */
.chat-header-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #111;
    padding: 10px;
    border-bottom: 1px solid #2e2e2e;
}

.chat-header-bar img {
    width: 16px;
    height: 16px;
}

.chat-header-bar a {
    color: #f4d06e;
    font-family: Georgia, serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

/* Список сообщений */
.mail-history-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 10px;
}

/* Карточка сообщения (как комментарий на форуме) */
.mail-msg-item {
    background: #111;
    border: 1px solid #222;
    border-radius: 4px;
    padding: 8px 10px;
}

.mail-msg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    border-bottom: 1px dotted #2a2a2a;
    padding-bottom: 4px;
}

.mail-msg-author {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
}

.mail-msg-author img {
    width: 12px;
    height: 12px;
    opacity: 0.8;
}

.mail-msg-author a {
    text-decoration: none;
}

.mail-msg-author a:hover {
    text-decoration: underline;
}

.mail-msg-time {
    font-size: 9px;
    color: #666;
}

.mail-msg-text {
    font-size: 12px;
    color: #c8c8c8;
    line-height: 1.4;
    word-wrap: break-word;
}

/* =====================================================================
   /rating.php — Компактный рейтинг
   ===================================================================== */

/* Карточка 1-го места */
.rating-top-card {
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid #f4d06e;
    border-radius: 6px;
    padding: 10px 12px;
    margin: 5px 10px;
    box-shadow: 0 0 12px rgba(244, 208, 110, 0.15);
}

.rating-top-place {
    font-family: Georgia, serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    text-align: center;
    color: #f4d06e;
    text-shadow: 0 0 5px rgba(244,208,110,0.4);
    margin-bottom: 8px;
}

.rating-top-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-top-maneken {
    width: 60px;
    height: 90px;
    background: #0a0a0a;
    border: 1px solid #3e3e3e;
    border-radius: 4px;
    flex-shrink: 0;
}

.rating-top-maneken img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rating-top-info {
    flex: 1;
    min-width: 0;
}

.rating-top-name {
    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.rating-top-name a {
    color: #e0e0e0;
    text-decoration: none;
}

.rating-top-name img {
    width: 12px;
    height: 12px;
}

.rating-top-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    font-size: 10px;
    color: #8a8a8a;
    margin-bottom: 6px;
}

.rating-top-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating-top-stats img {
    width: 10px;
    height: 10px;
    opacity: 0.7;
}

.rating-top-stats b {
    color: #f4d06e;
    font-size: 11px;
    margin-left: 2px;
}

.rating-top-score {
    font-size: 11px;
    color: #8a8a8a;
}

.rating-top-score b {
    color: #f4d06e;
    font-size: 13px;
}

/* Остальные места (список) */
.rating-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 5px 10px;
}

.rating-row {
    display: flex;
    align-items: center;
    background: #111;
    border: 1px solid #222;
    border-radius: 4px;
    padding: 6px 8px;
    text-decoration: none;
    transition: background 0.15s;
}

.rating-row:hover {
    background: #1c1c1c;
    border-color: #444;
}

.rating-row-place {
    font-family: Georgia, serif;
    font-size: 12px;
    color: #555;
    font-weight: 700;
    width: 25px;
    text-align: center;
    margin-right: 5px;
}

.rating-row-avatar {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.rating-row-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rating-row-name {
    flex: 1;
    color: #c8c8c8;
    font-family: Georgia, serif;
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rating-row-name .lvl {
    font-size: 9px;
    color: #666;
    font-family: Verdana, sans-serif;
    font-weight: normal;
}

.rating-row-value {
    font-family: Georgia, serif;
    font-weight: 700;
    color: #e0e0e0;
    font-size: 12px;
}

/* =====================================================================
   /sack.php — Стили для списка ресурсов
   ===================================================================== */

.sack-list {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sack-item {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #1c1c1c 0%, #111 100%);
    border: 1px solid #2e2e2e;
    border-radius: 4px;
    padding: 8px 10px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
    transition: border-color 0.15s;
}

.sack-item:hover {
    border-color: #444;
}

.sack-icon {
    width: 36px;
    height: 36px;
    background: #0a0a0a;
    border: 1px solid #3e3e3e;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.sack-icon img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    filter: drop-shadow(0 1px 2px #000);
}

.sack-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sack-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    color: #e0e0e0;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sack-count {
    color: #f4d06e;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(244, 208, 110, 0.3);
}

.sack-unit {
    color: #888;
    font-size: 9px;
    font-weight: normal;
    font-family: Verdana, sans-serif;
}

.sack-desc {
    font-size: 10px;
    color: #777;
    margin-top: 2px;
    font-style: italic;
}

/* =====================================================================
   /settings.php — Компактный дизайн настроек
   ===================================================================== */

/* Компактное меню (уменьшены отступы в пунктах) */
.settings-compact-menu a {
    padding: 6px 10px;
    font-size: 11px;
}

.settings-compact-menu .arrow {
    font-size: 12px;
}

/* Блок с информацией (стоимость, текущее значение) */
.settings-info-box {
    background: #111;
    border: 1px solid #2e2e2e;
    border-radius: 4px;
    margin: 8px 10px;
    padding: 8px 12px;
    text-align: center;
    font-size: 11px;
    color: #c8c8c8;
    line-height: 1.5;
}

.settings-info-box img {
    width: 12px;
    height: 12px;
    vertical-align: middle;
}

.settings-note {
    color: #888;
    font-size: 10px;
}

/* Компактная форма */
.settings-compact-form {
    margin: 0 10px;
    padding: 10px;
}

.settings-compact-form .form-input {
    margin-bottom: 8px;
    padding: 8px;
    font-size: 12px;
}

/* Компактная кнопка */
.settings-btn {
    padding: 6px 15px;
    font-size: 12px;
    height: auto;
    line-height: normal;
    margin-top: 4px;
}

/* =====================================================================
   /shop.php — Стили для магазина
   ===================================================================== */

.shop-main-banner {
    text-align: center;
    padding: 15px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    border-bottom: 1px solid #3e3e3e;
}

.shop-main-banner img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.8));
}

/* Сетка комплектов */
.shop-complect-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 колонки на мобильных */
    gap: 10px;
    padding: 10px;
}

.shop-complect-card {
    background: #151515;
    border: 1px solid #2e2e2e;
    border-radius: 6px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.shop-complect-name {
    font-family: Georgia, serif;
    font-size: 12px;
    font-weight: 700;
    color: #e0e0e0;
    text-align: center;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.shop-complect-name img {
    width: 12px;
    height: 12px;
}

.shop-complect-maneken {
    width: 80px;
    height: 120px;
    background: #0a0a0a;
    border: 1px solid #3e3e3e;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
}

.shop-complect-maneken img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shop-complect-action {
    width: 100%;
}

.shop-complect-action .settings-btn {
    width: 100%;
    margin-top: 0;
    padding: 5px 0;
    font-size: 11px;
}

/* =====================================================================
   /trade.php — Стили для обменника
   ===================================================================== */

/* Панель баланса */
.trade-balance-bar {
    display: flex;
    background: #111;
    border: 1px solid #2e2e2e;
    border-radius: 4px;
    margin: 10px;
    padding: 10px 15px;
    justify-content: space-around;
    box-shadow: inset 0 1px 5px rgba(0,0,0,0.8);
}

.trade-balance-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: 700;
}

.trade-balance-item img {
    width: 16px;
    height: 16px;
    opacity: 0.9;
}

.trade-balance-item .val {
    color: #d0d0d0;
}

/* Список обмена */
.trade-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 10px;
}

.trade-row {
    display: flex;
    align-items: center;
    background: #151515;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    padding: 6px 10px;
    transition: background 0.15s;
}

.trade-row:hover {
    background: #1c1c1c;
    border-color: #444;
}

.trade-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    flex-shrink: 0;
}

.trade-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px #000);
}

.trade-info {
    flex: 1;
    min-width: 0;
}

.trade-name {
    font-family: Georgia, serif;
    font-size: 12px;
    color: #e0e0e0;
    font-weight: 700;
}

.trade-price {
    font-size: 10px;
    color: #888;
    margin-top: 1px;
}

.trade-price b {
    color: #c8c8c8;
}

.trade-action {
    flex-shrink: 0;
    margin-left: 10px;
}

/* =====================================================================
   /train.php — Компактная тренировка
   ===================================================================== */

.train-list {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.train-card {
    background: linear-gradient(180deg, #1a1a1a 0%, #111 100%);
    border: 1px solid #2e2e2e;
    border-radius: 6px;
    padding: 10px 12px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.train-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.train-title {
    font-family: Georgia, serif;
    font-size: 13px;
    color: #e0e0e0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.train-title img {
    width: 14px;
    height: 14px;
    opacity: 0.8;
}

.train-value {
    font-family: Georgia, serif;
    font-size: 16px;
    color: #f4d06e; /* Золотой цвет цифр */
    font-weight: 700;
    text-shadow: 0 0 5px rgba(244, 208, 110, 0.2);
}

.train-desc {
    font-size: 10px;
    color: #8a8a8a;
    margin-bottom: 8px;
}

.train-mastery {
    color: #666;
    font-style: italic;
}

/* Прогресс-бар */
.train-progress-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.train-progress-bar {
    flex: 1;
    height: 4px;
    background: #0a0a0a;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.8);
}

.train-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4a83e, #f4d06e);
    border-radius: 2px;
    box-shadow: 0 0 5px rgba(244, 208, 110, 0.3);
    transition: width 0.3s ease;
}

.train-progress-text {
    font-size: 9px;
    color: #666;
    width: 30px;
    text-align: right;
}

/* Кнопка */
.train-action {
    text-align: right;
}

.train-btn {
    display: inline-block;
    width: auto;
    padding: 6px 15px;
    margin: 0;
    font-size: 11px;
}

.train-btn img {
    width: 12px;
    height: 12px;
    margin-top: -2px;
}

.train-max {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(244, 208, 110, 0.1);
    border: 1px solid #5a4a2a;
    border-radius: 4px;
    color: #f4d06e;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =====================================================================
   /system/head.php — Красивое объявление клана (Оверлей)
   ===================================================================== */

.clan-announcement-overlay {
    position: fixed;
    top: 70px; /* Отступ от шапки сайта */
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 380px;
    z-index: 1000; /* Поверх всех элементов */
    
    background: linear-gradient(180deg, #2a2a2a 0%, #151515 100%);
    border: 1px solid #5a4a2a; /* Темно-золотая рамка */
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.95), 0 0 15px rgba(244, 208, 110, 0.15);
    
    animation: slideDownFade 0.4s ease-out forwards;
}

@keyframes slideDownFade {
    0% { opacity: 0; transform: translate(-50%, -15px); }
    100% { opacity: 1; transform: translate(-50%, 0); }
}

.announcement-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px;
    border-bottom: 1px solid #3a3a3a;
    border-radius: 6px 6px 0 0;
    color: #f4d06e;
    font-family: Georgia, serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(244, 208, 110, 0.3);
}

.announcement-header img {
    width: 14px;
    height: 14px;
}

.announcement-body {
    padding: 12px 15px;
    font-size: 11px;
    line-height: 1.5;
    color: #c8c8c8;
    text-align: left;
    word-wrap: break-word;
}

.announcement-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid #2a2a2a;
    border-radius: 0 0 6px 6px;
}

.announcement-author {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    color: #8a8a8a;
}

.announcement-author img {
    width: 10px;
    height: 10px;
    opacity: 0.8;
}

.announcement-time {
    margin-left: 4px;
    font-style: italic;
    color: #555;
}

.announcement-close {
    color: #c06060;
    font-size: 9px;
    text-decoration: underline;
    text-transform: uppercase;
    transition: color 0.2s;
}

.announcement-close:hover {
    color: #ff5a5a;
}

/* =====================================================================
   /system/head.php — Компактное уведомление о новом уровне (с кнопкой)
   ===================================================================== */

.level-up-overlay {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    max-width: 260px;
    z-index: 1001;
    
    background: #0a0a0a;
    border: 1px solid #f4d06e;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.95), 0 0 15px rgba(244, 208, 110, 0.2);
    
    animation: slideDown 0.4s ease-out forwards;
}

@keyframes slideDown {
    0% { opacity: 0; transform: translate(-50%, -15px); }
    100% { opacity: 1; transform: translate(-50%, 0); }
}

.levelup-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    background: rgba(244, 208, 110, 0.05);
    border-bottom: 1px solid #2a2a2a;
    border-radius: 6px 6px 0 0;
    color: #f4d06e;
    font-family: Georgia, serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(244, 208, 110, 0.4);
}

.levelup-header img {
    width: 12px;
    height: 12px;
}

.levelup-body {
    padding: 10px 10px 5px; /* Уменьшили нижний отступ с 10px до 5px */
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.levelup-text {
    font-size: 11px;
    color: #c8c8c8;
}

.levelup-text b {
    color: #e0e0e0;
    font-size: 12px;
}

.levelup-reward {
    font-size: 10px;
    color: #8a8a8a;
}

.levelup-reward b {
    color: #f4d06e;
    font-size: 12px;
    font-family: Georgia, serif;
}

.levelup-reward img {
    width: 10px;
    height: 10px;
    vertical-align: middle;
    margin-top: -2px;
}

.levelup-footer {
    padding: 0 10px 10px;
    text-align: center;
}

.levelup-btn {
    display: block;
    width: 100%;
    padding: 6px;
    margin-top: 0; /* ВОТ ЭТО ГЛАВНОЕ ИСПРАВЛЕНИЕ: убираем стандартный отступ сверху */
    background: linear-gradient(180deg, #333 0%, #111 100%);
    border: 1px solid #4a4a4a;
    border-radius: 4px;
    color: #e0e0e0;
    font-family: Georgia, serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 1px #000;
    transition: all 0.2s;
    cursor: pointer;
}

.levelup-btn:hover {
    background: linear-gradient(180deg, #444 0%, #222 100%);
    border-color: #f4d06e;
    color: #fff;
    box-shadow: 0 0 10px rgba(244, 208, 110, 0.3);
}

/* =====================================================================
   /system/user.php — Технические работы (Чистый CSS)
   ===================================================================== */

/* Выравниваем контент по центру, только когда активен этот режим */
body.maintenance-body {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 100vh;
    margin: 0 !important;
    max-width: 100% !important; /* Сбрасываем мобильную ширину */
    overflow: hidden;
    background-color: #0a0a0a; /* Подстраховка для фона */
}

/* Контейнер для окна */
.maintenance-wrapper {
    width: 100%;
    max-width: 350px;
    padding: 20px;
    position: relative;
    z-index: 100;
}

/* Само окно */
.maintenance-box {
    background: linear-gradient(180deg, #1c1c1c 0%, #0d0d0d 100%);
    border: 1px solid #3e3e3e;
    border-radius: 8px;
    padding: 35px 20px;
    text-align: center;
    box-shadow: inset 0 0 25px rgba(0,0,0,0.9), 0 5px 15px rgba(0,0,0,0.7);
    position: relative;
}

/* Золотая декоративная линия сверху окна */
.maintenance-box::before {
    content: "";
    position: absolute;
    top: -1px; left: 15%; right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #f4d06e, transparent);
    opacity: 0.7;
}

/* Иконка меча */
.maintenance-icon {
    font-size: 40px;
    color: #f4d06e;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(244, 208, 110, 0.4);
    animation: pulseIcon 2s infinite alternate;
}

@keyframes pulseIcon {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; }
}

/* Заголовок */
.maintenance-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    color: #f4d06e;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 12px rgba(244, 208, 110, 0.4), 0 2px 2px #000;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Разделитель */
.maintenance-divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #4a4a4a, transparent);
    margin: 15px auto;
}

/* Текст */
.maintenance-text {
    font-size: 11px;
    color: #a0a0a0;
    line-height: 1.6;
    text-shadow: 0 1px 0 #000;
}

.maintenance-text b {
    color: #c8c8c8;
}


















































/* =====================================================================
   /inv.php — Массовая продажа
   ===================================================================== */

.mass-sell-block {
    margin: 15px 10px;
    padding: 10px;
    background: #151515;
    border: 1px solid #2e2e2e;
    border-radius: 6px;
}

.mass-sell-buttons {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.mass-sell-btn {
    flex: 1;
    display: block;
    text-align: center;
    padding: 8px 5px;
    background: linear-gradient(180deg, #3a1a1a 0%, #2a0a0a 100%);
    border: 1px solid #5a2a2a;
    border-radius: 4px;
    color: #d09090;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.2s;
}

.mass-sell-btn:hover {
    background: linear-gradient(180deg, #4a2a2a 0%, #3a1a1a 100%);
    border-color: #8a3a3a;
    color: #ffb0b0;
}



