/* =========================================================================
   БАЗОВЫЕ НАСТРОЙКИ (МОНОЛИТНЫЙ СОВЕТСКИЙ ГЛЯНЕЦ)
========================================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #050404;
    background-image: url('../img/pc-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
}

/* =========================================================================
   ГЛАВНЫЙ КОНТЕЙНЕР (ТЕРМИНАЛ)
========================================================================= */
.game-viewport {
    width: 100%;
    max-width: 420px;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #0d0b0b; 
    color: #eebb99; 
    border-left: 2px solid #cc1111;
    border-right: 2px solid #cc1111;
    box-shadow: 0 0 15px rgba(204, 17, 17, 0.3);
    position: relative; 
    overflow-x: hidden;
    padding-bottom: 60px; /* Отступ под жесткий таббар */
    box-sizing: border-box;
}

@media (max-width: 420px) {
    .game-viewport { border: none; box-shadow: none; }
}

/* =========================================================================
   ВЕРХНИЙ СТАТУС-БАР И ШАПКА (ЭРА ГЕРОЕВ СТАЙЛ)
========================================================================= */
.micro-header {
    display: flex; 
    align-items: center; 
    gap: 10px; 
    padding: 8px 12px; 
    background: linear-gradient(to bottom, #2b1a1a, #0d0808); 
    border-bottom: 1px solid #aa1111; 
    width: 100%; 
}

.micro-header img {
    height: 20px; 
    width: auto; 
    mix-blend-mode: screen; 
    filter: drop-shadow(0 0 2px #ff2222);
}

.micro-header h1 {
    font-size: 10px;
    font-family: "Courier New", Courier, monospace;
    color: #ffaa55;
    margin: 0;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 1px 1px #000;
}

.status-bar-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: linear-gradient(to bottom, #1f1414, #120b0b);
    border-bottom: 2px solid #cc1111;
    padding: 6px 0;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(204, 17, 17, 0.2);
}

.status-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    border-right: 1px solid #331c1c;
    padding: 0 5px;
}

.status-item:last-child {
    border-right: none;
}

.hud-item {
    display: flex; 
    align-items: center; 
    gap: 4px; 
    font-size: 11px; 
    font-weight: bold; 
    color: #fff;
    text-shadow: 0 1px 1px #000;
}

.hud-ico {
    width: 14px; 
    height: 14px; 
    background-size: contain; 
    background-repeat: no-repeat; 
    background-position: center; 
    mix-blend-mode: screen; 
    filter: drop-shadow(0 0 2px #ff2222) brightness(1.3);
}

.credits { color: #ffcc00 !important; }

/* Тонкая глянцевая шкала опыта под статус-баром */
.xp-bar-top {
    width: 100%;
    height: 4px;
    background: #000;
    border-bottom: 1px solid #331c1c;
    overflow: hidden;
}

.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #aa1111, #ff2222);
    box-shadow: 0 0 5px #ff2222;
    transition: width 0.3s ease;
}

.terminal-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #aa1111 #0d0b0b;
}

.terminal-footer {
    text-align: center;
    padding: 5px 10px 15px 10px;
    font-size: 9px;
    color: #664444;
    background: transparent;
}

/* =========================================================================
   ГЛАВНОЕ МЕНЮ И КНОПКИ (ОБЪЕМНЫЙ МЕТАЛЛ И НЕОН)
========================================================================= */
.main-nav-menu { 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    margin: 10px 0 25px 0; 
}

.menu-btn { 
    display: flex; 
    align-items: center;
    width: 100%; 
    height: 55px; 
    position: relative; 
    background: linear-gradient(to bottom, #2b1a1a 0%, #170e0e 50%, #0d0808 100%);
    border: 1px solid #aa1111; 
    border-radius: 3px;
    cursor: pointer; 
    text-decoration: none; 
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 2px 5px rgba(0,0,0,0.8);
    transition: all 0.2s ease; 
}

.menu-btn:hover, .menu-btn:active { 
    background: linear-gradient(to bottom, #3b2222 0%, #201111 50%, #140a0a 100%);
    border-color: #ff2222; 
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 0 10px rgba(255, 34, 34, 0.5);
}

.btn-icon {
    position: absolute; 
    left: 8px; 
    top: 50%; 
    transform: translateY(-50%);
    width: 36px; 
    height: 36px;
    background-color: #000;
    border: 1px solid #661111; 
    border-radius: 2px;
    background-size: 75%; 
    background-repeat: no-repeat; 
    background-position: center;
    mix-blend-mode: screen; 
    filter: drop-shadow(0 0 2px #ff2222) brightness(1.3);
    box-shadow: inset 0 0 5px rgba(255,0,0,0.3);
    transition: all 0.2s ease;
}

.menu-btn:hover .btn-icon { 
    border-color: #ff2222;
    filter: drop-shadow(0 0 5px #ff2222) brightness(1.5);
}

.btn-text {
    position: relative; 
    z-index: 2; 
    padding-left: 56px;
    padding-right: 10px;
    color: #ffffff; 
    font-weight: bold; 
    font-size: 0.85rem; 
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px #000;
    transition: all 0.2s ease;
}

.menu-btn:hover .btn-text { 
    color: #ffccaa; 
}

/* =========================================================================
   СТАНДАРТНЫЕ WAP-КНОПКИ И ФОРМЫ (ГЛЯНЕЦ)
========================================================================= */
.wap-btn, .btn-chat-submit, .btn-upgrade, .logout-btn, .btn { 
    display: block; 
    width: 100%; 
    background: linear-gradient(to bottom, #2b1a1a 0%, #170e0e 50%, #0d0808 100%);
    border: 1px solid #aa1111; 
    border-radius: 3px;
    color: #ffffff; 
    text-decoration: none; 
    padding: 12px 10px; 
    font-weight: bold; 
    font-size: 0.85rem; 
    letter-spacing: 1px;
    text-transform: uppercase; 
    text-align: center; 
    cursor: pointer; 
    font-family: inherit; 
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 2px 4px rgba(0,0,0,0.8);
    text-shadow: 0 1px 2px #000;
    transition: all 0.2s; 
}

.wap-btn:hover, .btn-chat-submit:hover, .btn-upgrade:hover, .logout-btn:hover, .btn:hover { 
    background: linear-gradient(to bottom, #3b2222 0%, #201111 50%, #140a0a 100%);
    border-color: #ff2222;
    color: #ffccaa; 
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 0 10px rgba(255, 34, 34, 0.5);
}

.wap-btn:disabled, .btn-upgrade:disabled {
    background: #140f0f;
    border-color: #331c1c;
    color: #666;
    box-shadow: none;
    cursor: not-allowed;
    text-shadow: none;
}

.chat-form, .button-group { 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
}

.chat-input, .input-group input { 
    width: 100%; 
    padding: 12px; 
    background-color: #050303; 
    border: 1px solid #441111; 
    color: #ffaa55; 
    border-radius: 2px;
    font-family: inherit; 
    font-size: 0.95rem; 
    outline: none; 
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.8); 
    transition: all 0.2s ease;
}

.chat-input:focus, .input-group input:focus { 
    border-color: #ff2222; 
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.8), 0 0 5px rgba(255, 34, 34, 0.3); 
}

/* =========================================================================
   ПАНЕЛИ КОНТЕНТА, СПИСКИ И ЗАГОЛОВКИ (ТЕМНЫЕ КАРТОЧКИ)
========================================================================= */
.stats-card, .soviet-panel, .item-card, .quest-card, .clan-card, .stat-row, .chat-feed-container, .combat-log, .pvp-alert {
    background: #140f0f;
    border: 1px solid #331c1c;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 12px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.comrade-name, .section-title, .profile-section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ff3333;
    font-size: 1rem;
    border-bottom: 1px solid #661111;
    padding-bottom: 8px;
    margin-bottom: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px #000;
}

.profile-stat-row, .stat-line, .leader-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0d0808;
    border: 1px solid #2b1a1a;
    border-radius: 2px;
    padding: 8px 10px;
    margin-bottom: 6px;
    font-size: 0.9rem;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
    box-sizing: border-box;
}

.profile-stat-label, .stat-label {
    color: #aa8888;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-stat-value, .stat-value {
    color: #ffffff;
    font-weight: bold;
    text-shadow: 0 1px 1px #000;
}

/* Иконки в статистике */
.stat-ico {
    width: 18px; 
    height: 18px; 
    background-size: contain; 
    background-repeat: no-repeat; 
    background-position: center; 
    mix-blend-mode: screen; 
    filter: drop-shadow(0 0 2px #ff2222);
    flex-shrink: 0;
}

/* Элементы инвентаря и кланов */
.items-list, .quests-list, .leaderboard-list { display: flex; flex-direction: column; }
.item-card { display: flex; align-items: stretch; gap: 12px; padding: 12px; }
.equipped-card { border-left: 3px solid #ff2222; }
.item-img { width: 55px; height: 55px; object-fit: cover; border: 1px solid #661111; border-radius: 2px; }
.item-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.item-name, .clan-name, .quest-title { color: #ffaa55; font-weight: bold; font-size: 0.95rem; margin-bottom: 5px; text-shadow: 0 1px 1px #000; }
.item-stat, .clan-stat { font-size: 0.8rem; color: #aa8888; display: flex; justify-content: space-between; margin-bottom: 3px; }
.quest-desc { color: #eebb99; font-size: 0.85rem; margin-bottom: 10px; line-height: 1.4; }

/* =========================================================================
   СТРОГИЙ ЧАТ (СВЕТОДИОДНЫЙ ТЕКСТ)
========================================================================= */
.chat-feed-container, .combat-log {
    max-height: 400px; 
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.chat-message-row, .log-line {
    padding: 6px 4px; 
    border-bottom: 1px solid #2b1a1a; 
    font-family: monospace; 
    font-size: 12px; 
    line-height: 1.4;
}

.chat-message-row:last-child, .log-line:last-child { border-bottom: none; }

.chat-time { color: #886666; margin-right: 4px; }
.chat-author { color: #ffaa55; font-weight: bold; margin-right: 4px; text-shadow: 0 1px 1px #000; }
.chat-text { color: #eebb99; word-wrap: break-word; }

/* Уведомления */
.system-msg { background: linear-gradient(to right, #1f1414, #0d0808); color: #55ff55; border: 1px solid #11aa11; border-radius: 2px; padding: 10px; margin-bottom: 15px; font-weight: bold; box-shadow: inset 0 0 5px rgba(17, 170, 17, 0.2); }
.alert-error { background: linear-gradient(to right, #2b1a1a, #0d0808); color: #ff5555; border: 1px solid #ff2222; border-radius: 2px; padding: 10px; margin-bottom: 15px; font-weight: bold; box-shadow: inset 0 0 5px rgba(255, 34, 34, 0.2); text-align: center; }

/* =========================================================================
   ПРОГРЕСС-БАРЫ БОЯ (ГЛЯНЦЕВЫЙ ГРАДИЕНТ)
========================================================================= */
.combat-entity { position: relative; padding-top: 22px; margin-bottom: 20px; }
.energy-labels span:first-child { position: absolute; top: 0; left: 4px; font-size: 0.8rem; color: #aa8888; font-weight: bold; letter-spacing: 1px; text-transform: uppercase; }
.energy-labels span:last-child { position: absolute; top: 22px; left: 0; width: 100%; height: 16px; line-height: 16px; text-align: center; font-size: 0.75rem; font-weight: bold; color: #fff !important; text-shadow: 0 1px 2px #000; z-index: 5; }

.energy-bar-bg, .hp-bar-bg { 
    width: 100%; height: 16px; 
    background-color: #050303; 
    border: 1px solid #441111; 
    border-radius: 2px; 
    overflow: hidden; 
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.8); 
    position: relative;
}

.energy-bar-fill, .hp-fill-red { 
    height: 100%; transition: width 0.3s ease; 
    background: linear-gradient(to bottom, #ff5555 0%, #aa1111 50%, #660000 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 0 5px #ff2222;
}

.hp-fill-green { 
    height: 100%; transition: width 0.3s ease;
    background: linear-gradient(to bottom, #55ff55 0%, #11aa11 50%, #006600 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 0 5px #11aa11;
}

/* =========================================================================
   АВАТАР И КАРТИНКИ (ЖЕЛЕЗНАЯ РАМКА)
========================================================================= */
.metallic-frame, .metallic-frame-sm {
    display: inline-block;
    border: 2px solid #661111;
    background-color: #000;
    padding: 2px;
    box-shadow: inset 0 0 5px #ff2222, 0 2px 5px rgba(0,0,0,0.8);
}
.metallic-frame img, .metallic-frame-sm img { display: block; border: none; }

.profile-img-wrapper { text-align: center; margin: 0 auto 15px auto; }
.profile-avatar { width: 250px; height: 250px; object-fit: cover; object-position: center; margin: 0 auto; display: block; filter: grayscale(15%) contrast(1.1); }

.lab-image-wrapper { text-align: center; margin-bottom: 20px; }
.lab-img { width: 100%; max-width: 250px; object-fit: cover; filter: contrast(1.1); }
.combat-monster-img { width: 100%; max-width: 250px; object-fit: cover; filter: contrast(1.2); }

/* =========================================================================
   НИЖНЯЯ ПАНЕЛЬ НАВИГАЦИИ (ЖЕСТКИЙ ТАББАР)
========================================================================= */
.bottom-nav { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    height: 60px; 
    background: linear-gradient(to top, #0d0808, #1f1414);
    border-top: 2px solid #cc1111; 
    display: flex; 
    justify-content: space-around; 
    align-items: center; 
    z-index: 9999; 
    box-sizing: border-box; 
    box-shadow: 0 -2px 10px rgba(204, 17, 17, 0.2);
}

.nav-item { 
    flex: 1; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    text-decoration: none; 
    height: 100%; 
    border-right: 1px solid #331c1c;
}
.nav-item:last-child { border-right: none; }

.nav-ico { 
    width: 22px; 
    height: 22px; 
    background-size: contain; 
    background-repeat: no-repeat; 
    background-position: center; 
    mix-blend-mode: screen; 
    filter: grayscale(100%) opacity(0.5); 
    transition: all 0.2s ease;
}

.nav-label { 
    font-size: 9px; 
    color: #886666; 
    text-transform: uppercase; 
    margin-top: 4px; 
    font-weight: bold; 
    transition: all 0.2s ease;
}

/* Активное состояние */
.nav-item:hover, .nav-item.active { background: linear-gradient(to top, #2b1a1a, #1f1414); }
.nav-item.active .nav-ico { filter: drop-shadow(0 0 2px #ff2222) brightness(1.2); }
.nav-item.active .nav-label { color: #ff2222; text-shadow: 0 0 5px rgba(255, 34, 34, 0.5); }

/* =========================================================================
   ВКЛАДКИ ПРОФИЛЯ (МГНОВЕННОЕ ПЕРЕКЛЮЧЕНИЕ)
========================================================================= */
.profile-tabs { width: 100%; padding: 0; background: transparent; border: none; box-shadow: none; }
.profile-tabs input[type="radio"] { display: none; }

.tab-labels { display: flex; gap: 4px; margin-bottom: 15px; }

.tab-label {
    flex: 1; 
    text-align: center; 
    padding: 10px 5px; 
    color: #aa8888;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    text-transform: uppercase;
    background: linear-gradient(to bottom, #1f1414, #0d0808);
    border: 1px solid #441111; 
    border-radius: 3px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 2px 4px rgba(0,0,0,0.8);
    transition: background 0.2s, color 0.2s;
}

.tab-label-inner { display: flex; align-items: center; justify-content: center; gap: 6px; }
.tab-ico { width: 14px; height: 14px; background-size: contain; background-repeat: no-repeat; mix-blend-mode: screen; filter: drop-shadow(0 0 1px #ff2222); }

.tab-label:hover { background: linear-gradient(to bottom, #2b1a1a, #120b0b); color: #fff; }

#tab-agent:checked ~ .tab-labels .label-agent,
#tab-settings:checked ~ .tab-labels .label-settings {
    background: linear-gradient(to bottom, #3b2222, #1f1414);
    border-color: #ff2222;
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 0 8px rgba(255,34,34,0.5);
    text-shadow: 0 1px 2px #000;
}

.tab-content { display: none; }
#tab-agent:checked ~ .tab-content-agent, #tab-settings:checked ~ .tab-content-settings { display: block; }

/* =========================================================================
   НОВАЯ ВЕРХНЯЯ ПАНЕЛЬ СТАТУСА (ЭРА ГЕРОЕВ СТАЙЛ)
========================================================================= */
.top-hud-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: linear-gradient(to bottom, #111111, #050505);
    border-bottom: 1px solid #331c1c;
    padding: 6px 5px;
    font-size: 11px;
    font-weight: bold;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    width: 100%;
    box-sizing: border-box;
}

.hud-item {
    display: flex;
    align-items: center;
    gap: 5px;
    text-shadow: 0 1px 1px #000;
}

.hud-item-mail {
    cursor: pointer;
    text-decoration: none;
}

/* =========================================================================
   РАБОТА С НОВЫМИ ИКОНКАМИ (CSS СПРАЙТ)
========================================================================= */
.sprite-ico {
    width: 16px;
    height: 16px;
    background-image: url('../img/icons_sprite.png');
    background-size: 100% 400%; /* Картинка вытянута: 1 колонка, 4 строки */
    background-repeat: no-repeat;
    display: inline-block;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.8));
}

/* Смещения для каждой иконки в спрайте */
.ico-gosznak { background-position: 0 0; }            /* Серая монета */
.ico-isotope { background-position: 0 33.333%; }      /* Фиолетовый гем */
.ico-energy  { background-position: 0 66.666%; }      /* Синяя молния */
.ico-mail    { background-position: 0 100%; }         /* Конверт СССР */

/* Анимация пульсации для непрочитанного письма */
.mail-alert .ico-mail {
    animation: pulse-mail 1.5s infinite;
    filter: drop-shadow(0 0 5px #ff4444);
}

@keyframes pulse-mail {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* =========================================================================
   КАЗАРМА И ОТРЯД (HERO COLLECTOR)
========================================================================= */
.squad-container {
    display: flex;
    justify-content: space-around;
    gap: 5px;
    margin-bottom: 15px;
}

.hero-card {
    flex: 1;
    background: #0d0e10;
    border: 1px solid #2d3035;
    border-radius: 4px;
    padding: 5px;
    text-align: center;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.hero-card.locked {
    filter: grayscale(100%) brightness(0.4);
}

.hero-avatar {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border: 1px solid #444;
    border-radius: 2px;
    margin-bottom: 5px;
}

.hero-lvl-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border: 1px solid #ffb000;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.hero-name {
    font-size: 0.75rem;
    color: #d49a55;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: bold;
}

.shard-bar {
    width: 100%;
    height: 4px;
    background: #222;
    margin-top: 5px;
    border-radius: 2px;
}
.shard-fill {
    height: 100%;
    background: #c77dff;
}

/* =========================================================================
   ИНТЕРФЕЙС ГЕРОЯ (ЭКИПИРОВКА 4 СЛОТА)
========================================================================= */
.hero-equipment-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: url('../img/panel-texture.jpg') center/cover;
    padding: 15px 5px;
    border: 1px solid #331c1c;
    border-radius: 4px;
}

.eq-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.eq-slot {
    width: 50px;
    height: 50px;
    background: #000;
    border: 1px dashed #666;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: #666;
    cursor: pointer;
    text-decoration: none;
    position: relative;
}

.eq-slot.filled {
    border: 1px solid #ffb000;
}

.eq-slot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

.hero-center-portrait {
    width: 120px;
    height: 160px;
    border: 2px solid #ff2222;
    box-shadow: 0 0 10px rgba(255, 34, 34, 0.5);
    border-radius: 4px;
    object-fit: cover;
}

/* =========================================================================
   МАГАЗИН АРТЕФАКТОВ И РЕДКОСТЬ
========================================================================= */
.rarity-common { color: #aaaaaa !important; }
.rarity-uncommon { color: #55ff55 !important; }
.rarity-rare { color: #4da6ff !important; }
.rarity-epic { color: #c77dff !important; }
.rarity-legendary { color: #ffb000 !important; }
.rarity-mythic { color: #ff4444 !important; }

.shop-category-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to right, #111, #1a1a1a, #111);
    border: 1px solid #333;
    margin-bottom: 8px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
    transition: 0.2s ease;
}

.shop-category-btn:hover {
    background: linear-gradient(to right, #1a1a1a, #222, #1a1a1a);
    border-color: #555;
}

.artifact-card {
    background: #0d0e10;
    border: 1px solid #2d3035;
    border-radius: 4px;
    margin-bottom: 15px;
    overflow: hidden;
}

.artifact-info-row {
    display: flex;
    padding: 10px;
    gap: 12px;
}

.artifact-img-box {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    border: 1px solid #444;
    overflow: hidden;
    flex-shrink: 0;
}

.artifact-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artifact-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.artifact-name {
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.artifact-stat {
    font-size: 0.8rem;
    color: #babcbf;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-buy-premium {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(to bottom, #2a1538, #1a0b24);
    border: none;
    border-top: 1px solid #4a2560;
    color: #c77dff;
    padding: 10px;
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
}
.btn-buy-premium:disabled {
    background: #111;
    color: #555;
    border-color: #333;
}

.b_title {
    /* 1. Размеры блока */
    width: 100%;
    /* Увеличиваем высоту, чтобы поместился высокий левый блок с серпом и молотом. 
       20px было слишком мало. */
    height: 40px; 
    
    /* 2. Настройка фона */
    background-image: url('../img/title.png');
    background-repeat: no-repeat;
    /* КРИТИЧНО: Прижимаем фон к НИЗУ. Так красная полоса всегда будет внизу блока, 
       а прозрачная пустота останется сверху */
    background-position: left bottom; 
    /* Растягиваем на всю ширину блока. Высота тоже подтянется. */
    background-size: 100% 100%; 
    
    /* 3. Позиционирование текста (Flexbox) */
    display: flex;
    justify-content: center; /* Центрируем по горизонтали */
    align-items: flex-end;   /* Опускаем текст в самый низ блока... */
    
    /* ...и приподнимаем его ровно в центр красной полосы. 
       Если текст стоит слишком высоко/низко, меняйте цифру 7px (например, 6px или 8px) */
    padding-bottom: 7px; 
    box-sizing: border-box; /* Чтобы padding не ломал общую высоту блока */
    
    /* 4. Визуал текста и отступы */
    margin-bottom: 5px;
    color: #92ace4;
    font-size: 13px; /* Размер шрифта */
    font-weight: bold;
    text-transform: uppercase; /* Делает все буквы заглавными */
    text-shadow: 1px 1px 2px rgba(0,0,0, 0.8); /* Тень для читаемости */
}