/* Базовые настройки страницы */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* Глобальный фон сайта */
body {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient( rgba(18, 12, 8, 0.62), rgba(18, 12, 8, 0.84) ), url("../images/ui/deadlock-city-bg.png");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #f0e6d2;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
/* Заголовок страницы */
.main-title {
    text-align: center;
    background: #2a2a2a;
    padding: 15px;
    border-radius: 5px;
    text-transform: uppercase;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #fff;
    border: 1px solid #444;
}

/* Секция категории (Weapon, Vitality, Spirit) */
.category-section {
    margin-bottom: 30px;
    border: 1px solid #444;
    border-radius: 8px;
    background-color: #241e16;
    overflow: hidden;
}

.category-header {
    text-align: center;
    background: #2a2a2a;
    margin: 0;
    padding: 12px;
    text-transform: uppercase;
    font-weight: bold;
    border-bottom: 2px solid #444;
    letter-spacing: 2px;
}

/* Ряд с ценой */
.cost-row {
    display: flex;
    align-items: center;
    border-top: 1px solid #333;
    padding: 8px 15px;
    min-height: 50px;
}

/* Общие стили плашек с ценой */
.cost-badge {
    width: 100px;
    font-weight: bold;
    text-align: center;
    padding: 6px;
    border-radius: 4px;
    margin-right: 20px;
    flex-shrink: 0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Цвета плашек по категориям */
.weapon .cost-badge {
    background-color: #c7863c !important;
    color: #1a1510 !important;
}

.vitality .cost-badge {
    background-color: #769e3c !important;
    color: #1a1510 !important;
}

.spirit .cost-badge {
    background-color: #8b64bb !important;
    color: #1a1510 !important;
}

.legendary .cost-badge {
    background-color: #e6b800 !important;
    color: #1a1510 !important;
}

/* Контейнер для предметов */
.items-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

/* Отдельный предмет (иконка + текст) */
.item-entry {
    display: inline-flex;
    align-items: center;
    transition: transform 0.1s;
}

    .item-entry:hover {
        transform: scale(1.02);
    }

.item-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border: 1px solid #555;
    background-color: #000;
    margin-right: 8px;
}

.item-name {
    font-size: 0.9rem;
    white-space: nowrap;
    color: #f0e6d2;
}

/* Точка-разделитель */
.item-separator {
    color: #666;
    margin: 0 12px;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Убираем последнюю точку в ряду */
.item-entry:last-child .item-separator {
    display: none;
}

/* Фикс для фокуса кнопок */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Убираем стандартное оформление ссылок для предметов */
.item-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

    .item-link:hover .item-name {
        color: #fff; /* Подсветка текста при наведении */
    }

/* Контейнер страницы */
.wiki-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.wiki-row {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.wiki-main {
    flex: 3;
}

.wiki-sidebar {
    flex: 1;
    min-width: 300px;
}

/* Хлебные крошки и заголовки */
.wiki-breadcrumb {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

    .wiki-breadcrumb a {
        color: #c7863c;
        text-decoration: none;
    }

.wiki-page-title {
    font-size: 2.5rem;
    margin-bottom: 5px;
    color: #fff;
}

.wiki-divider {
    border: 0;
    border-top: 1px solid #444;
    margin: 15px 0;
}

/* КАРТОЧКА ПРЕДМЕТА */
.item-card {
    background: #241e16;
    border: 1px solid #3c352a;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card-tabs {
    display: flex;
    background: #1a1510;
    font-size: 0.7rem;
    text-transform: uppercase;
}

    .card-tabs .tab {
        flex: 1;
        padding: 8px;
        text-align: center;
        color: #888;
        cursor: pointer;
    }

        .card-tabs .tab.active {
            color: #fff;
            border-bottom: 2px solid #c7863c;
            background: #241e16;
        }

.card-header {
    padding: 15px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px #000;
}

    /* Цвет шапки в зависимости от категории */
    .card-header.weapon {
        background: linear-gradient(to bottom, #c7863c, #8a5a22);
    }

    .card-header.vitality {
        background: linear-gradient(to bottom, #769e3c, #506d28);
    }

    .card-header.spirit {
        background: linear-gradient(to bottom, #8b64bb, #5c3d85);
    }

.card-image-box {
    background: #d9d0c1; /* Бежевый фон как на скрине */
    margin: 15px;
    padding: 20px;
    display: flex;
    justify-content: center;
}

    .card-image-box img {
        width: 120px;
        height: 120px;
    }

.fallback-img {
    width: 100px !important;
    height: 100px !important;
    filter: blur(0.5px);
}

.card-stats {
    padding: 0 15px;
}

.stat-line {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #333;
    font-size: 0.9rem;
}

.card-effects {
    padding: 15px;
    background: rgba(0,0,0,0.2);
    margin: 15px;
    border-left: 3px solid #c7863c;
}

.effect-bonus {
    color: #c7863c;
    font-weight: bold;
    margin-bottom: 5px;
}

.effect-type {
    font-style: italic;
    color: #888;
    font-size: 0.8rem;
}

.internal-id {
    font-size: 0.7rem;
    color: #555;
    margin-top: 10px;
}

/* Текст и ссылки */
.item-intro-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.text-highlight {
    color: #92e07b;
}
/* Цвет Shop */
.text-highlight-green {
    color: #62cf3f;
    cursor: pointer;
}

.soul-cost-inline {
    color: #a4f6ff;
    font-weight: bold;
}

.text-component {
    color: #8ec362;
}

/* Секция Update History */
.update-history-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 30px;
}

.edit-controls {
    font-size: 0.8rem;
    color: #62cf3f;
}

.edit-link {
    cursor: pointer;
}

.wiki-divider-sub {
    border: 0;
    border-top: 1px solid #555;
    margin-bottom: 15px;
}

.full-history-link {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* ТАБЛИЦА ОБНОВЛЕНИЙ */
.wiki-history-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #1a1510;
    border: 1px solid #555;
    color: #eee;
}

    .wiki-history-table th {
        background-color: #241e16;
        border: 1px solid #555;
        padding: 10px;
        text-align: center;
        font-weight: bold;
    }

.collapse-toggle {
    color: #62cf3f;
    float: right;
    font-weight: normal;
    font-size: 0.85rem;
    cursor: pointer;
}

.wiki-history-table td {
    border: 1px solid #555;
    padding: 15px;
    vertical-align: top;
}

.date-cell {
    width: 25%;
    color: #62cf3f;
    text-align: center;
    font-weight: 500;
}

.changes-cell ul {
    margin: 0;
    padding-left: 20px;
}

.changes-cell li {
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Иконка категории в тексте */
.category-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    background-size: contain;
    background-repeat: no-repeat;
}

    .category-icon.weapon {
        background-image: url('/images/ui/weapon_icon.png');
    }
/* Проверь путь к иконке */

/* Глобальные настройки фона */
body {
    background-color: #1a1510; /* Тёмный фон как в игре */
    color: #eee;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.wiki-wrapper {
    display: flex;
    flex-direction: column;
}

/* Верхняя панель */
.wiki-top-bar {
    background: #000;
    padding: 5px 20px;
    display: flex;
    justify-content: flex-end;
}

.user-link {
    font-size: 0.8rem;
    color: #ccc;
    margin-left: 15px;
    cursor: pointer;
}

/* Сетка сайта */
.wiki-layout {
    display: flex;
    max-width: 1700px;
    margin: 0 auto;
    width: 100%;
}

.wiki-left-sidebar {
    width: 180px;
    padding: 20px;
}

.wiki-main-container {
    flex: 1;
    background: #241e16; /* Чуть светлее фон для контента */
    border-left: 1px solid #3c352a;
    min-height: 100vh;
}

/* Навигация слева */
.main-logo {
    width: 100%;
    margin-bottom: 20px;
}

.nav-block h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #888;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.nav-block ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.nav-block li a {
    color: #c7863c;
    text-decoration: none;
    font-size: 0.9rem;
}

    .nav-block li a:hover {
        text-decoration: underline;
    }

/* Шапка контента (Вкладки и поиск) */
.wiki-content-header {
    background: #1a1510;
    display: flex;
    justify-content: space-between;
    padding: 10px 20px 0 20px;
}

.tabs {
    display: flex;
}

.tab {
    padding: 8px 15px;
    font-size: 0.9rem;
    color: #888;
    border: 1px solid transparent;
    cursor: pointer;
}

    .tab.active {
        background: #241e16;
        color: #fff;
        border: 1px solid #3c352a;
        border-bottom: none;
    }

.search-box input {
    background: #000;
    border: 1px solid #555;
    color: #fff;
    padding: 5px;
}

.render-body {
    padding: 20px;
}

.logo-container {
    padding: 10px 0 30px 0;
    text-align: center;
}

.logo-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-eye {
    width: 80px; /* Отрегулируй размер глаза под себя */
    height: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.logo-title {
    color: #e2d2b2; /* Кремовый цвет как на скринах */
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 2px;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

.logo-subtitle {
    color: #a39474;
    font-size: 1.1rem;
    letter-spacing: 6px;
    margin-top: 4px;
}

/* Эффект при наведении на лого */
.logo-link:hover .logo-title {
    color: #fff;
    transition: 0.3s;
}

.stat-icons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-top: 10px;
}

.stat-icon-block {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #4a4135;
    padding: 8px;
    display: flex;
    align-items: center;
}

    .stat-icon-block img {
        width: 24px;
        height: 24px;
        margin-right: 8px;
    }

.stat-text {
    display: flex;
    flex-direction: column;
    font-size: 11px;
    line-height: 1.1;
}

.stat-value {
    font-weight: bold;
    color: #ff9d00; /* Оранжевый для урона */
}
/* Общая рамка для блока стат */
.stat-icon-block {
    background: linear-gradient(180deg, #2a251f 0%, #1a1510 100%);
    border: 1px solid #4a4135;
    border-radius: 2px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    min-height: 40px;
}

/* Значение (+20%) */
.stat-value {
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    margin-right: 5px;
}

/* Описание (Weapon Damage) */
.stat-desc {
    color: #a3a3a3;
    font-size: 11px;
    text-transform: uppercase;
    line-height: 1;
}

/* Условный статус (Conditional) */
.stat-conditional {
    font-size: 9px;
    color: #ff9d00;
    display: block;
    text-transform: uppercase;
}

.wiki-page {
    padding: 24px;
}

.wiki-page-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
    border-bottom: 1px solid #3d3429;
    padding-bottom: 16px;
}

    .wiki-page-head h1 {
        margin: 0 0 8px;
        color: #f3e6c8;
        font-size: 32px;
    }

    .wiki-page-head p {
        margin: 0;
        color: #c8b89a;
    }

.wiki-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2f261d;
    border: 1px solid #6b563b;
    color: #f3e6c8;
    padding: 10px 14px;
    text-decoration: none;
    border-radius: 4px;
    white-space: nowrap;
}

    .wiki-button:hover {
        background: #3b3025;
        color: #ffffff;
    }

.heroes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

.hero-card {
    display: block;
    background: rgba(35, 29, 23, 0.95);
    border: 1px solid #3d3429;
    border-radius: 6px;
    overflow: hidden;
    color: #f0e6d2;
    text-decoration: none;
    transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

    .hero-card:hover {
        transform: translateY(-2px);
        border-color: #24d69b;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
        color: #ffffff;
    }

.hero-card-image {
    height: 150px;
    background: #17120e;
    overflow: hidden;
}

    .hero-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.hero-card-body {
    padding: 10px;
}

    .hero-card-body h3 {
        margin: 0 0 6px;
        font-size: 16px;
        color: #ffffff;
    }

.hero-role {
    display: inline-block;
    margin-bottom: 8px;
    padding: 2px 7px;
    background: #2f261d;
    border: 1px solid #5a4732;
    color: #24d69b;
    font-size: 12px;
    border-radius: 999px;
}

.hero-card-body p {
    margin: 0;
    color: #c8b89a;
    font-size: 13px;
    line-height: 1.35;
}

.hero-infobox {
    background: #241e16;
    border: 1px solid #3c352a;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-infobox-header {
    padding: 14px;
    text-align: center;
    background: linear-gradient(to bottom, #c7863c, #8a5a22);
    color: #ffffff;
    font-weight: 800;
    font-size: 22px;
    text-shadow: 1px 1px 2px #000;
}

.hero-infobox-image {
    background: #17120e;
    padding: 12px;
    text-align: center;
}

    .hero-infobox-image img {
        max-width: 100%;
        border: 1px solid #3c352a;
        border-radius: 4px;
    }

.hero-infobox-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-top: 1px solid #3c352a;
    color: #d9c7a5;
}

    .hero-infobox-row strong {
        color: #ffffff;
        text-align: right;
    }

.wiki-link {
    color: #24d69b;
    text-decoration: none;
    font-weight: 700;
}

    .wiki-link:hover {
        color: #ffffff;
    }

.wiki-page {
    padding: 24px;
}

.wiki-page-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
    border-bottom: 1px solid #3d3429;
    padding-bottom: 16px;
}

    .wiki-page-head h1 {
        margin: 0 0 8px;
        color: #f3e6c8;
        font-size: 32px;
    }

    .wiki-page-head p {
        margin: 0;
        color: #c8b89a;
    }

.wiki-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2f261d;
    border: 1px solid #6b563b;
    color: #f3e6c8;
    padding: 10px 14px;
    text-decoration: none;
    border-radius: 4px;
    white-space: nowrap;
}

    .wiki-button:hover {
        background: #3b3025;
        color: #ffffff;
    }

.wiki-empty {
    background: rgba(35, 29, 23, 0.95);
    border: 1px solid #3d3429;
    padding: 24px;
    border-radius: 6px;
    color: #d9c7a5;
}

    .wiki-empty h2 {
        margin-top: 0;
        color: #f3e6c8;
    }

.heroes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

.hero-card {
    display: block;
    background: rgba(35, 29, 23, 0.95);
    border: 1px solid #3d3429;
    border-radius: 6px;
    overflow: hidden;
    color: #f0e6d2;
    text-decoration: none;
    transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

    .hero-card:hover {
        transform: translateY(-2px);
        border-color: #24d69b;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
        color: #ffffff;
    }

.hero-card-image {
    height: 150px;
    background: #17120e;
    overflow: hidden;
}

    .hero-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.hero-card-body {
    padding: 10px;
}

    .hero-card-body h3 {
        margin: 0 0 6px;
        font-size: 16px;
        color: #ffffff;
    }

.hero-role {
    display: inline-block;
    margin-bottom: 8px;
    padding: 2px 7px;
    background: #2f261d;
    border: 1px solid #5a4732;
    color: #24d69b;
    font-size: 12px;
    border-radius: 999px;
}

.hero-card-body p {
    margin: 0;
    color: #c8b89a;
    font-size: 13px;
    line-height: 1.35;
}

.wiki-container {
    padding: 24px;
}

.wiki-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.wiki-main {
    background: rgba(24, 20, 16, 0.92);
    border: 1px solid #3d3429;
    padding: 24px;
    color: #d9c7a5;
}

.wiki-sidebar {
    position: sticky;
    top: 20px;
}

.wiki-breadcrumb {
    margin-bottom: 12px;
    color: #9f8f73;
    font-size: 14px;
}

    .wiki-breadcrumb a {
        color: #24d69b;
        text-decoration: none;
    }

        .wiki-breadcrumb a:hover {
            color: #ffffff;
        }

.wiki-page-title {
    margin: 0;
    color: #f3e6c8;
    font-size: 36px;
}

.wiki-divider {
    border: none;
    border-top: 1px solid #5a4732;
    margin: 14px 0 22px;
}

.wiki-divider-sub {
    border: none;
    border-top: 1px solid #3d3429;
    margin: 8px 0 16px;
}

.wiki-section-header {
    margin: 28px 0 0;
    color: #f3e6c8;
    font-size: 24px;
}

.item-intro-text {
    font-size: 18px;
    line-height: 1.6;
    color: #f0e6d2;
}

.hero-infobox {
    background: #241e16;
    border: 1px solid #3c352a;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-infobox-header {
    padding: 14px;
    text-align: center;
    background: linear-gradient(to bottom, #c7863c, #8a5a22);
    color: #ffffff;
    font-weight: 800;
    font-size: 22px;
    text-shadow: 1px 1px 2px #000;
}

.hero-infobox-image {
    background: #17120e;
    padding: 12px;
    text-align: center;
}

    .hero-infobox-image img {
        max-width: 100%;
        border: 1px solid #3c352a;
        border-radius: 4px;
    }

.hero-infobox-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-top: 1px solid #3c352a;
    color: #d9c7a5;
}

    .hero-infobox-row strong {
        color: #ffffff;
        text-align: right;
    }

.wiki-link {
    color: #24d69b;
    text-decoration: none;
    font-weight: 700;
}

    .wiki-link:hover {
        color: #ffffff;
    }

@media (max-width: 900px) {
    .wiki-row {
        grid-template-columns: 1fr;
    }

    .wiki-sidebar {
        position: static;
    }

    .wiki-page-head {
        flex-direction: column;
    }
}

.inline-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: -4px;
    margin: 0 3px;
    image-rendering: auto;
}

    .inline-icon.price-icon {
        width: 20px;
        height: 20px;
        vertical-align: -5px;
    }

.icon-text {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.stat-line {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #f0e6d2;
    line-height: 1.5;
}

    .stat-line strong {
        color: #ffffff;
    }

.stats-list {
    display: grid;
    gap: 6px;
    margin: 12px 0;
}

.item-price {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #61f0cf;
    font-weight: 800;
}

.item-category-text {
    color: #24d69b;
    font-weight: 700;
}

.item-infobox {
    background: #241d15;
    border: 1px solid #4a3b2a;
    color: #e7dcc5;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

.item-infobox-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #16110d;
    border-bottom: 1px solid #4a3b2a;
}

    .item-infobox-tabs span {
        padding: 12px 8px;
        text-align: center;
        color: #8f826d;
        font-size: 13px;
        font-weight: 700;
    }

        .item-infobox-tabs span.active {
            background: #231a13;
            color: #ffffff;
        }

.item-infobox-title {
    padding: 16px 12px;
    text-align: center;
    background: linear-gradient(to bottom, #c98a35, #9b641f);
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    text-shadow: 1px 2px 2px #000;
}



    .item-infobox-image img {
        width: 120px;
        height: 120px;
        object-fit: contain;
    }

.item-infobox-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 14px;
    border-top: 1px solid #3f3225;
}

    .item-infobox-row span {
        color: #d7c8ad;
    }

    .item-infobox-row strong {
        color: #ffffff;
        text-align: right;
    }

.item-infobox-stats {
    padding: 12px 14px;
    border-top: 1px solid #3f3225;
    background: rgba(0,0,0,0.12);
}

.item-infobox-ability {
    margin: 12px 14px;
    padding: 14px;
    border-left: 3px solid #c98a35;
    background: #1b160f;
    color: #d7c8ad;
}

    .item-infobox-ability.active {
        border-left-color: #24d69b;
    }

    .item-infobox-ability em {
        display: block;
        margin-bottom: 8px;
        color: #9f927d;
    }

    .item-infobox-ability p {
        margin: 0;
        line-height: 1.45;
    }

.item-infobox-section {
    padding: 12px 14px;
    border-top: 1px solid #3f3225;
}

    .item-infobox-section strong {
        display: block;
        margin-bottom: 4px;
        color: #ffffff;
    }

    .item-infobox-section p {
        margin: 0;
        color: #d7c8ad;
    }

.item-infobox-codename {
    padding: 10px 14px;
    border-top: 1px solid #3f3225;
    color: #8c806f;
    font-size: 12px;
}

.item-ability-box {
    padding: 16px;
    border-left: 3px solid #c98a35;
    background: rgba(0,0,0,0.18);
    color: #e7dcc5;
    margin: 12px 0 20px;
}

    .item-ability-box.active {
        border-left-color: #24d69b;
    }

.item-ability-label {
    margin-bottom: 8px;
    color: #9f927d;
    font-style: italic;
}

.item-cooldown-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 0;
}

.small-icon-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: #f0e6d2;
}

.patch-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    background: rgba(0,0,0,0.16);
}

    .patch-table th,
    .patch-table td {
        border: 1px solid #4a3b2a;
        padding: 10px;
        vertical-align: top;
    }

    .patch-table th {
        background: #241d15;
        color: #f3e6c8;
    }

    .patch-table td {
        color: #d9c7a5;
    }

.wiki-edit-links {
    float: right;
    font-size: 13px;
    color: #56ff9f;
    font-weight: 400;
}

.wiki-muted {
    color: #c8b89a;
    font-style: italic;
}

.item-name-icon {
    width: 22px;
    height: 22px;
    vertical-align: -5px;
    margin-right: 5px;
    border-radius: 2px;
}

.legendary-label {
    color: #ffd36b;
    font-weight: 900;
    text-shadow: 0 0 8px rgba(255, 179, 64, 0.35);
}

.items-page {
    padding: 24px;
}

.items-hero {
    background: linear-gradient(180deg, rgba(48, 43, 39, 0.95), rgba(30, 24, 19, 0.96));
    border: 1px solid #4a3b2a;
    border-radius: 12px;
    padding: 28px 30px;
    margin-bottom: 24px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.28);
}

    .items-hero h1 {
        margin: 0 0 10px;
        font-size: 44px;
        line-height: 1;
        color: #fff3dc;
        text-transform: uppercase;
        letter-spacing: 1.5px;
    }

    .items-hero p {
        margin: 0;
        font-size: 16px;
        line-height: 1.55;
        color: #d6c7aa;
        max-width: 760px;
    }

.items-empty-state {
    background: rgba(35, 29, 23, 0.95);
    border: 1px solid #4a3b2a;
    border-radius: 12px;
    padding: 30px;
    color: #d6c7aa;
}

    .items-empty-state h2 {
        margin-top: 0;
        color: #fff3dc;
    }

.items-category-card {
    background: linear-gradient(180deg, rgba(40, 31, 24, 0.95), rgba(25, 19, 15, 0.96));
    border: 1px solid #4a3b2a;
    border-radius: 14px;
    margin-bottom: 28px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.items-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 22px;
    background: linear-gradient(180deg, #31353b, #282b2f);
    border-bottom: 1px solid #4a3b2a;
}

    .items-category-header h2 {
        margin: 0;
        color: #fff0d5;
        font-size: 28px;
        letter-spacing: 1.2px;
        text-transform: uppercase;
    }

.items-category-count {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d7ccb7;
    font-size: 13px;
    font-weight: 700;
}

.items-tier-table {
    padding: 8px 0;
}

.items-tier-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 18px;
    align-items: start;
    padding: 16px 16px;
    border-top: 1px solid rgba(110, 88, 60, 0.32);
}

    .items-tier-row:first-child {
        border-top: none;
    }

.items-tier-badge {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #111;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}

.weapon-badge {
    background: linear-gradient(180deg, #dba14e, #bb7d2f);
}

.vitality-badge {
    background: linear-gradient(180deg, #95c24e, #73a832);
}

.spirit-badge {
    background: linear-gradient(180deg, #a97be0, #8d62cf);
}

.legendary-badge {
    background: linear-gradient(180deg, #ffe066, #e0b300);
    color: #181305;
}

.tier-price-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tier-badge-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.items-tier-content {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding-top: 2px;
}

.item-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(214, 184, 142, 0.14);
    color: #f5e7cf;
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

    .item-chip:hover {
        transform: translateY(-1px);
        background: rgba(255, 255, 255, 0.075);
        border-color: rgba(255, 222, 173, 0.28);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
        color: #ffffff;
    }

.item-chip-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex: 0 0 auto;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.03);
}

.item-chip-name {
    line-height: 1.15;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.legendary-chip {
    border-color: rgba(255, 208, 71, 0.35);
    background: rgba(255, 215, 90, 0.06);
}

    .legendary-chip:hover {
        border-color: rgba(255, 220, 110, 0.6);
        background: rgba(255, 220, 110, 0.12);
    }

.category-weapon .items-category-header {
    box-shadow: inset 4px 0 0 #d49742;
}

.category-vitality .items-category-header {
    box-shadow: inset 4px 0 0 #80b840;
}

.category-spirit .items-category-header {
    box-shadow: inset 4px 0 0 #9b6ede;
}

@media (max-width: 900px) {
    .items-tier-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .items-category-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .items-hero h1 {
        font-size: 34px;
    }
}

@media (max-width: 600px) {
    .items-page {
        padding: 16px;
    }

    .items-hero {
        padding: 20px;
    }

    .items-category-header h2 {
        font-size: 22px;
    }

    .item-chip-name {
        white-space: normal;
    }
}
.search-page {
    padding: 24px;
}

.search-header {
    background: linear-gradient(180deg, rgba(48, 43, 39, 0.95), rgba(30, 24, 19, 0.96));
    border: 1px solid #4a3b2a;
    border-radius: 12px;
    padding: 26px 30px;
    margin-bottom: 18px;
}

    .search-header h1 {
        margin: 0 0 8px;
        color: #fff3dc;
        font-size: 40px;
        text-transform: uppercase;
    }

    .search-header p {
        margin: 0;
        color: #d6c7aa;
    }

.search-page-form {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
}

    .search-page-form input {
        flex: 1;
        background: #100c09;
        border: 1px solid #4a3b2a;
        color: #f3e6c8;
        padding: 13px 14px;
        border-radius: 8px;
        outline: none;
    }

        .search-page-form input:focus {
            border-color: #24d69b;
            box-shadow: 0 0 0 3px rgba(36, 214, 155, 0.12);
        }

    .search-page-form button {
        background: #c98a35;
        color: #120d08;
        border: none;
        border-radius: 8px;
        padding: 0 22px;
        font-weight: 900;
        cursor: pointer;
    }

        .search-page-form button:hover {
            background: #e0a24d;
        }

.search-empty {
    background: rgba(35, 29, 23, 0.95);
    border: 1px solid #4a3b2a;
    border-radius: 12px;
    padding: 24px;
    color: #d6c7aa;
}

    .search-empty h2 {
        margin-top: 0;
        color: #fff3dc;
    }

.search-results-list {
    display: grid;
    gap: 12px;
}

.search-result-card {
    display: flex;
    gap: 14px;
    align-items: center;
    background: rgba(35, 29, 23, 0.95);
    border: 1px solid #4a3b2a;
    border-radius: 12px;
    padding: 14px;
    text-decoration: none;
    color: #f3e6c8;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

    .search-result-card:hover {
        transform: translateY(-1px);
        border-color: #24d69b;
        background: rgba(45, 36, 28, 0.98);
        color: #ffffff;
    }

.search-result-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: #d8cdb8;
    border: 1px solid #4a3b2a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
}

    .search-result-icon img {
        width: 52px;
        height: 52px;
        object-fit: contain;
    }

    .search-result-icon span {
        color: #24d69b;
        font-weight: 900;
        font-size: 22px;
    }

.search-result-body {
    min-width: 0;
    flex: 1;
}

.search-result-topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

    .search-result-topline h2 {
        margin: 0;
        color: #fff3dc;
        font-size: 20px;
    }

    .search-result-topline span {
        background: rgba(36, 214, 155, 0.1);
        border: 1px solid rgba(36, 214, 155, 0.25);
        color: #24d69b;
        border-radius: 999px;
        padding: 4px 10px;
        font-size: 12px;
        font-weight: 800;
        white-space: nowrap;
    }

.search-result-body p {
    margin: 6px 0 0;
    color: #c8b89a;
}

.top-search-form {
    display: flex;
    align-items: center;
    gap: 4px;
}

    .top-search-form input {
        background: #090705;
        border: 1px solid #4a3b2a;
        color: #f3e6c8;
        padding: 7px 9px;
        min-width: 220px;
        outline: none;
    }

        .top-search-form input:focus {
            border-color: #24d69b;
        }

    .top-search-form button {
        background: #e8e8e8;
        border: 1px solid #4a3b2a;
        cursor: pointer;
        padding: 6px 9px;
    }
.discord-button {
    display: block;
    margin: 12px 16px 14px;
    padding: 9px 12px;
    background: #8d8778;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 800;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

    .discord-button:hover {
        background: #a39c8a;
        color: #ffffff;
    }

.sidebar-block {
    margin: 0 12px 12px;
    padding: 8px;
    background: rgba(18, 12, 9, 0.92);
    border: 1px solid #3f3225;
}

    .sidebar-block h3 {
        margin: 0 0 8px;
        padding: 7px 9px;
        background: #1f1712;
        color: #fff3dc;
        font-size: 14px;
        text-transform: uppercase;
    }

    .sidebar-block a {
        display: block;
        padding: 4px 7px;
        color: #e7dcc5;
        text-decoration: none;
        font-size: 13px;
        line-height: 1.3;
    }

        .sidebar-block a:hover {
            color: #24d69b;
            background: rgba(255, 255, 255, 0.04);
        }

.user-tools {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 5px 12px;
}

.user-link {
    color: #f3e6c8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

    .user-link:hover {
        color: #24d69b;
    }

.content-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    margin-right: 10px;
}

.content-action-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    background: #120d09;
    border: 1px solid #3f3225;
    color: #e7dcc5;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

    .content-action-link:hover {
        color: #24d69b;
        background: #1d1510;
    }

.top-search-form {
    display: flex;
    align-items: center;
    gap: 4px;
}

    .top-search-form input {
        background: #090705;
        border: 1px solid #4a3b2a;
        color: #f3e6c8;
        padding: 8px 10px;
        min-width: 260px;
        outline: none;
    }

        .top-search-form input:focus {
            border-color: #24d69b;
            box-shadow: 0 0 0 2px rgba(36, 214, 155, 0.12);
        }

    .top-search-form button {
        background: #e8e8e8;
        border: 1px solid #4a3b2a;
        cursor: pointer;
        padding: 7px 10px;
    }

        .top-search-form button:hover {
            background: #ffffff;
        }

@media (max-width: 1000px) {
    .content-actions {
        display: none;
    }

    .top-search-form input {
        min-width: 180px;
    }
}

@media (max-width: 760px) {
    .wiki-layout {
        display: block;
    }

    .wiki-left-sidebar {
        position: static;
        width: auto;
    }

    .wiki-content-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .top-search-form {
        width: 100%;
    }

        .top-search-form input {
            flex: 1;
            min-width: 0;
        }
}

.wiki-main,
.items-hero,
.items-category-card,
.search-header,
.search-result-card,
.hero-card,
.hero-infobox,
.item-infobox {
    backdrop-filter: blur(3px);
}

.wiki-main,
.items-category-card,
.search-result-card {
    background-color: rgba(24, 18, 13, 0.84);
}

.items-hero {
    background: linear-gradient(180deg, rgba(48, 38, 29, 0.88), rgba(24, 18, 13, 0.9));
}

.sidebar-block,
.discord-button {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.logo-container {
    padding-top: 24px;
}
\
.home-shell {
    padding: 26px;
}

.home-hero-panel {
    min-height: 300px;
    border: 1px solid rgba(172, 126, 71, 0.55);
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(8, 6, 4, 0.88), rgba(20, 14, 9, 0.64), rgba(8, 6, 4, 0.18)), url("../images/ui/deadlock-hero-bg.png");
    background-size: cover;
    background-position: center 45%;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45), inset 0 0 90px rgba(0, 0, 0, 0.42);
    margin-bottom: 26px;
}

.home-hero-overlay {
    min-height: 300px;
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    padding: 34px;
    background: radial-gradient(circle at 18% 50%, rgba(37, 214, 155, 0.12), transparent 24%), linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.32));
}

.home-hero-logo {
    width: 126px;
    height: 126px;
    border-radius: 999px;
    border: 2px solid rgba(36, 214, 155, 0.72);
    background: rgba(0, 0, 0, 0.36);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 34px rgba(36, 214, 155, 0.18), inset 0 0 24px rgba(0, 0, 0, 0.45);
}

    .home-hero-logo img {
        width: 88px;
        height: 88px;
        object-fit: contain;
    }

.home-kicker {
    margin: 0 0 8px;
    color: #24d69b;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.home-hero-content h1 {
    margin: 0 0 12px;
    color: #fff4dd;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1;
    letter-spacing: -1px;
    text-shadow: 0 3px 4px rgba(0, 0, 0, 0.75);
}

    .home-hero-content h1 span {
        color: #24d69b;
    }

.home-hero-text {
    max-width: 820px;
    margin: 0;
    color: #e0d2b8;
    font-size: 17px;
    line-height: 1.6;
    text-shadow: 0 2px 3px #000;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.home-primary-btn,
.home-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: 0.3px;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.home-primary-btn {
    background: #24d69b;
    color: #07120d;
    border: 1px solid rgba(36, 214, 155, 0.85);
}

    .home-primary-btn:hover {
        transform: translateY(-1px);
        background: #38f0b3;
        color: #07120d;
    }

.home-secondary-btn {
    background: rgba(255, 255, 255, 0.055);
    color: #fff4dd;
    border: 1px solid rgba(255, 231, 190, 0.28);
}

    .home-secondary-btn:hover {
        transform: translateY(-1px);
        border-color: rgba(36, 214, 155, 0.65);
        color: #ffffff;
    }

.home-section-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.home-feature-card {
    min-height: 150px;
    display: flex;
    gap: 14px;
    padding: 18px;
    border-radius: 16px;
    text-decoration: none;
    color: #f3e6c8;
    background: linear-gradient(180deg, rgba(42, 32, 24, 0.78), rgba(20, 15, 11, 0.82));
    border: 1px solid rgba(141, 103, 61, 0.42);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(3px);
    position: relative;
    overflow: hidden;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

    .home-feature-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top right, rgba(36, 214, 155, 0.1), transparent 34%);
        opacity: 0;
        transition: opacity 0.16s ease;
    }

    .home-feature-card:hover {
        transform: translateY(-3px);
        border-color: rgba(36, 214, 155, 0.62);
        background: linear-gradient(180deg, rgba(54, 41, 30, 0.86), rgba(24, 18, 13, 0.9));
        box-shadow: 0 22px 44px rgba(0, 0, 0, 0.34);
        color: #ffffff;
    }

        .home-feature-card:hover::before {
            opacity: 1;
        }

.home-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255, 229, 184, 0.14), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 231, 190, 0.2);
    box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.18);
    position: relative;
    z-index: 1;
}

    .home-feature-icon span {
        color: #24d69b;
        font-weight: 1000;
        font-size: 22px;
        text-shadow: 0 2px 3px #000;
    }

.home-feature-content {
    position: relative;
    z-index: 1;
}

    .home-feature-content h2 {
        margin: 2px 0 8px;
        color: #fff4dd;
        font-size: 21px;
        line-height: 1.1;
    }

    .home-feature-content p {
        margin: 0;
        color: #cdbd9e;
        font-size: 14px;
        line-height: 1.45;
    }

.feature-heroes {
    border-left: 3px solid #d7973f;
}

.feature-items {
    border-left: 3px solid #24d69b;
}

.feature-mechanics {
    border-left: 3px solid #a57ce0;
}

.feature-movement {
    border-left: 3px solid #d35f4c;
}

.feature-map {
    border-left: 3px solid #72bde8;
}

.feature-lore {
    border-left: 3px solid #d8c06a;
}

.feature-brawl {
    border-left: 3px solid #cf4c4c;
}

.feature-shop {
    border-left: 3px solid #7fc66a;
}

.home-info-row {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 16px;
}

.home-info-card {
    padding: 22px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(38, 29, 22, 0.78), rgba(18, 13, 9, 0.86));
    border: 1px solid rgba(141, 103, 61, 0.42);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(3px);
}

    .home-info-card h2 {
        margin: 0 0 10px;
        color: #fff4dd;
        font-size: 24px;
    }

    .home-info-card p {
        margin: 0;
        color: #d6c7aa;
        line-height: 1.6;
    }

.home-quick-links {
    display: grid;
    gap: 8px;
}

    .home-quick-links a {
        display: block;
        padding: 10px 12px;
        border-radius: 10px;
        color: #f3e6c8;
        text-decoration: none;
        background: rgba(255, 255, 255, 0.045);
        border: 1px solid rgba(255, 231, 190, 0.13);
    }

        .home-quick-links a:hover {
            color: #24d69b;
            border-color: rgba(36, 214, 155, 0.38);
            background: rgba(36, 214, 155, 0.06);
        }

@media (max-width: 1180px) {
    .home-section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .home-shell {
        padding: 16px;
    }

    .home-hero-overlay {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .home-section-grid,
    .home-info-row {
        grid-template-columns: 1fr;
    }

    .home-hero-logo {
        width: 100px;
        height: 100px;
    }

        .home-hero-logo img {
            width: 72px;
            height: 72px;
        }
}

.clean-header {
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
}

.site-header-title {
    display: flex;
    align-items: center;
    color: #f3e6c8;
    font-weight: 900;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    font-size: 14px;
    opacity: 0.9;
}

    .site-header-title span {
        padding-left: 10px;
        border-left: 3px solid #24d69b;
    }

.home-info-row.single-info {
    grid-template-columns: 1fr;
}

    .home-info-row.single-info .home-info-card {
        min-height: 120px;
    }

.settings-sidebar-button {
    display: block;
    width: calc(100% - 32px);
    margin: 0 16px 14px;
    padding: 9px 12px;
    background: rgba(36, 214, 155, 0.1);
    color: #24d69b;
    border: 1px solid rgba(36, 214, 155, 0.35);
    border-radius: 5px;
    font-weight: 900;
    cursor: pointer;
    text-align: center;
}

    .settings-sidebar-button:hover {
        background: rgba(36, 214, 155, 0.18);
        color: #ffffff;
    }

.settings-panel-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
    z-index: 90;
}

    .settings-panel-backdrop.open {
        opacity: 1;
        pointer-events: auto;
    }

.settings-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 92vw);
    height: 100vh;
    background: linear-gradient(180deg, rgba(32, 24, 18, 0.98), rgba(14, 10, 7, 0.98));
    border-left: 1px solid rgba(172, 126, 71, 0.45);
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.5);
    transform: translateX(105%);
    transition: transform 0.22s ease;
    z-index: 100;
    color: #f3e6c8;
    padding: 20px;
}

    .settings-panel.open {
        transform: translateX(0);
    }

.settings-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(172, 126, 71, 0.28);
    padding-bottom: 14px;
    margin-bottom: 18px;
}

    .settings-panel-header h2 {
        margin: 0;
        font-size: 26px;
        color: #fff4dd;
    }

    .settings-panel-header button {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        border: 1px solid rgba(255, 231, 190, 0.2);
        background: rgba(255, 255, 255, 0.06);
        color: #f3e6c8;
        font-size: 26px;
        line-height: 1;
        cursor: pointer;
    }

        .settings-panel-header button:hover {
            border-color: rgba(36, 214, 155, 0.5);
            color: #24d69b;
        }

.settings-panel-section {
    padding: 16px;
    border: 1px solid rgba(172, 126, 71, 0.28);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
}

    .settings-panel-section h3 {
        margin: 0 0 8px;
        color: #fff4dd;
        font-size: 18px;
    }

    .settings-panel-section p {
        margin: 0 0 14px;
        color: #cdbd9e;
        line-height: 1.45;
        font-size: 14px;
    }

.settings-toggle-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.settings-toggle {
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255, 231, 190, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #f3e6c8;
    font-weight: 900;
    cursor: pointer;
}

    .settings-toggle:hover {
        border-color: rgba(36, 214, 155, 0.45);
    }

    .settings-toggle.active {
        background: #24d69b;
        color: #07120d;
        border-color: #24d69b;
    }

.item-infobox-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #16110d;
    border-bottom: 1px solid #4a3b2a;
}

.item-tab-button {
    min-height: 42px;
    border: none;
    border-right: 1px solid #2d2118;
    background: #16110d;
    color: #8f826d;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    letter-spacing: 0.4px;
}

    .item-tab-button:last-child {
        border-right: none;
    }

    .item-tab-button:hover {
        color: #ffffff;
        background: #211811;
    }

    .item-tab-button.active {
        color: #ffffff;
        background: #231a13;
    }

/* Цвет заголовка карточки по категории */
.item-infobox-weapon .item-infobox-title {
    background: linear-gradient(to bottom, #d99a3d, #9b641f);
}

.item-infobox-vitality .item-infobox-title {
    background: linear-gradient(to bottom, #8cc647, #558f2f);
}

.item-infobox-spirit .item-infobox-title {
    background: linear-gradient(to bottom, #a777df, #6b48ad);
}

.item-infobox-default .item-infobox-title {
    background: linear-gradient(to bottom, #c98a35, #9b641f);
}

/* Активная вкладка тоже под категорию */
.item-infobox-weapon .item-tab-button.active {
    border-bottom: 3px solid #d99a3d;
}

.item-infobox-vitality .item-tab-button.active {
    border-bottom: 3px solid #8cc647;
}

.item-infobox-spirit .item-tab-button.active {
    border-bottom: 3px solid #a777df;
}
.item-enhanced-mark {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 10px 10px;
    color: #18b7ff;
    font-size: 20px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 0 #003c71, 0 0 6px rgba(24, 183, 255, 0.7);
}

.item-infobox.is-enhanced .item-enhanced-mark {
    display: flex;
}

.item-enhanced-mark img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 2px 0 #003c71) drop-shadow(0 0 4px rgba(24, 183, 255, 0.75));
}

.item-infobox.is-enhanced .item-infobox-title {
    background: linear-gradient(to bottom, #d99a3d, #9b641f);
}

.item-infobox-vitality.is-enhanced .item-infobox-title {
    background: linear-gradient(to bottom, #8cc647, #558f2f);
}

.item-infobox-spirit.is-enhanced .item-infobox-title {
    background: linear-gradient(to bottom, #a777df, #6b48ad);
}

/* Enhanced mark: по умолчанию скрыт */
.item-enhanced-mark {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 10px 10px;
    color: #18b7ff;
    font-size: 20px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 0 #003c71, 0 0 6px rgba(24, 183, 255, 0.7);
}

/* Показывается только когда нажата вкладка "Усиленный" */
.item-infobox.is-enhanced .item-enhanced-mark {
    display: flex;
}

.item-enhanced-mark img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 2px 0 #003c71) drop-shadow(0 0 4px rgba(24, 183, 255, 0.75));
}

/* Убираем старые enhanced-баннеры, если они где-то остались */
.item-enhanced-banner {
    display: none !important;
}

.item-infobox:not(.is-enhanced) .item-enhanced-mark {
    display: none !important;
}

.item-infobox.is-enhanced .item-infobox-title::after {
    content: none !important;
}

.item-infobox-row {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 14px;
    border-top: 1px solid #3f3225;
}

    .item-infobox-row span {
        color: #d7c8ad;
    }

    .item-infobox-row strong {
        color: #ffffff;
        text-align: right;
    }

.item-enhanced-mark {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 10px 10px;
    color: #18b7ff;
    font-size: 20px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 0 #003c71, 0 0 6px rgba(24, 183, 255, 0.7);
}

.item-infobox.is-enhanced .item-enhanced-mark {
    display: flex;
}

.item-enhanced-mark img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 2px 0 #003c71) drop-shadow(0 0 4px rgba(24, 183, 255, 0.75));
}

.item-enhanced-banner {
    display: none !important;
}

.item-infobox.is-enhanced .item-infobox-title::after {
    content: none !important;
}
/* Цветная зона под иконкой предмета */
.item-infobox-image {
    margin: 0 !important;
    padding: 18px 12px 20px !important;
    text-align: center;
    border-top: 1px solid rgba(255, 220, 170, 0.12);
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
    background-color: #9b641f;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.08));
    background-size: 4px 4px, 100% 100%;
}

/* Weapon */
.item-infobox-weapon .item-infobox-image {
    background-color: #a96c26;
}

/* Vitality */
.item-infobox-vitality .item-infobox-image {
    background-color: #5b8f35;
}

/* Spirit */
.item-infobox-spirit .item-infobox-image {
    background-color: #6f4ead;
}

/* Сама иконка предмета */
.item-infobox-image img {
    width: 150px !important;
    height: 150px !important;
    object-fit: contain;
    display: inline-block;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
/* Плавное изменение иконки предмета */
.item-infobox-image img {
    transition: filter 0.18s ease, box-shadow 0.18s ease;
}



/* Синий оттенок только на фоне зоны с иконкой */
.item-infobox.is-enhanced .item-infobox-image {
    background-image: radial-gradient(circle at center, rgba(80, 210, 255, 0.18), transparent 58%), radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(180deg, rgba(90, 220, 255, 0.13), rgba(0, 0, 0, 0.08));
    background-size: 100% 100%, 4px 4px, 100% 100%;
}

    /* Лёгкое голубое свечение вокруг самой иконки, без перекраски предмета */
    .item-infobox.is-enhanced .item-infobox-image img {
        box-shadow: 0 0 0 1px rgba(80, 210, 255, 0.18), 0 0 22px rgba(80, 210, 255, 0.22);
    }

/* Рамка под иконку предмета */
.item-icon-frame {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    overflow: hidden;
}

    .item-icon-frame img {
        width: 150px !important;
        height: 150px !important;
        object-fit: contain;
        position: relative;
        z-index: 1;
        filter: none !important;
        box-shadow: none !important;
    }

    /* Голубой enhanced-слой поверх PNG */
    .item-icon-frame::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 2;
        pointer-events: none;
        opacity: 0;
        background: radial-gradient(circle at 50% 45%, rgba(95, 230, 255, 0.32), rgba(95, 230, 255, 0.12) 52%, transparent 80%), linear-gradient(180deg, rgba(120, 235, 255, 0.24), rgba(35, 180, 255, 0.18));
        mix-blend-mode: multiply;
        transition: opacity 0.18s ease;
    }

    /* Лёгкое свечение, тоже только при усилении */
    .item-icon-frame::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        opacity: 0;
        background: rgba(80, 210, 255, 0.18);
        box-shadow: 0 0 20px rgba(80, 210, 255, 0.28), inset 0 0 26px rgba(80, 210, 255, 0.2);
        transition: opacity 0.18s ease;
    }

/* Включается только на вкладке "Усиленный" */
.item-infobox.is-enhanced .item-icon-frame::after,
.item-infobox.is-enhanced .item-icon-frame::before {
    opacity: 1;
}

.account-page,
.profile-page {
    padding: 26px;
}

.account-card,
.profile-header-card,
.profile-panel {
    background: linear-gradient(180deg, rgba(38, 29, 22, 0.86), rgba(18, 13, 9, 0.92));
    border: 1px solid rgba(172, 126, 71, 0.42);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    color: #f3e6c8;
}

.account-card {
    max-width: 920px;
    margin: 0 auto;
    padding: 28px;
}

    .account-card.small {
        max-width: 520px;
    }

    .account-card h1,
    .profile-header-card h1,
    .profile-panel h2 {
        margin-top: 0;
        color: #fff4dd;
    }

    .account-card p {
        color: #cdbd9e;
    }

.account-form {
    display: grid;
    gap: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-field {
    display: grid;
    gap: 6px;
}

    .form-field label,
    .avatar-upload-box label {
        color: #fff4dd;
        font-weight: 800;
    }

    .form-field input,
    .form-field select,
    .avatar-upload-box input {
        width: 100%;
        box-sizing: border-box;
        background: #100c09;
        color: #f3e6c8;
        border: 1px solid rgba(172, 126, 71, 0.42);
        border-radius: 10px;
        padding: 12px;
        outline: none;
    }

        .form-field input:focus,
        .form-field select:focus {
            border-color: #24d69b;
            box-shadow: 0 0 0 3px rgba(36, 214, 155, 0.12);
        }

    .form-field span,
    .avatar-upload-box span,
    .validation-summary {
        color: #ff7c6b;
        font-size: 13px;
    }

.avatar-upload-box {
    padding: 16px;
    border: 1px dashed rgba(36, 214, 155, 0.42);
    border-radius: 14px;
    background: rgba(36, 214, 155, 0.04);
    display: grid;
    gap: 8px;
}

    .avatar-upload-box small {
        color: #b8aa90;
    }

.account-submit-btn {
    min-height: 46px;
    border: none;
    border-radius: 12px;
    background: #24d69b;
    color: #07120d;
    font-weight: 1000;
    cursor: pointer;
}

    .account-submit-btn:hover {
        background: #38f0b3;
    }

.account-bottom-link {
    text-align: center;
    color: #cdbd9e;
}

    .account-bottom-link a,
    .profile-action-link,
    .admin-link {
        color: #24d69b;
        text-decoration: none;
        font-weight: 900;
    }

.demo-login-box,
.success-message {
    margin-top: 16px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(36, 214, 155, 0.08);
    border: 1px solid rgba(36, 214, 155, 0.25);
    display: grid;
    gap: 4px;
}

.profile-header-card {
    display: flex;
    gap: 22px;
    align-items: center;
    padding: 24px;
    margin-bottom: 18px;
}

.profile-avatar {
    width: 112px;
    height: 112px;
    border-radius: 18px;
    overflow: hidden;
    background: #120d09;
    border: 1px solid rgba(172, 126, 71, 0.42);
    flex: 0 0 auto;
}

    .profile-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.profile-header-card h2 {
    margin: 4px 0;
    color: #fff4dd;
}

.profile-header-card p {
    margin: 0 0 8px;
    color: #cdbd9e;
}

.profile-nickname {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(36, 214, 155, 0.1);
    color: #24d69b;
    font-weight: 900;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.profile-panel {
    padding: 20px;
}

    .profile-panel.wide {
        grid-column: 1 / -1;
    }

.profile-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

    .profile-list li {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 10px;
        border-radius: 10px;
        background: rgba(255,255,255,0.04);
    }

.profile-orders-table {
    width: 100%;
    border-collapse: collapse;
}

    .profile-orders-table th,
    .profile-orders-table td {
        border: 1px solid rgba(172, 126, 71, 0.28);
        padding: 10px;
    }

    .profile-orders-table th {
        background: rgba(0,0,0,0.22);
        color: #fff4dd;
    }

@media (max-width: 800px) {
    .form-grid,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-header-card {
        flex-direction: column;
        align-items: flex-start;
    }
}
.shop-page,
.product-details-page,
.cart-page {
    padding: 26px;
}

.shop-hero,
.shop-filter-panel,
.product-details-card,
.product-description-panel,
.reviews-panel,
.cart-summary,
.shop-empty {
    background: linear-gradient(180deg, rgba(38, 29, 22, 0.86), rgba(18, 13, 9, 0.92));
    border: 1px solid rgba(172, 126, 71, 0.42);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    color: #f3e6c8;
}

.shop-hero {
    padding: 28px;
    margin-bottom: 18px;
}

    .shop-hero h1 {
        margin: 0 0 10px;
        font-size: 42px;
        color: #fff4dd;
        text-transform: uppercase;
    }

    .shop-hero p {
        margin: 0;
        color: #cdbd9e;
        line-height: 1.6;
    }

.promo-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.promo-card {
    padding: 16px;
    border-radius: 14px;
    background: rgba(36, 214, 155, 0.08);
    border: 1px solid rgba(36, 214, 155, 0.28);
    display: grid;
    gap: 6px;
}

    .promo-card strong {
        color: #fff4dd;
    }

    .promo-card span {
        color: #cdbd9e;
    }

    .promo-card b {
        color: #24d69b;
        font-size: 22px;
    }

.shop-filter-panel {
    padding: 18px;
    margin-bottom: 18px;
}

.shop-filter-form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto auto auto;
    gap: 12px;
    align-items: end;
}

.shop-field {
    display: grid;
    gap: 6px;
}

    .shop-field label {
        font-weight: 900;
        color: #fff4dd;
    }

    .shop-field input,
    .shop-field select,
    .review-form textarea {
        background: #100c09;
        color: #f3e6c8;
        border: 1px solid rgba(172, 126, 71, 0.42);
        border-radius: 10px;
        padding: 11px;
        outline: none;
    }

        .shop-field input:focus,
        .shop-field select:focus,
        .review-form textarea:focus {
            border-color: #24d69b;
            box-shadow: 0 0 0 3px rgba(36, 214, 155, 0.12);
        }

.shop-checkbox {
    display: flex;
    gap: 6px;
    align-items: center;
    color: #f3e6c8;
    font-weight: 800;
}

.shop-filter-form button,
.cart-btn,
.details-btn,
.favorite-btn,
.cart-checkout-btn,
.remove-btn {
    border: none;
    border-radius: 10px;
    padding: 11px 14px;
    font-weight: 1000;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.shop-filter-form button,
.cart-btn,
.cart-checkout-btn {
    background: #24d69b;
    color: #07120d;
}

    .cart-btn:disabled {
        opacity: 0.45;
        cursor: not-allowed;
    }

.details-btn,
.favorite-btn {
    background: rgba(255,255,255,0.06);
    color: #f3e6c8;
    border: 1px solid rgba(255, 231, 190, 0.18);
}

.remove-btn {
    background: rgba(255, 90, 80, 0.14);
    color: #ff8a7a;
    border: 1px solid rgba(255, 90, 80, 0.32);
}

.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.shop-product-card {
    background: linear-gradient(180deg, rgba(42, 32, 24, 0.82), rgba(20, 15, 11, 0.9));
    border: 1px solid rgba(172, 126, 71, 0.36);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(0,0,0,0.22);
}

.shop-product-image {
    display: block;
    height: 190px;
    background: rgba(0,0,0,0.22);
    text-align: center;
    padding: 18px;
}

    .shop-product-image img {
        height: 100%;
        max-width: 100%;
        object-fit: contain;
    }

.shop-product-body {
    padding: 16px;
}

.shop-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

    .shop-product-tags span {
        padding: 4px 8px;
        border-radius: 999px;
        background: rgba(36, 214, 155, 0.08);
        color: #24d69b;
        border: 1px solid rgba(36, 214, 155, 0.22);
        font-size: 12px;
        font-weight: 900;
    }

    .shop-product-tags .sale-tag {
        color: #ffd66b;
        border-color: rgba(255, 214, 107, 0.36);
        background: rgba(255, 214, 107, 0.08);
    }

    .shop-product-tags .unavailable-tag {
        color: #ff8a7a;
        border-color: rgba(255, 90, 80, 0.32);
        background: rgba(255, 90, 80, 0.08);
    }

    .shop-product-tags .available-tag {
        color: #24d69b;
    }

.shop-product-card h2 {
    margin: 0 0 8px;
}

    .shop-product-card h2 a {
        color: #fff4dd;
        text-decoration: none;
    }

.shop-product-body p {
    color: #cdbd9e;
    min-height: 46px;
}

.shop-product-meta,
.shop-product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.shop-price strong {
    color: #fff4dd;
    font-size: 20px;
}

.shop-price span {
    color: #8f826d;
    text-decoration: line-through;
    margin-left: 8px;
}

.shop-rating {
    color: #ffd66b;
    font-weight: 900;
}

.shop-product-actions {
    margin-top: 14px;
}

    .shop-product-actions form {
        margin: 0;
    }

.product-details-card {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 26px;
    padding: 24px;
    margin-bottom: 18px;
}

.product-details-image {
    background: rgba(0,0,0,0.22);
    border-radius: 14px;
    padding: 24px;
    text-align: center;
}

    .product-details-image img {
        width: 100%;
        height: 300px;
        object-fit: contain;
    }

.product-details-info h1 {
    color: #fff4dd;
    margin: 10px 0;
    font-size: 36px;
}

.product-short {
    color: #cdbd9e;
    line-height: 1.6;
}

.product-price-box strong {
    font-size: 34px;
    color: #24d69b;
}

.product-price-box span {
    text-decoration: line-through;
    color: #8f826d;
    margin-left: 10px;
}

.product-rating {
    margin: 12px 0 18px;
    color: #ffd66b;
}

.product-actions-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cart-btn.large {
    min-height: 48px;
    padding: 0 22px;
}

.product-description-panel,
.reviews-panel,
.shop-empty {
    padding: 22px;
    margin-bottom: 18px;
}

    .product-description-panel h2,
    .reviews-panel h2 {
        margin-top: 0;
        color: #fff4dd;
    }

    .product-description-panel p,
    .product-description-panel li,
    .muted-text {
        color: #cdbd9e;
        line-height: 1.6;
    }

.reviews-list {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.review-card {
    padding: 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(172, 126, 71, 0.22);
}

    .review-card div {
        display: flex;
        justify-content: space-between;
        color: #fff4dd;
    }

        .review-card div span {
            color: #ffd66b;
        }

    .review-card p {
        color: #cdbd9e;
    }

    .review-card small {
        color: #8f826d;
    }

.review-form {
    display: grid;
    gap: 14px;
}

.cart-list {
    display: grid;
    gap: 12px;
}

.cart-item-card {
    display: grid;
    grid-template-columns: 92px 1fr auto auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    background: linear-gradient(180deg, rgba(42, 32, 24, 0.82), rgba(20, 15, 11, 0.9));
    border: 1px solid rgba(172, 126, 71, 0.36);
    border-radius: 14px;
}

    .cart-item-card img {
        width: 92px;
        height: 92px;
        object-fit: contain;
        background: rgba(0,0,0,0.22);
        border-radius: 10px;
    }

    .cart-item-card h2 {
        margin: 0 0 4px;
        color: #fff4dd;
    }

    .cart-item-card p,
    .cart-item-card span {
        color: #cdbd9e;
    }

    .cart-item-card strong {
        color: #24d69b;
        font-size: 20px;
    }

.cart-summary {
    margin-top: 16px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .cart-summary h2 {
        margin: 0;
        color: #fff4dd;
    }

@media (max-width: 1100px) {
    .shop-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-filter-form {
        grid-template-columns: 1fr 1fr;
    }

    .promo-strip {
        grid-template-columns: 1fr;
    }

    .product-details-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .shop-products-grid,
    .shop-filter-form {
        grid-template-columns: 1fr;
    }

    .cart-item-card {
        grid-template-columns: 80px 1fr;
    }

        .cart-item-card form,
        .cart-item-card > strong {
            grid-column: 1 / -1;
        }

    .cart-summary {
        display: grid;
        gap: 12px;
    }
}

.checkout-page {
    padding: 26px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 420px;
    gap: 18px;
}

.checkout-card,
.checkout-success-card {
    background: linear-gradient(180deg, rgba(38, 29, 22, 0.86), rgba(18, 13, 9, 0.92));
    border: 1px solid rgba(172, 126, 71, 0.42);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    color: #f3e6c8;
    padding: 24px;
}

    .checkout-card h2,
    .checkout-success-card h1,
    .checkout-success-card h2 {
        margin-top: 0;
        color: #fff4dd;
    }

.checkout-items {
    display: grid;
    gap: 10px;
}

.checkout-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(172, 126, 71, 0.22);
}

    .checkout-item.compact {
        grid-template-columns: 1fr;
    }

    .checkout-item img {
        width: 64px;
        height: 64px;
        object-fit: contain;
        background: rgba(0,0,0,0.22);
        border-radius: 8px;
    }

    .checkout-item strong {
        display: block;
        color: #fff4dd;
    }

    .checkout-item span {
        color: #cdbd9e;
    }

.checkout-total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(172, 126, 71, 0.32);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .checkout-total span {
        color: #cdbd9e;
    }

    .checkout-total strong {
        color: #24d69b;
        font-size: 26px;
    }

.checkout-note {
    margin-top: 14px;
    color: #9f927a;
    font-size: 13px;
    line-height: 1.45;
}

.checkout-success-card {
    max-width: 900px;
    margin: 0 auto;
}

    .checkout-success-card p {
        color: #cdbd9e;
        line-height: 1.6;
    }

.checkout-success-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}

    .checkout-success-grid div {
        padding: 14px;
        border-radius: 12px;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(172, 126, 71, 0.22);
    }

    .checkout-success-grid span {
        display: block;
        color: #9f927a;
        margin-bottom: 4px;
    }

    .checkout-success-grid strong {
        color: #fff4dd;
    }

.checkout-success-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .checkout-layout,
    .checkout-success-grid {
        grid-template-columns: 1fr;
    }
}

.admin-page {
    padding: 26px;
}

.admin-hero,
.admin-stat-card,
.admin-action-card,
.admin-table-card,
.admin-form-card {
    background: linear-gradient(180deg, rgba(38, 29, 22, 0.86), rgba(18, 13, 9, 0.92));
    border: 1px solid rgba(172, 126, 71, 0.42);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    color: #f3e6c8;
}

.admin-hero {
    padding: 26px;
    margin-bottom: 18px;
}

    .admin-hero.compact {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .admin-hero h1 {
        margin: 0 0 8px;
        color: #fff4dd;
        font-size: 38px;
        text-transform: uppercase;
    }

    .admin-hero p {
        margin: 0;
        color: #cdbd9e;
    }

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.admin-stat-card {
    padding: 20px;
}

    .admin-stat-card span {
        display: block;
        color: #cdbd9e;
        margin-bottom: 8px;
    }

    .admin-stat-card strong {
        color: #24d69b;
        font-size: 34px;
    }

.admin-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.admin-action-card {
    padding: 22px;
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

    .admin-action-card:hover {
        transform: translateY(-2px);
        border-color: rgba(36, 214, 155, 0.55);
    }

    .admin-action-card h2 {
        margin: 0 0 8px;
        color: #fff4dd;
    }

    .admin-action-card p {
        margin: 0;
        color: #cdbd9e;
    }

.admin-create-btn,
.admin-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    background: #24d69b;
    color: #07120d;
    font-weight: 1000;
    text-decoration: none;
}

.admin-table-card,
.admin-form-card {
    padding: 20px;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

    .admin-table th,
    .admin-table td {
        border: 1px solid rgba(172, 126, 71, 0.25);
        padding: 10px;
        vertical-align: middle;
    }

    .admin-table th {
        color: #fff4dd;
        background: rgba(0, 0, 0, 0.22);
        text-align: left;
    }

    .admin-table td {
        color: #e7dcc5;
    }

    .admin-table small {
        display: block;
        color: #9f927a;
        margin-top: 4px;
    }

.admin-product-thumb {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
}

.admin-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .admin-table-actions a,
    .admin-table-actions button {
        border: 1px solid rgba(36, 214, 155, 0.32);
        background: rgba(36, 214, 155, 0.08);
        color: #24d69b;
        border-radius: 8px;
        padding: 8px 10px;
        text-decoration: none;
        cursor: pointer;
        font-weight: 900;
    }

        .admin-table-actions button:hover,
        .admin-table-actions a:hover {
            background: rgba(36, 214, 155, 0.16);
        }

.admin-form-card {
    max-width: 900px;
    margin: 0 auto;
}

    .admin-form-card h1 {
        margin-top: 0;
        color: #fff4dd;
    }

.form-field textarea {
    width: 100%;
    box-sizing: border-box;
    background: #100c09;
    color: #f3e6c8;
    border: 1px solid rgba(172, 126, 71, 0.42);
    border-radius: 10px;
    padding: 12px;
    outline: none;
    resize: vertical;
}

    .form-field textarea:focus {
        border-color: #24d69b;
        box-shadow: 0 0 0 3px rgba(36, 214, 155, 0.12);
    }

.admin-checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(172, 126, 71, 0.22);
}

    .admin-checkbox-row label {
        color: #f3e6c8;
        font-weight: 900;
    }

.current-product-image {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(172, 126, 71, 0.22);
    margin-bottom: 16px;
}

    .current-product-image img {
        width: 86px;
        height: 86px;
        object-fit: contain;
        background: rgba(0,0,0,0.22);
        border-radius: 10px;
    }

    .current-product-image span {
        color: #cdbd9e;
    }

@media (max-width: 1000px) {
    .admin-stats-grid,
    .admin-actions-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .admin-stats-grid,
    .admin-actions-grid {
        grid-template-columns: 1fr;
    }

    .admin-hero.compact {
        display: grid;
    }
}

.main-header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 18px;
}

    .main-header-nav a {
        color: #d6c7aa;
        text-decoration: none;
        font-size: 13px;
        font-weight: 800;
        padding: 7px 9px;
        border-radius: 8px;
    }

        .main-header-nav a:hover {
            color: #24d69b;
            background: rgba(36, 214, 155, 0.08);
        }

.req-home-page {
    padding: 26px;
}

.req-hero,
.req-slider-section,
.req-about-section,
.req-promotions-section,
.req-search-section,
.req-contact-card,
.req-map-card,
.req-empty-block {
    background: linear-gradient(180deg, rgba(38, 29, 22, 0.86), rgba(18, 13, 9, 0.92));
    border: 1px solid rgba(172, 126, 71, 0.42);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    color: #f3e6c8;
}

.req-hero {
    min-height: 280px;
    display: flex;
    align-items: center;
    padding: 36px;
    margin-bottom: 18px;
    background: linear-gradient(90deg, rgba(8, 6, 4, 0.88), rgba(20, 14, 9, 0.62), rgba(8, 6, 4, 0.22)), url("../images/ui/deadlock-hero-bg.png");
    background-size: cover;
    background-position: center;
}

.req-kicker {
    margin: 0 0 8px;
    color: #24d69b;
    font-size: 13px;
    font-weight: 1000;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.req-hero h1 {
    margin: 0 0 12px;
    color: #fff4dd;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1;
}

    .req-hero h1 span {
        color: #24d69b;
    }

.req-hero p {
    max-width: 760px;
    color: #e0d2b8;
    line-height: 1.6;
}

.req-slider-section,
.req-about-section,
.req-promotions-section,
.req-search-section,
.req-contact-card,
.req-map-card,
.req-empty-block {
    padding: 24px;
    margin-bottom: 18px;
}

.req-section-heading {
    margin-bottom: 16px;
}

    .req-section-heading h2,
    .req-about-section h2,
    .req-search-section h2,
    .req-contact-card h2,
    .req-map-card h2 {
        margin: 0 0 8px;
        color: #fff4dd;
        font-size: 28px;
    }

    .req-section-heading p,
    .req-about-section p,
    .req-search-section p {
        margin: 0;
        color: #cdbd9e;
    }

.req-slider {
    position: relative;
}

.req-slider-window {
    overflow: hidden;
    border-radius: 14px;
}

.req-slider-track {
    display: flex;
    transition: transform 0.25s ease;
}

.req-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    padding: 22px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(172, 126, 71, 0.25);
    border-radius: 14px;
}

.req-slide-image {
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.25);
    border-radius: 12px;
}

    .req-slide-image img {
        max-width: 100%;
        height: 200px;
        object-fit: contain;
    }

.req-slide-content span {
    color: #24d69b;
    font-weight: 900;
}

.req-slide-content h3 {
    color: #fff4dd;
    font-size: 32px;
    margin: 8px 0;
}

.req-slide-content p {
    color: #cdbd9e;
    line-height: 1.6;
}

.req-slide-bottom {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
}

    .req-slide-bottom strong {
        color: #24d69b;
        font-size: 26px;
    }

    .req-slide-bottom a {
        color: #07120d;
        background: #24d69b;
        padding: 10px 14px;
        border-radius: 10px;
        text-decoration: none;
        font-weight: 1000;
    }

.req-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(36, 214, 155, 0.4);
    background: rgba(10, 7, 5, 0.86);
    color: #24d69b;
    font-size: 32px;
    cursor: pointer;
}

    .req-slider-arrow.prev {
        left: -12px;
    }

    .req-slider-arrow.next {
        right: -12px;
    }

.req-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

    .req-slider-dots button {
        width: 28px;
        height: 7px;
        border-radius: 999px;
        border: none;
        background: rgba(255,255,255,0.16);
        cursor: pointer;
    }

        .req-slider-dots button.active {
            background: #24d69b;
        }

.req-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.req-info-card {
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(42, 32, 24, 0.82), rgba(20, 15, 11, 0.9));
    border: 1px solid rgba(172, 126, 71, 0.36);
    color: #f3e6c8;
    text-decoration: none;
}

    .req-info-card span {
        display: inline-flex;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        background: rgba(36, 214, 155, 0.08);
        color: #24d69b;
        font-weight: 1000;
        font-size: 22px;
        margin-bottom: 12px;
    }

    .req-info-card h2 {
        margin: 0 0 8px;
        color: #fff4dd;
    }

    .req-info-card p {
        margin: 0;
        color: #cdbd9e;
        line-height: 1.45;
    }

.req-about-section {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
}

.req-about-points {
    display: grid;
    gap: 10px;
}

    .req-about-points div {
        padding: 14px;
        border-radius: 12px;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(172, 126, 71, 0.22);
    }

    .req-about-points strong {
        display: block;
        color: #fff4dd;
    }

    .req-about-points span {
        color: #cdbd9e;
    }

.req-promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.req-promo-card {
    padding: 18px;
    border-radius: 14px;
    background: rgba(36, 214, 155, 0.08);
    border: 1px solid rgba(36, 214, 155, 0.28);
}

    .req-promo-card b {
        color: #24d69b;
        font-size: 26px;
    }

    .req-promo-card h3 {
        color: #fff4dd;
        margin: 8px 0;
    }

    .req-promo-card p {
        color: #cdbd9e;
    }

    .req-promo-card small {
        color: #8f826d;
    }

.req-search-section {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 18px;
    align-items: center;
}

.req-search-form {
    display: flex;
    gap: 10px;
}

    .req-search-form input {
        flex: 1;
        background: #100c09;
        color: #f3e6c8;
        border: 1px solid rgba(172, 126, 71, 0.42);
        border-radius: 10px;
        padding: 13px;
        outline: none;
    }

        .req-search-form input:focus {
            border-color: #24d69b;
            box-shadow: 0 0 0 3px rgba(36, 214, 155, 0.12);
        }

    .req-search-form button {
        border: none;
        border-radius: 10px;
        background: #24d69b;
        color: #07120d;
        padding: 0 18px;
        font-weight: 1000;
        cursor: pointer;
    }

.req-contacts-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 18px;
}

.req-contact-card a {
    color: #24d69b;
    font-weight: 900;
    text-decoration: none;
    margin-right: 8px;
}

.req-contact-card p {
    color: #cdbd9e;
}

.req-map-card iframe {
    border-radius: 12px;
    filter: grayscale(0.2) contrast(0.9);
}

@media (max-width: 1100px) {
    .req-info-grid,
    .req-promo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .req-slide {
        grid-template-columns: 1fr;
    }

    .main-header-nav {
        display: none;
    }
}

@media (max-width: 760px) {
    .req-info-grid,
    .req-promo-grid,
    .req-about-section,
    .req-search-section,
    .req-contacts-section {
        grid-template-columns: 1fr;
    }

    .req-search-form {
        display: grid;
    }
}
/* Вертикальный слайдер популярных товаров */
.req-vertical-slider-section {
    padding: 18px;
    margin-bottom: 14px;
    background: linear-gradient(180deg, rgba(38, 29, 22, 0.86), rgba(18, 13, 9, 0.92));
    border: 1px solid rgba(172, 126, 71, 0.42);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    color: #f3e6c8;
}

.vertical-product-slider {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px;
    gap: 12px;
    align-items: stretch;
}

.vertical-slider-window {
    height: 185px;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(172, 126, 71, 0.25);
}

.vertical-slider-track {
    height: 100%;
    transition: transform 0.28s ease;
}

.vertical-slide {
    height: 185px;
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
    box-sizing: border-box;
}

.vertical-slide-image {
    height: 155px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.24);
    border-radius: 12px;
}

    .vertical-slide-image img {
        max-width: 100%;
        height: 130px;
        object-fit: contain;
    }

.vertical-slide-content {
    min-width: 0;
}

.vertical-slide-category {
    display: inline-block;
    color: #24d69b;
    font-size: 12px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.vertical-slide-content h3 {
    margin: 0 0 6px;
    color: #fff4dd;
    font-size: 24px;
    line-height: 1.15;
}

.vertical-slide-content p {
    margin: 0;
    max-width: 680px;
    color: #cdbd9e;
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vertical-slide-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

    .vertical-slide-bottom strong {
        color: #24d69b;
        font-size: 22px;
    }

    .vertical-slide-bottom a {
        display: inline-flex;
        align-items: center;
        min-height: 34px;
        padding: 0 12px;
        border-radius: 9px;
        background: #24d69b;
        color: #07120d;
        text-decoration: none;
        font-weight: 1000;
        font-size: 14px;
    }

.vertical-slider-controls {
    display: grid;
    grid-template-rows: 36px 1fr 36px;
    align-items: center;
    justify-items: center;
    gap: 8px;
}

.vertical-slider-arrow {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(36, 214, 155, 0.4);
    background: rgba(10, 7, 5, 0.86);
    color: #24d69b;
    font-weight: 1000;
    cursor: pointer;
}

    .vertical-slider-arrow:hover {
        background: rgba(36, 214, 155, 0.12);
        color: #ffffff;
    }

.vertical-slider-dots {
    display: grid;
    gap: 7px;
    justify-items: center;
}

    .vertical-slider-dots button {
        width: 8px;
        height: 22px;
        border-radius: 999px;
        border: none;
        background: rgba(255,255,255,0.16);
        cursor: pointer;
    }

        .vertical-slider-dots button.active {
            background: #24d69b;
        }

@media (max-width: 760px) {
    .vertical-product-slider {
        grid-template-columns: 1fr;
    }

    .vertical-slider-controls {
        grid-template-columns: 36px 1fr 36px;
        grid-template-rows: auto;
    }

    .vertical-slider-dots {
        display: flex;
        justify-content: center;
    }

        .vertical-slider-dots button {
            width: 22px;
            height: 7px;
        }

    .vertical-slide {
        grid-template-columns: 90px 1fr;
    }

    .vertical-slide-image {
        height: 130px;
    }

        .vertical-slide-image img {
            height: 105px;
        }
}

.req-info-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.req-info-card {
    min-height: 130px;
}

@media (max-width: 1100px) {
    .req-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .req-info-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Настройки темы сайта ===== */

.theme-toggle-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 520px) {
    .theme-toggle-group {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Стандартная тема */
body.theme-standard {
    background-color: #1a1510 !important;
}

/* Светлая тема */
body.theme-light {
    background-color: #e8dcc9 !important;
    color: #241a13 !important;
}

    body.theme-light .wiki-wrapper {
        background: rgba(232, 220, 201, 0.18);
    }

    body.theme-light .wiki-left-sidebar,
    body.theme-light .wiki-main-container,
    body.theme-light .render-body,
    body.theme-light .settings-panel {
        background: rgba(238, 226, 207, 0.92) !important;
        color: #241a13 !important;
    }

    body.theme-light .wiki-content-header,
    body.theme-light .wiki-top-bar {
        background: rgba(35, 25, 18, 0.92) !important;
    }

    body.theme-light .sidebar-block,
    body.theme-light .req-hero,
    body.theme-light .req-vertical-slider-section,
    body.theme-light .req-about-section,
    body.theme-light .req-promotions-section,
    body.theme-light .req-search-section,
    body.theme-light .req-contact-card,
    body.theme-light .req-map-card,
    body.theme-light .req-empty-block,
    body.theme-light .req-info-card,
    body.theme-light .shop-hero,
    body.theme-light .shop-filter-panel,
    body.theme-light .shop-product-card,
    body.theme-light .product-details-card,
    body.theme-light .product-description-panel,
    body.theme-light .reviews-panel,
    body.theme-light .cart-summary,
    body.theme-light .shop-empty,
    body.theme-light .cart-item-card,
    body.theme-light .checkout-card,
    body.theme-light .checkout-success-card,
    body.theme-light .account-card,
    body.theme-light .profile-header-card,
    body.theme-light .profile-panel,
    body.theme-light .admin-hero,
    body.theme-light .admin-stat-card,
    body.theme-light .admin-action-card,
    body.theme-light .admin-table-card,
    body.theme-light .admin-form-card,
    body.theme-light .item-infobox,
    body.theme-light .wiki-main {
        background: linear-gradient(180deg, rgba(255, 248, 234, 0.94), rgba(231, 216, 191, 0.94)) !important;
        border-color: rgba(128, 85, 39, 0.45) !important;
        color: #241a13 !important;
    }

        body.theme-light h1,
        body.theme-light h2,
        body.theme-light h3,
        body.theme-light .req-hero h1,
        body.theme-light .req-section-heading h2,
        body.theme-light .req-info-card h2,
        body.theme-light .shop-hero h1,
        body.theme-light .account-card h1,
        body.theme-light .admin-hero h1 {
            color: #1d120b !important;
            text-shadow: none !important;
        }

        body.theme-light p,
        body.theme-light li,
        body.theme-light span,
        body.theme-light .req-hero p,
        body.theme-light .req-section-heading p,
        body.theme-light .req-info-card p,
        body.theme-light .shop-product-body p,
        body.theme-light .product-short,
        body.theme-light .checkout-note,
        body.theme-light .muted-text {
            color: #4b3928 !important;
        }

    body.theme-light a {
        color: #007e59;
    }

    body.theme-light .logo-title,
    body.theme-light .logo-subtitle {
        color: #fff1cf !important;
    }

    body.theme-light .settings-sidebar-button,
    body.theme-light .account-submit-btn,
    body.theme-light .cart-btn,
    body.theme-light .cart-checkout-btn,
    body.theme-light .req-search-form button,
    body.theme-light .vertical-slide-bottom a {
        background: #0bbf86 !important;
        color: #06110c !important;
    }

    body.theme-light .form-field input,
    body.theme-light .form-field select,
    body.theme-light .form-field textarea,
    body.theme-light .shop-field input,
    body.theme-light .shop-field select,
    body.theme-light .top-search-form input,
    body.theme-light .req-search-form input {
        background: #fff9ef !important;
        color: #241a13 !important;
        border-color: rgba(128, 85, 39, 0.45) !important;
    }

    body.theme-light .settings-toggle {
        background: rgba(85, 58, 35, 0.12) !important;
        color: #241a13 !important;
        border-color: rgba(128, 85, 39, 0.35) !important;
    }

        body.theme-light .settings-toggle.active {
            background: #0bbf86 !important;
            color: #06110c !important;
        }

/* Темная тема */
body.theme-dark {
    background-color: #070503 !important;
    color: #fff2d6 !important;
}

    body.theme-dark .wiki-wrapper {
        background: rgba(0, 0, 0, 0.28);
    }

    body.theme-dark .wiki-left-sidebar,
    body.theme-dark .wiki-main-container,
    body.theme-dark .render-body,
    body.theme-dark .settings-panel {
        background: rgba(8, 5, 3, 0.96) !important;
        color: #fff2d6 !important;
    }

    body.theme-dark .wiki-content-header,
    body.theme-dark .wiki-top-bar {
        background: rgba(0, 0, 0, 0.96) !important;
    }

    body.theme-dark .sidebar-block,
    body.theme-dark .req-hero,
    body.theme-dark .req-vertical-slider-section,
    body.theme-dark .req-about-section,
    body.theme-dark .req-promotions-section,
    body.theme-dark .req-search-section,
    body.theme-dark .req-contact-card,
    body.theme-dark .req-map-card,
    body.theme-dark .req-empty-block,
    body.theme-dark .req-info-card,
    body.theme-dark .shop-hero,
    body.theme-dark .shop-filter-panel,
    body.theme-dark .shop-product-card,
    body.theme-dark .product-details-card,
    body.theme-dark .product-description-panel,
    body.theme-dark .reviews-panel,
    body.theme-dark .cart-summary,
    body.theme-dark .shop-empty,
    body.theme-dark .cart-item-card,
    body.theme-dark .checkout-card,
    body.theme-dark .checkout-success-card,
    body.theme-dark .account-card,
    body.theme-dark .profile-header-card,
    body.theme-dark .profile-panel,
    body.theme-dark .admin-hero,
    body.theme-dark .admin-stat-card,
    body.theme-dark .admin-action-card,
    body.theme-dark .admin-table-card,
    body.theme-dark .admin-form-card,
    body.theme-dark .item-infobox,
    body.theme-dark .wiki-main {
        background: linear-gradient(180deg, rgba(13, 9, 6, 0.98), rgba(3, 2, 1, 0.98)) !important;
        border-color: rgba(45, 214, 155, 0.22) !important;
        color: #fff2d6 !important;
    }

    body.theme-dark h1,
    body.theme-dark h2,
    body.theme-dark h3 {
        color: #fff7df !important;
    }

    body.theme-dark p,
    body.theme-dark li,
    body.theme-dark span {
        color: #d6c5a6;
    }

    body.theme-dark a {
        color: #24d69b;
    }

    body.theme-dark .form-field input,
    body.theme-dark .form-field select,
    body.theme-dark .form-field textarea,
    body.theme-dark .shop-field input,
    body.theme-dark .shop-field select,
    body.theme-dark .top-search-form input,
    body.theme-dark .req-search-form input {
        background: #030201 !important;
        color: #fff2d6 !important;
        border-color: rgba(36, 214, 155, 0.26) !important;
    }

    body.theme-dark .settings-toggle {
        background: rgba(255, 255, 255, 0.04) !important;
        color: #d6c5a6 !important;
        border-color: rgba(255, 255, 255, 0.12) !important;
    }

        body.theme-dark .settings-toggle.active {
            background: #24d69b !important;
            color: #06110c !important;
        }

/* Чтобы служебные подписи в теме не выглядели блекло */
body.theme-light .vertical-slide-category,
body.theme-light .req-kicker,
body.theme-light .profile-nickname,
body.theme-light .admin-stat-card strong,
body.theme-light .shop-rating,
body.theme-light .product-price-box strong,
body.theme-light .checkout-total strong,
body.theme-light .vertical-slide-bottom strong {
    color: #008c63 !important;
}

body.theme-dark .vertical-slide-category,
body.theme-dark .req-kicker,
body.theme-dark .profile-nickname,
body.theme-dark .admin-stat-card strong,
body.theme-dark .shop-rating,
body.theme-dark .product-price-box strong,
body.theme-dark .checkout-total strong,
body.theme-dark .vertical-slide-bottom strong {
    color: #24d69b !important;
}

/* Фикс открытия панели настроек */
.settings-panel-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

    .settings-panel-backdrop.is-open,
    .settings-panel-backdrop.open {
        opacity: 1;
        pointer-events: auto;
    }

.settings-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9001;
    width: min(460px, 92vw);
    height: 100vh;
    overflow-y: auto;
    background: #17100b;
    border-left: 1px solid rgba(172, 126, 71, 0.42);
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.45);
    transform: translateX(105%);
    transition: transform 0.22s ease;
    padding: 18px;
    box-sizing: border-box;
}

    .settings-panel.is-open,
    .settings-panel.open {
        transform: translateX(0);
    }

.settings-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid rgba(172, 126, 71, 0.35);
    margin-bottom: 18px;
    padding-bottom: 12px;
}

    .settings-panel-header h2 {
        margin: 0;
        color: #fff4dd;
    }

#closeSettingsPanel {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255, 231, 190, 0.25);
    background: rgba(255, 255, 255, 0.06);
    color: #fff4dd;
    font-size: 24px;
    cursor: pointer;
}

.settings-panel-section {
    padding: 16px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(172, 126, 71, 0.36);
}

    .settings-panel-section h3 {
        margin: 0 0 8px;
        color: #fff4dd;
    }

    .settings-panel-section p {
        margin: 0 0 14px;
        color: #cdbd9e;
        line-height: 1.45;
    }

.settings-toggle-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.theme-toggle-group {
    grid-template-columns: 1fr;
}

@media (min-width: 520px) {
    .theme-toggle-group {
        grid-template-columns: repeat(3, 1fr);
    }
}

.settings-toggle {
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255, 231, 190, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #f3e6c8;
    font-weight: 900;
    cursor: pointer;
}

    .settings-toggle.active {
        background: #24d69b;
        color: #07120d;
        border-color: #24d69b;
    }
/* ===== Режим для слабовидящих ===== */

.accessibility-toggle-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

body.accessibility-large {
    font-size: 19px !important;
    line-height: 1.7 !important;
}

    body.accessibility-large .wiki-main-container,
    body.accessibility-large .render-body,
    body.accessibility-large .wiki-left-sidebar,
    body.accessibility-large .settings-panel {
        font-size: 19px !important;
    }

    body.accessibility-large h1 {
        font-size: clamp(42px, 4.8vw, 66px) !important;
        line-height: 1.12 !important;
    }

    body.accessibility-large h2 {
        font-size: 32px !important;
        line-height: 1.2 !important;
    }

    body.accessibility-large h3 {
        font-size: 24px !important;
        line-height: 1.25 !important;
    }

    body.accessibility-large p,
    body.accessibility-large li,
    body.accessibility-large span,
    body.accessibility-large a,
    body.accessibility-large label,
    body.accessibility-large input,
    body.accessibility-large select,
    body.accessibility-large textarea,
    body.accessibility-large button {
        font-size: 18px !important;
    }

    body.accessibility-large .logo-title {
        font-size: 33px !important;
    }

    body.accessibility-large .logo-subtitle {
        font-size: 21px !important;
        letter-spacing: 8px !important;
    }

    body.accessibility-large .sidebar-block a,
    body.accessibility-large .user-link,
    body.accessibility-large .main-header-nav a {
        font-size: 17px !important;
        padding: 10px 12px !important;
    }

    body.accessibility-large .settings-sidebar-button,
    body.accessibility-large .settings-toggle,
    body.accessibility-large .account-submit-btn,
    body.accessibility-large .cart-btn,
    body.accessibility-large .details-btn,
    body.accessibility-large .cart-checkout-btn,
    body.accessibility-large .admin-create-btn,
    body.accessibility-large .vertical-slide-bottom a {
        min-height: 48px !important;
        font-size: 18px !important;
        border-width: 2px !important;
    }

    body.accessibility-large .settings-panel {
        width: min(560px, 96vw) !important;
    }

    body.accessibility-large .settings-panel-section {
        border-width: 2px !important;
    }

    body.accessibility-large .top-search-form input,
    body.accessibility-large .form-field input,
    body.accessibility-large .form-field select,
    body.accessibility-large .form-field textarea,
    body.accessibility-large .shop-field input,
    body.accessibility-large .shop-field select {
        min-height: 48px !important;
        font-size: 18px !important;
        border-width: 2px !important;
    }

    body.accessibility-large a {
        text-decoration: underline !important;
        text-underline-offset: 3px;
    }

    body.accessibility-large .item-chip,
    body.accessibility-large .hero-card,
    body.accessibility-large .shop-product-card,
    body.accessibility-large .req-info-card,
    body.accessibility-large .admin-action-card,
    body.accessibility-large .cart-item-card {
        border-width: 2px !important;
    }

    body.accessibility-large .item-chip {
        padding: 8px 10px !important;
    }

    body.accessibility-large .item-chip-name {
        font-size: 17px !important;
    }

    body.accessibility-large .req-hero,
    body.accessibility-large .req-vertical-slider-section,
    body.accessibility-large .req-about-section,
    body.accessibility-large .req-promotions-section,
    body.accessibility-large .req-contact-card,
    body.accessibility-large .req-map-card,
    body.accessibility-large .shop-hero,
    body.accessibility-large .shop-filter-panel,
    body.accessibility-large .product-details-card,
    body.accessibility-large .admin-hero,
    body.accessibility-large .account-card,
    body.accessibility-large .profile-panel {
        border-width: 2px !important;
        box-shadow: 0 0 0 2px rgba(36, 214, 155, 0.12), 0 22px 55px rgba(0, 0, 0, 0.35) !important;
    }

    /* Контраст для стандартной и тёмной темы */
    body.accessibility-large:not(.theme-light) {
        color: #fff7df !important;
    }

        body.accessibility-large:not(.theme-light) p,
        body.accessibility-large:not(.theme-light) li,
        body.accessibility-large:not(.theme-light) span {
            color: #f0dfbd;
        }

        body.accessibility-large:not(.theme-light) a {
            color: #39ffbd !important;
        }

        body.accessibility-large:not(.theme-light) .settings-sidebar-button,
        body.accessibility-large:not(.theme-light) .settings-toggle.active,
        body.accessibility-large:not(.theme-light) .account-submit-btn,
        body.accessibility-large:not(.theme-light) .cart-btn,
        body.accessibility-large:not(.theme-light) .cart-checkout-btn {
            background: #39ffbd !important;
            color: #030604 !important;
        }

/* Контраст для светлой темы */
body.theme-light.accessibility-large {
    color: #120c07 !important;
}

    body.theme-light.accessibility-large p,
    body.theme-light.accessibility-large li,
    body.theme-light.accessibility-large span {
        color: #24170e !important;
    }

    body.theme-light.accessibility-large a {
        color: #005f45 !important;
    }

    body.theme-light.accessibility-large .settings-sidebar-button,
    body.theme-light.accessibility-large .settings-toggle.active,
    body.theme-light.accessibility-large .account-submit-btn,
    body.theme-light.accessibility-large .cart-btn,
    body.theme-light.accessibility-large .cart-checkout-btn {
        background: #008f66 !important;
        color: #ffffff !important;
    }
/* ===== Общая адаптация сайта под телефон ===== */

@media (max-width: 900px) {
    body {
        margin-bottom: 0;
        overflow-x: hidden;
    }

    .wiki-layout {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }

    .wiki-left-sidebar {
        width: 100% !important;
        position: relative !important;
        min-height: auto !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(172, 126, 71, 0.35);
        padding-bottom: 14px;
    }

    .logo-container {
        padding: 16px 12px 8px !important;
    }

    .logo-link {
        justify-content: center;
    }

    .settings-sidebar-button {
        width: calc(100% - 24px) !important;
        margin: 10px 12px !important;
    }

    .sidebar-block {
        margin: 12px !important;
        padding: 12px !important;
    }

        .sidebar-block a {
            padding: 10px 12px !important;
            font-size: 15px !important;
        }

    .wiki-main-container {
        width: 100% !important;
        min-width: 0 !important;
    }

    .wiki-content-header {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 12px !important;
    }

    .site-header-title {
        text-align: center;
    }

    .top-search-form {
        width: 100% !important;
        display: flex !important;
    }

        .top-search-form input {
            width: 100% !important;
            min-width: 0 !important;
        }

    .render-body {
        padding: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .wiki-row {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .wiki-main,
    .wiki-sidebar {
        width: 100% !important;
        min-width: 0 !important;
    }

    .wiki-sidebar {
        margin-top: 18px;
    }

    .item-infobox {
        max-width: 100% !important;
    }

    .item-infobox-image img {
        max-width: 100% !important;
    }
}

/* Очень маленькие экраны */
@media (max-width: 520px) {
    .req-home-page,
    .shop-page,
    .product-details-page,
    .cart-page,
    .checkout-page,
    .account-page,
    .profile-page,
    .admin-page {
        padding: 12px !important;
    }

    .req-hero {
        min-height: 170px !important;
        padding: 20px !important;
    }

        .req-hero h1 {
            font-size: 30px !important;
        }

    .vertical-product-slider {
        grid-template-columns: 1fr !important;
    }

    .vertical-slider-window {
        height: 245px !important;
    }

    .vertical-slide {
        height: 245px !important;
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .vertical-slide-image {
        height: 100px !important;
    }

        .vertical-slide-image img {
            height: 90px !important;
        }

    .vertical-slide-bottom {
        justify-content: center;
    }

    .req-info-grid {
        grid-template-columns: 1fr !important;
    }

    .req-contacts-section,
    .req-about-section,
    .req-promo-grid,
    .checkout-layout,
    .profile-grid,
    .form-grid {
        grid-template-columns: 1fr !important;
    }

    .shop-products-grid {
        grid-template-columns: 1fr !important;
    }

    .product-details-card {
        grid-template-columns: 1fr !important;
    }

    .cart-item-card {
        grid-template-columns: 76px 1fr !important;
    }

        .cart-item-card strong,
        .cart-item-card form {
            grid-column: 1 / -1;
        }

    .admin-stats-grid,
    .admin-actions-grid {
        grid-template-columns: 1fr !important;
    }

    .admin-table-card {
        overflow-x: auto !important;
    }

    .admin-table {
        min-width: 760px;
    }

    .settings-panel {
        width: 100vw !important;
    }
}

/* ===== Подсказки верхнего поиска ===== */

.top-search-form {
    position: relative;
}

.top-search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(460px, 90vw);
    max-height: 420px;
    overflow-y: auto;
    z-index: 9500;
    display: none;
    padding: 8px;
    border-radius: 14px;
    background: rgba(14, 9, 6, 0.98);
    border: 1px solid rgba(172, 126, 71, 0.46);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

    .top-search-suggestions.is-open {
        display: grid;
        gap: 6px;
    }

.top-search-suggestion-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    align-items: center;
    padding: 9px;
    border-radius: 10px;
    text-decoration: none;
    color: #f3e6c8;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid transparent;
}

    .top-search-suggestion-item:hover {
        background: rgba(36, 214, 155, 0.09);
        border-color: rgba(36, 214, 155, 0.32);
    }

    .top-search-suggestion-item img {
        width: 42px;
        height: 42px;
        object-fit: contain;
        border-radius: 8px;
        background: rgba(0, 0, 0, 0.28);
    }

    .top-search-suggestion-item strong {
        display: block;
        color: #fff4dd;
        font-size: 14px;
        line-height: 1.2;
    }

    .top-search-suggestion-item span {
        display: block;
        color: #24d69b;
        font-size: 12px;
        font-weight: 900;
        margin-top: 3px;
    }

/* Подсказки в светлой теме */
body.theme-light .top-search-suggestions {
    background: rgba(255, 248, 234, 0.98);
    border-color: rgba(128, 85, 39, 0.45);
}

body.theme-light .top-search-suggestion-item {
    color: #241a13;
    background: rgba(85, 58, 35, 0.06);
}

    body.theme-light .top-search-suggestion-item strong {
        color: #1d120b;
    }

    body.theme-light .top-search-suggestion-item span {
        color: #007e59;
    }

/* Подсказки в режиме слабовидящих */
body.accessibility-large .top-search-suggestions {
    width: min(560px, 94vw);
}

body.accessibility-large .top-search-suggestion-item {
    grid-template-columns: 54px 1fr;
    padding: 12px;
    border-width: 2px;
}

    body.accessibility-large .top-search-suggestion-item img {
        width: 54px;
        height: 54px;
    }

    body.accessibility-large .top-search-suggestion-item strong {
        font-size: 18px;
    }

    body.accessibility-large .top-search-suggestion-item span {
        font-size: 15px;
    }

@media (max-width: 900px) {
    .top-search-suggestions {
        left: 0;
        right: auto;
        width: 100%;
    }
}
/* ===== Подвал сайта ===== */

.site-footer {
    margin: 26px;
    margin-top: 14px;
    padding: 22px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(38, 29, 22, 0.88), rgba(12, 8, 5, 0.95));
    border: 1px solid rgba(172, 126, 71, 0.42);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    color: #f3e6c8;
}

.site-footer-main {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr 1fr;
    gap: 18px;
}

.site-footer-brand strong {
    display: block;
    color: #fff4dd;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-footer-brand span {
    display: block;
    margin-top: 6px;
    color: #cdbd9e;
}

.site-footer-column h3 {
    margin: 0 0 10px;
    color: #fff4dd;
    font-size: 18px;
}

.site-footer-column p {
    margin: 0 0 8px;
    color: #cdbd9e;
}

.site-footer a {
    color: #24d69b;
    text-decoration: none;
    font-weight: 900;
}

    .site-footer a:hover {
        text-decoration: underline;
        text-underline-offset: 3px;
    }

.site-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(172, 126, 71, 0.3);
    color: #8f826d;
    font-size: 13px;
}

/* Footer в светлой теме */
body.theme-light .site-footer {
    background: linear-gradient(180deg, rgba(255, 248, 234, 0.94), rgba(231, 216, 191, 0.94)) !important;
    border-color: rgba(128, 85, 39, 0.45) !important;
    color: #241a13 !important;
}

body.theme-light .site-footer-brand strong,
body.theme-light .site-footer-column h3 {
    color: #1d120b !important;
}

body.theme-light .site-footer-brand span,
body.theme-light .site-footer-column p {
    color: #4b3928 !important;
}

body.theme-light .site-footer a {
    color: #007e59 !important;
}

/* Footer в тёмной теме */
body.theme-dark .site-footer {
    background: linear-gradient(180deg, rgba(13, 9, 6, 0.98), rgba(3, 2, 1, 0.98)) !important;
    border-color: rgba(45, 214, 155, 0.22) !important;
}

/* Footer в режиме слабовидящих */
body.accessibility-large .site-footer {
    border-width: 2px !important;
}

body.accessibility-large .site-footer-brand strong {
    font-size: 30px !important;
}

body.accessibility-large .site-footer-column h3 {
    font-size: 23px !important;
}

body.accessibility-large .site-footer-column p,
body.accessibility-large .site-footer a,
body.accessibility-large .site-footer-bottom span {
    font-size: 18px !important;
}

@media (max-width: 1000px) {
    .site-footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .site-footer {
        margin: 12px;
        padding: 18px;
    }

    .site-footer-main {
        grid-template-columns: 1fr;
    }

    .site-footer-bottom {
        display: grid;
    }
}
.item-infobox-bonus-line {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    color: #fff4dd;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

    .item-infobox-bonus-line strong {
        color: #7df7d2;
        font-weight: 1000;
    }

    .item-infobox-bonus-line span {
        color: #fff4dd;
        font-weight: 800;
    }

/* Синие изменённые значения в усиленной версии предмета */
.item-infobox.is-enhanced .enhanced-changed-value {
    color: #10b8ff !important;
    font-weight: 1000;
    text-shadow: 0 0 4px rgba(16, 184, 255, 0.85), 0 0 8px rgba(16, 184, 255, 0.55);
}
/* Убираем фейковые wiki-ссылки "править | править код" */
.wiki-edit-links {
    display: none !important;
}
/* Guide pages: Mechanics / Movement */
.guide-page {
    display: grid;
    gap: 22px;
    color: #eadfc8;
}

.guide-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 22px;
    min-height: 280px;
    padding: 34px;
    border: 1px solid rgba(199, 134, 60, 0.42);
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(110deg, rgba(15, 11, 8, 0.96), rgba(35, 24, 16, 0.76)), url("/images/ui/deadlock-city-bg.png") center/cover no-repeat;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.32);
}

.guide-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 24%, rgba(36, 214, 155, 0.18), transparent 32%);
    pointer-events: none;
}

.guide-hero-mechanics { border-color: rgba(165, 124, 224, 0.48); }
.guide-hero-movement { border-color: rgba(211, 95, 76, 0.5); }

.guide-hero-content,
.guide-hero-aside {
    position: relative;
    z-index: 1;
}

.guide-kicker {
    margin: 0 0 10px;
    color: #24d69b;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: 13px;
}

.guide-hero h1 {
    margin: 0 0 14px;
    color: #fff4dd;
    font-size: 52px;
    line-height: 1;
}

.guide-hero p {
    max-width: 780px;
    margin: 0;
    color: #d9c6a6;
    line-height: 1.7;
    font-size: 17px;
}

.guide-hero-aside {
    align-self: end;
    padding: 20px;
    border: 1px solid rgba(255, 231, 190, 0.18);
    border-radius: 8px;
    background: rgba(8, 6, 4, 0.72);
}

.guide-hero-aside span,
.guide-overview-grid span,
.guide-section-heading p,
.guide-timeline span {
    color: #24d69b;
    font-weight: 1000;
}

.guide-hero-aside strong {
    display: block;
    margin: 8px 0;
    color: #fff4dd;
    font-size: 20px;
    line-height: 1.2;
}

.guide-hero-aside small {
    color: #bda987;
    font-weight: 800;
}

.guide-overview-grid,
.guide-card-grid,
.guide-object-grid,
.guide-combo-grid {
    display: grid;
    gap: 16px;
}

.guide-overview-grid,
.guide-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-card-grid-four,
.guide-object-grid,
.guide-combo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guide-overview-grid article,
.guide-card,
.guide-panel,
.guide-callout,
.guide-timeline,
.guide-object-grid article,
.guide-combo-grid article,
.guide-advice-list div,
.guide-sources {
    border: 1px solid rgba(141, 103, 61, 0.42);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(38, 29, 22, 0.78), rgba(18, 13, 9, 0.9));
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.guide-overview-grid article,
.guide-card,
.guide-panel,
.guide-callout,
.guide-object-grid article,
.guide-combo-grid article,
.guide-advice-list div,
.guide-sources {
    padding: 20px;
}

.guide-section {
    display: grid;
    gap: 16px;
}

.guide-section-heading {
    display: grid;
    gap: 6px;
}

.guide-section-heading p {
    margin: 0;
    text-transform: uppercase;
    font-size: 12px;
}

.guide-section-heading h2 {
    margin: 0;
    color: #fff4dd;
    font-size: 30px;
    line-height: 1.15;
}

.guide-overview-grid h2,
.guide-card h3,
.guide-panel h3,
.guide-object-grid h3 {
    margin: 6px 0 10px;
    color: #fff4dd;
    font-size: 21px;
}

.guide-combo-grid strong,
.guide-advice-list strong,
.guide-callout strong {
    display: block;
    color: #fff4dd;
    font-size: 18px;
    margin-bottom: 8px;
}

.guide-overview-grid p,
.guide-card p,
.guide-panel p,
.guide-callout p,
.guide-object-grid p,
.guide-combo-grid p,
.guide-advice-list p,
.guide-wide-text {
    margin: 0;
    color: #d5c5a9;
    line-height: 1.6;
}

.guide-card.compact p {
    font-size: 14px;
}

.guide-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.guide-panel ul {
    margin: 14px 0 0;
    padding-left: 20px;
    color: #d5c5a9;
    line-height: 1.55;
}

.guide-callout {
    border-color: rgba(36, 214, 155, 0.38);
    background: linear-gradient(180deg, rgba(29, 63, 48, 0.5), rgba(19, 15, 10, 0.9));
}

.guide-timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
}

.guide-timeline div {
    padding: 20px;
    border-right: 1px solid rgba(255, 231, 190, 0.12);
}

.guide-timeline div:last-child {
    border-right: 0;
}

.guide-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.guide-tag-list span {
    padding: 9px 12px;
    border: 1px solid rgba(36, 214, 155, 0.28);
    border-radius: 999px;
    color: #dff8ed;
    background: rgba(36, 214, 155, 0.08);
    font-weight: 900;
}

.guide-wide-text {
    padding: 20px;
    border-left: 3px solid #24d69b;
    background: rgba(255, 255, 255, 0.035);
}

.guide-advice-list {
    display: grid;
    gap: 12px;
}

.guide-sources ul {
    margin: 0;
    padding-left: 20px;
    color: #d5c5a9;
    line-height: 1.7;
}

.guide-sources a {
    color: #24d69b;
    font-weight: 900;
    text-decoration: none;
}

.guide-sources a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.theme-light .guide-page { color: #302317; }

body.theme-light .guide-hero,
body.theme-light .guide-overview-grid article,
body.theme-light .guide-card,
body.theme-light .guide-panel,
body.theme-light .guide-callout,
body.theme-light .guide-timeline,
body.theme-light .guide-object-grid article,
body.theme-light .guide-combo-grid article,
body.theme-light .guide-advice-list div,
body.theme-light .guide-sources {
    background: linear-gradient(180deg, rgba(255, 248, 234, 0.96), rgba(232, 216, 190, 0.96)) !important;
    border-color: rgba(128, 85, 39, 0.45) !important;
    color: #241a13 !important;
}

body.theme-light .guide-hero h1,
body.theme-light .guide-section-heading h2,
body.theme-light .guide-card h3,
body.theme-light .guide-panel h3,
body.theme-light .guide-object-grid h3,
body.theme-light .guide-hero-aside strong,
body.theme-light .guide-combo-grid strong,
body.theme-light .guide-advice-list strong,
body.theme-light .guide-callout strong {
    color: #1d120b !important;
}

body.theme-light .guide-hero p,
body.theme-light .guide-card p,
body.theme-light .guide-panel p,
body.theme-light .guide-callout p,
body.theme-light .guide-object-grid p,
body.theme-light .guide-combo-grid p,
body.theme-light .guide-advice-list p,
body.theme-light .guide-wide-text,
body.theme-light .guide-panel li {
    color: #493827 !important;
}

body.theme-light .guide-hero-aside {
    background: rgba(255, 250, 238, 0.82);
}

body.theme-light .guide-tag-list span {
    color: #07543f !important;
    background: rgba(0, 126, 89, 0.08);
    border-color: rgba(0, 126, 89, 0.28);
}

body.theme-light .guide-sources a { color: #007e59 !important; }

body.theme-dark .guide-hero,
body.theme-dark .guide-overview-grid article,
body.theme-dark .guide-card,
body.theme-dark .guide-panel,
body.theme-dark .guide-callout,
body.theme-dark .guide-timeline,
body.theme-dark .guide-object-grid article,
body.theme-dark .guide-combo-grid article,
body.theme-dark .guide-advice-list div,
body.theme-dark .guide-sources {
    background-color: rgba(5, 4, 3, 0.96) !important;
    border-color: rgba(45, 214, 155, 0.22) !important;
}

body.accessibility-large .guide-hero,
body.accessibility-large .guide-overview-grid article,
body.accessibility-large .guide-card,
body.accessibility-large .guide-panel,
body.accessibility-large .guide-callout,
body.accessibility-large .guide-timeline,
body.accessibility-large .guide-object-grid article,
body.accessibility-large .guide-combo-grid article,
body.accessibility-large .guide-advice-list div,
body.accessibility-large .guide-sources {
    border-width: 2px !important;
}

body.accessibility-large .guide-hero h1 { font-size: 58px !important; }
body.accessibility-large .guide-section-heading h2 { font-size: 34px !important; }

body.accessibility-large .guide-page p,
body.accessibility-large .guide-page li,
body.accessibility-large .guide-page a,
body.accessibility-large .guide-tag-list span {
    font-size: 19px !important;
}

@media (max-width: 1100px) {
    .guide-hero,
    .guide-split,
    .guide-overview-grid,
    .guide-card-grid,
    .guide-card-grid-four,
    .guide-object-grid,
    .guide-combo-grid,
    .guide-timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .guide-page { gap: 16px; }

    .guide-hero,
    .guide-split,
    .guide-overview-grid,
    .guide-card-grid,
    .guide-card-grid-four,
    .guide-object-grid,
    .guide-combo-grid,
    .guide-timeline {
        grid-template-columns: 1fr;
    }

    .guide-hero {
        min-height: 0;
        padding: 24px 18px;
    }

    .guide-hero h1 { font-size: 40px; }
    .guide-hero p { font-size: 15px; }

    .guide-timeline div {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 231, 190, 0.12);
    }

    .guide-timeline div:last-child { border-bottom: 0; }
}

.guide-hero-map {
    border-color: rgba(114, 189, 232, 0.5);
}

.guide-hero-lore {
    border-color: rgba(216, 192, 106, 0.5);
}

.guide-hero-street-brawl {
    border-color: rgba(68, 214, 136, 0.5);
}

.hero-profile-page .wiki-main {
    overflow: hidden;
}

.hero-profile-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: end;
    padding: 26px;
    margin-bottom: 24px;
    border: 1px solid rgba(198, 151, 82, 0.42);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(12, 10, 8, 0.96), rgba(36, 25, 18, 0.9)),
        radial-gradient(circle at top right, rgba(60, 220, 150, 0.18), transparent 34%);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.hero-profile-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: #49d98a;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-profile-page .wiki-page-title {
    margin-bottom: 10px;
}

.hero-profile-lead {
    max-width: 780px;
    margin: 0;
    color: #ead8b9;
    font-size: 1.08rem;
    line-height: 1.75;
}

.hero-profile-role-chip {
    min-width: 150px;
    padding: 14px 16px;
    border: 1px solid rgba(73, 217, 138, 0.38);
    border-radius: 8px;
    background: rgba(4, 20, 13, 0.72);
    text-align: right;
}

.hero-profile-role-chip span,
.hero-profile-section-head span,
.hero-creator-favorite span {
    display: block;
    color: #49d98a;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-profile-role-chip strong {
    display: block;
    margin-top: 4px;
    color: #fff4dd;
    font-size: 1.12rem;
}

.hero-profile-section {
    margin-top: 28px;
}

.hero-profile-section-head {
    margin-bottom: 16px;
}

.hero-profile-section-head h2 {
    margin: 4px 0 0;
    color: #fff4dd;
    font-size: 1.55rem;
}

.hero-profile-story-grid {
    display: grid;
    gap: 16px;
}

.hero-profile-story-card,
.hero-profile-role-panel,
.hero-creator-favorite {
    padding: 20px;
    border: 1px solid rgba(198, 151, 82, 0.34);
    border-radius: 8px;
    background: rgba(24, 18, 13, 0.72);
}

.hero-profile-story-card h3 {
    margin: 0 0 8px;
    color: #ffd27a;
    font-size: 1.08rem;
}

.hero-profile-story-card p,
.hero-profile-role-panel p,
.hero-creator-favorite p {
    margin: 0;
    color: #ead8b9;
    line-height: 1.72;
}

.hero-creator-favorite {
    margin: 0 0 24px;
    border-color: rgba(73, 217, 138, 0.5);
    background:
        linear-gradient(135deg, rgba(13, 30, 22, 0.9), rgba(32, 24, 15, 0.88)),
        radial-gradient(circle at 16% 20%, rgba(73, 217, 138, 0.24), transparent 28%);
}

.hero-creator-favorite strong {
    display: block;
    margin: 6px 0 8px;
    color: #fff4dd;
    font-size: 1.14rem;
}

body.theme-light .hero-profile-hero,
body.theme-light .hero-profile-story-card,
body.theme-light .hero-profile-role-panel,
body.theme-light .hero-creator-favorite {
    background: #fffaf0 !important;
    border-color: rgba(121, 79, 25, 0.32) !important;
    box-shadow: none !important;
}

body.theme-light .hero-profile-lead,
body.theme-light .hero-profile-story-card p,
body.theme-light .hero-profile-role-panel p,
body.theme-light .hero-creator-favorite p {
    color: #3d2d1f !important;
}

body.theme-light .hero-profile-section-head h2,
body.theme-light .hero-profile-role-chip strong,
body.theme-light .hero-creator-favorite strong {
    color: #20160f !important;
}

body.theme-light .hero-profile-role-chip {
    background: #f6ead7 !important;
}

body.theme-dark .hero-profile-hero,
body.theme-dark .hero-profile-story-card,
body.theme-dark .hero-profile-role-panel,
body.theme-dark .hero-creator-favorite {
    background-color: rgba(18, 18, 18, 0.92) !important;
}

body.accessibility-large .hero-profile-lead,
body.accessibility-large .hero-profile-story-card p,
body.accessibility-large .hero-profile-role-panel p,
body.accessibility-large .hero-creator-favorite p {
    font-size: 1.18rem !important;
    line-height: 1.85 !important;
}

@media (max-width: 760px) {
    .hero-profile-hero {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .hero-profile-role-chip {
        text-align: left;
    }
}

/* Demo payment */
.payment-page .wiki-main {
    max-width: 980px;
}

.payment-hero,
.payment-success-card,
.demo-payment-panel,
.demo-card-preview,
.hero-stat-group,
.hero-ability-card,
.hero-source-list {
    border: 1px solid rgba(198, 143, 70, 0.34);
    background: linear-gradient(145deg, rgba(28, 20, 15, 0.96), rgba(13, 12, 10, 0.96));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.payment-hero,
.payment-success-card {
    border-radius: 8px;
    padding: 28px;
    margin-bottom: 24px;
}

.payment-hero h1,
.payment-success-card h1 {
    margin: 0 0 10px;
    color: #f6ead2;
}

.payment-hero p,
.payment-success-card p {
    margin: 0;
    color: #d8c7aa;
    line-height: 1.65;
}

.demo-payment-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
    gap: 22px;
    align-items: start;
}

.demo-card-preview,
.demo-payment-panel {
    border-radius: 8px;
    padding: 24px;
}

.demo-card-preview {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #f6ead2;
    background: radial-gradient(circle at 20% 20%, rgba(65, 225, 143, 0.22), transparent 36%), linear-gradient(145deg, #241915, #0d0d0b 68%);
}

.demo-card-preview .demo-card-brand {
    color: #5ee287;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.demo-card-number {
    font-size: 1.38rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.demo-card-bottom {
    display: flex;
    justify-content: space-between;
    color: #d8c7aa;
    font-size: 0.92rem;
}

.demo-payment-summary {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.demo-payment-summary div,
.payment-success-grid div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(198, 143, 70, 0.18);
    color: #d8c7aa;
}

.demo-payment-summary strong,
.payment-success-grid strong {
    color: #f6ead2;
    text-align: right;
}

.demo-payment-form {
    display: grid;
    gap: 16px;
}

.demo-payment-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.demo-payment-form label {
    display: grid;
    gap: 8px;
    color: #f0dfbf;
    font-weight: 700;
}

.demo-payment-form input {
    width: 100%;
    min-height: 46px;
    border-radius: 6px;
    border: 1px solid rgba(198, 143, 70, 0.32);
    background: rgba(8, 8, 7, 0.82);
    color: #f6ead2;
    padding: 0 14px;
}

.demo-payment-form input:focus {
    outline: 2px solid rgba(94, 226, 135, 0.46);
    border-color: rgba(94, 226, 135, 0.7);
}

.demo-payment-note {
    color: #d8c7aa;
    line-height: 1.6;
    font-size: 0.95rem;
}

.demo-payment-actions,
.payment-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.demo-pay-button {
    min-height: 48px;
    border: 0;
    border-radius: 6px;
    padding: 0 22px;
    background: linear-gradient(135deg, #58df83, #2cbf5f);
    color: #06100a;
    font-weight: 900;
    cursor: pointer;
}

.hero-stat-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.hero-stat-group,
.hero-ability-card {
    border-radius: 8px;
    padding: 18px;
}

.hero-stat-group h3,
.hero-ability-card h3 {
    margin: 0;
    color: #f6ead2;
}

.hero-stat-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.hero-stat-line,
.hero-ability-prop {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    align-items: baseline;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(198, 143, 70, 0.14);
}

.hero-stat-line span,
.hero-ability-prop span {
    color: #d8c7aa;
}

.hero-stat-line strong,
.hero-ability-prop strong {
    color: #5ee287;
    text-align: right;
}

.hero-stat-line em,
.hero-ability-prop em {
    grid-column: 1 / -1;
    color: #8ec7ff;
    font-style: normal;
    font-size: 0.9rem;
}

.hero-ability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.hero-ability-top {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 14px;
    align-items: center;
}

.hero-ability-top img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(94, 226, 135, 0.36);
    background: #080807;
}

.hero-ability-top span,
.hero-ability-upgrades > span {
    color: #5ee287;
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-ability-top p,
.hero-ability-desc,
.hero-ability-upgrades li {
    color: #d8c7aa;
    line-height: 1.55;
}

.hero-ability-desc {
    margin: 16px 0;
}

.hero-ability-props {
    display: grid;
    gap: 8px;
}

.hero-ability-upgrades {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(198, 143, 70, 0.18);
}

.hero-ability-upgrades ul {
    margin: 10px 0 0;
    padding-left: 18px;
}

.hero-source-list {
    border-radius: 8px;
    padding: 18px;
    display: grid;
    gap: 10px;
}

.hero-source-list a {
    color: #8ec7ff;
    text-decoration: none;
}

.hero-source-list a:hover {
    color: #f6d36b;
}

body.theme-light .payment-hero,
body.theme-light .payment-success-card,
body.theme-light .demo-payment-panel,
body.theme-light .hero-stat-group,
body.theme-light .hero-ability-card,
body.theme-light .hero-source-list {
    background: #fff8ec;
    color: #251b14;
}

body.theme-light .payment-hero h1,
body.theme-light .payment-success-card h1,
body.theme-light .hero-stat-group h3,
body.theme-light .hero-ability-card h3 {
    color: #251b14;
}

body.theme-light .payment-hero p,
body.theme-light .payment-success-card p,
body.theme-light .hero-stat-line span,
body.theme-light .hero-ability-prop span,
body.theme-light .hero-ability-top p,
body.theme-light .hero-ability-desc,
body.theme-light .hero-ability-upgrades li {
    color: #5a4734;
}

body.accessibility-large .hero-stat-line,
body.accessibility-large .hero-ability-prop,
body.accessibility-large .demo-payment-form input {
    font-size: 1.08rem;
}

@media (max-width: 760px) {
    .demo-payment-layout,
    .demo-payment-row {
        grid-template-columns: 1fr;
    }

    .demo-card-number {
        font-size: 1.05rem;
    }

    .hero-ability-top {
        grid-template-columns: 56px 1fr;
    }

    .hero-ability-top img {
        width: 56px;
        height: 56px;
    }
}

/* Realistic demo payment terminal */
.payment-terminal-page {
    min-height: calc(100vh - 120px);
    padding: 34px 16px 54px;
    background:
        radial-gradient(circle at 16% 10%, rgba(69, 226, 139, 0.13), transparent 30%),
        radial-gradient(circle at 88% 16%, rgba(198, 143, 70, 0.16), transparent 28%),
        linear-gradient(135deg, rgba(10, 10, 9, 0.98), rgba(31, 22, 16, 0.98));
}

.payment-terminal-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.payment-terminal-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.payment-terminal-kicker {
    display: inline-flex;
    color: #58df83;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.82rem;
    margin-bottom: 8px;
}

.payment-terminal-head h1,
.payment-success-receipt h1 {
    margin: 0 0 10px;
    color: #fff4db;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: 0;
}

.payment-terminal-head p,
.payment-success-receipt p,
.payment-terminal-note,
.payment-safety-text,
.payment-merchant p {
    margin: 0;
    color: #d9c8ad;
    line-height: 1.65;
}

.payment-secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(88, 223, 131, 0.35);
    color: #bff6cf;
    background: rgba(5, 14, 9, 0.68);
    white-space: nowrap;
    font-weight: 800;
}

.payment-secure-badge span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #58df83;
    box-shadow: 0 0 14px rgba(88, 223, 131, 0.86);
}

.payment-terminal-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
    gap: 22px;
    align-items: start;
}

.payment-order-panel,
.payment-card-panel,
.payment-success-receipt {
    border: 1px solid rgba(198, 143, 70, 0.32);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(32, 22, 16, 0.97), rgba(10, 10, 9, 0.97));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.payment-order-panel {
    padding: 24px;
    position: sticky;
    top: 18px;
}

.payment-merchant {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(198, 143, 70, 0.18);
}

.payment-merchant span,
.payment-amount-card span,
.payment-order-lines span,
.payment-bank-card-bottom span,
.payment-field > span,
.payment-receipt-grid span {
    color: #b99d74;
    font-size: 0.86rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.payment-merchant strong {
    display: block;
    margin: 6px 0;
    color: #fff4db;
    font-size: 1.25rem;
}

.payment-amount-card {
    margin: 18px 0;
    padding: 18px;
    border-radius: 8px;
    background: rgba(88, 223, 131, 0.08);
    border: 1px solid rgba(88, 223, 131, 0.24);
}

.payment-amount-card strong {
    display: block;
    color: #58df83;
    font-size: 2rem;
    margin: 6px 0 2px;
}

.payment-amount-card small {
    color: #d9c8ad;
}

.payment-order-lines {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.payment-order-lines div,
.payment-receipt-grid div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(198, 143, 70, 0.16);
}

.payment-order-lines strong,
.payment-receipt-grid strong {
    color: #fff4db;
    text-align: right;
}

.payment-card-panel {
    padding: 26px;
}

.payment-bank-card {
    position: relative;
    overflow: hidden;
    min-height: 245px;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    color: #fff7e5;
    background:
        linear-gradient(120deg, rgba(255,255,255,0.12), transparent 22%),
        radial-gradient(circle at 80% 20%, rgba(88, 223, 131, 0.32), transparent 34%),
        linear-gradient(135deg, #17110e, #2c2118 52%, #0d100c);
    border: 1px solid rgba(239, 199, 127, 0.34);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 18px 44px rgba(0,0,0,0.32);
}

.payment-bank-card:after {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 44px solid rgba(88, 223, 131, 0.08);
}

.payment-bank-card-top,
.payment-bank-card-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

.payment-chip {
    width: 48px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f4d999, #9d7240);
    box-shadow: inset 0 0 0 1px rgba(70, 43, 18, 0.28);
}

.payment-bank-number {
    position: relative;
    z-index: 1;
    display: block;
    margin: 58px 0 38px;
    font-size: clamp(1.28rem, 3vw, 2rem);
    letter-spacing: 0.08em;
}

.payment-bank-card-bottom strong {
    display: block;
    margin-top: 4px;
    color: #fff4db;
}

.payment-terminal-form {
    display: grid;
    gap: 16px;
}

.payment-terminal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.payment-field {
    display: grid;
    gap: 8px;
}

.payment-field input {
    width: 100%;
    min-height: 52px;
    border-radius: 8px;
    border: 1px solid rgba(198, 143, 70, 0.34);
    background: rgba(7, 7, 6, 0.86);
    color: #fff4db;
    padding: 0 15px;
    font-size: 1rem;
}

.payment-field input:focus {
    outline: 3px solid rgba(88, 223, 131, 0.22);
    border-color: rgba(88, 223, 131, 0.78);
}

.payment-field small,
.payment-field [data-valmsg-for] {
    color: #bfae92;
    font-size: 0.88rem;
}

.payment-field [data-valmsg-for]:not(:empty),
.payment-validation-summary:not(:empty) {
    color: #ff9b8d;
}

.payment-terminal-button {
    min-height: 56px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #66eb91, #2fc866);
    color: #051008;
    font-weight: 950;
    font-size: 1.05rem;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(47, 200, 102, 0.22);
}

.payment-terminal-button:hover {
    filter: brightness(1.05);
}

.payment-safety-text {
    font-size: 0.92rem;
}

.payment-success-shell {
    max-width: 760px;
}

.payment-success-receipt {
    padding: 34px;
    text-align: center;
}

.payment-success-mark {
    width: 74px;
    height: 74px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(88, 223, 131, 0.14);
    border: 1px solid rgba(88, 223, 131, 0.4);
}

.payment-success-mark span {
    width: 32px;
    height: 18px;
    border-left: 5px solid #58df83;
    border-bottom: 5px solid #58df83;
    transform: rotate(-45deg) translate(2px, -2px);
}

.payment-receipt-grid {
    display: grid;
    gap: 12px;
    margin: 26px 0;
    text-align: left;
}

body.theme-light .payment-terminal-page {
    background: linear-gradient(135deg, #f8efe2, #eadcc8);
}

body.theme-light .payment-order-panel,
body.theme-light .payment-card-panel,
body.theme-light .payment-success-receipt {
    background: #fff9ef;
    color: #2b2118;
}

body.theme-light .payment-terminal-head h1,
body.theme-light .payment-success-receipt h1,
body.theme-light .payment-merchant strong,
body.theme-light .payment-order-lines strong,
body.theme-light .payment-receipt-grid strong {
    color: #2b2118;
}

body.theme-light .payment-terminal-head p,
body.theme-light .payment-success-receipt p,
body.theme-light .payment-terminal-note,
body.theme-light .payment-safety-text,
body.theme-light .payment-merchant p {
    color: #624d38;
}

body.theme-light .payment-field input {
    background: #fff;
    color: #2b2118;
}

body.accessibility-large .payment-field input,
body.accessibility-large .payment-terminal-button,
body.accessibility-large .payment-terminal-head p,
body.accessibility-large .payment-safety-text {
    font-size: 1.12rem;
}

@media (max-width: 850px) {
    .payment-terminal-head,
    .payment-terminal-grid,
    .payment-terminal-row {
        grid-template-columns: 1fr;
        display: grid;
    }

    .payment-order-panel {
        position: static;
    }

    .payment-secure-badge {
        width: fit-content;
    }
}

@media (max-width: 520px) {
    .payment-terminal-page {
        padding: 18px 10px 34px;
    }

    .payment-card-panel,
    .payment-order-panel,
    .payment-success-receipt {
        padding: 18px;
    }

    .payment-bank-card {
        min-height: 220px;
        padding: 18px;
    }
}

/* Trial period panel */
.trial-panel {
    border-color: rgba(88, 223, 131, 0.34);
    background: linear-gradient(135deg, rgba(35, 26, 17, 0.96), rgba(8, 11, 8, 0.96));
}

.trial-panel h2 {
    color: #58df83;
}

.trial-panel p {
    color: #f3e4c8;
    line-height: 1.65;
}

.trial-panel strong {
    color: #58df83;
}

.trial-panel small {
    display: block;
    margin-top: 10px;
    color: #cdb993;
}

body.theme-light .trial-panel {
    background: #fff9ef;
}

body.theme-light .trial-panel p {
    color: #3b2a1c;
}

/* Registration email code */
.registration-code-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.send-code-btn {
    min-height: 44px;
    border: 1px solid rgba(88, 223, 131, 0.45);
    border-radius: 6px;
    padding: 0 14px;
    background: rgba(88, 223, 131, 0.12);
    color: #74f09a;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.send-code-btn:hover {
    background: rgba(88, 223, 131, 0.2);
}

.registration-code-message {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(88, 223, 131, 0.35);
    border-radius: 6px;
    background: rgba(88, 223, 131, 0.1);
    color: #bff6cf;
    font-weight: 700;
}

@media (max-width: 560px) {
    .registration-code-row {
        grid-template-columns: 1fr;
    }
}
