* {
    font-family: 'Ubuntu', sans-serif;
}

/* --- ОСНОВНЫЕ СТИЛИ И СБРОС --- */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: #d8d8d8;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #122035;
    position: relative;
    overflow-x: hidden;
    word-break: break-word;
}

/* --- ФИКСИРОВАННЫЙ РАЗМЫТЫЙ ФОН --- */
body::before {
    content: "";
    position: fixed;
    top: -20px;
    left: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    background-image: url("../img/bg-compressed.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(2px) brightness(0.35);
    z-index: -1;
    pointer-events: none;
    transform: translate3d(0, 0, 0);
}

/* --- СОВРЕМЕННЫЙ СКРОЛЛБАР --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background-color: #39a0ca;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #2ecc71;
}

img {
    max-width: 100%;
}

.btn {
    font-weight: 500;
    box-shadow: none;
    border-radius: 4px;
}

.btn:hover {
    box-shadow: none;
}

.btn:after {
    border-radius: inherit;
}

a {
    color: #e599f5;
    transition: color 450ms cubic-bezier(.23,1,.32,1) 0s;
}

a:not(.btn):hover {
    color: #e599f5;
}

.input-block > label .checkbox-style, .input-block > label .radio-style {
    vertical-align: middle;
}

h1 {
    font-size: 40px;
    line-height: 48px;
}

textarea {
    min-height: 64px;
}

/* --- Заголовки, линии, тултипы и прочее --- */
h2 {
    font-size: 32px;
    line-height: 40px;
}

hr {
    border-color: rgba(255, 255, 255, 0.1);
    border-style: solid;
    border-width: 1px;
}

.tooltip {
    z-index: 21;
}

.scroll-top {
    opacity: 0.4;
    position: fixed;
    bottom: calc((100px - 48px) / 2);
    right: 20px;
    font-size: 20px;
    text-align: center;
    width: 48px;
    z-index: 10;
    line-height: 44px;
    height: 48px;
    display: block;
    border-radius: 50%;
    box-shadow: rgba(0,0,0,.12) 0 1px 6px, rgba(0,0,0,.12) 0 1px 4px;
    color: #fff;
    background-color: rgba(0,0,0,0.6);
    transition: all 450ms cubic-bezier(.23,1,.32,1) 0s;
}

.scroll-top:hover {
    opacity: 0.8;
    color: #fff !important;
}

.checkbox-style input:checked + .checkbox-style-checked {
    background-color: #39a0ca;
}

.checkbox-style .checkbox-style-checked, .radio-style .checkbox-style-checked {
    border-color: #39a0ca;
}

.modal > .wrapper > .modal-content {
    background-color: #fafafa;
}

/* =========================================
   ЛИПКАЯ НАВИГАЦИЯ (ШАПКА) 
========================================= */
body > .navbar {
    min-height: 70px; /* Сделали тоньше (было 100px) */
    z-index: 9999;
    position: sticky; /* Заставляет шапку идти за скроллом */
    top: 0;
    background-color: rgba(10, 15, 25, 0.7); /* Тёмная полупрозрачная полоса */
    backdrop-filter: blur(10px); /* Эффект стекла */
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar .navbar-wrapper .nav-brand,
.navbar .navbar-wrapper .nav-item,
.navbar .navbar-wrapper .nav-link,
.navbar .navbar-wrapper .nav-mobile {
    height: 70px; /* Подстроили под новую толщину */
    line-height: 70px;
    min-width: 50px;
}

body > .navbar .navbar-wrapper .nav-mobile {
    color: #ffffff;      /* Делаем цвет чисто белым */
    font-size: 28px;     /* Увеличиваем размер (стандартный обычно 16-20px) */
    text-align: center;  /* Центрируем иконку */
    transition: color 0.3s ease;
}

.navbar .navbar-wrapper .nav-brand {
    padding: 1px;
    margin: 0;
    height: 70px;
    line-height: 70px;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    display: inline-block;
    vertical-align: middle;
    text-shadow: 0 0 10px rgba(255, 64, 64, 0.782); 
}

.logo {
    font-size: inherit;
    font-weight: inherit;
    white-space: nowrap;
}


body > .navbar .navbar-wrapper .nav-li {
    line-height: 70px;
    height: 70px;
    min-width: 0;
    padding-right: 28px;
    position: relative;
    display: inline-block;
}

body > .navbar .navbar-wrapper .nav-li:last-child {
    padding-right: 0;
}

/* Точки-разделители между ссылками (как было у тебя) */
body > .navbar .navbar-wrapper .nav-li:after {
    content: "";
    display: block;
    position: absolute;
    left: calc(100% - 16px);
    top: calc(50% - 1px);
    width: 5px;
    height: 5px;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.2); /* Сделал чуть светлее для темного фона */
}

body > .navbar .navbar-wrapper .nav-li:last-child:after {
    display: none;
}

/* Ссылки */
body > .navbar .navbar-wrapper .nav-link {
    color: #c5c5c5;
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    height: auto;
    display: inline-block;
    vertical-align: middle;
    line-height: normal;
    min-width: 0;
    text-transform: uppercase;
    transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
}

body > .navbar .navbar-wrapper .nav-link.active,
body > .navbar .navbar-wrapper .nav-link:hover {
    color: #ffffff;
}

body > .navbar .navbar-wrapper .nav-link:after {
    display: none;
}

/* --- ИКОНКИ ДЛЯ ССЫЛОК --- */
body > .navbar .navbar-wrapper .nav-link[href*="discord.com"],
body > .navbar .navbar-wrapper .nav-link[href*="t.me"],
body > .navbar .navbar-wrapper .nav-link[href*="llaun.ch"],
body > .navbar .navbar-wrapper .nav-link[href="/"],
body > .navbar .navbar-wrapper .nav-link[href="/?page-donate/"],
body > .navbar .navbar-wrapper .nav-link[href="/?page-rules/"] {
    position: relative;
    padding-left: 26px; /* Отступ текста от иконки */
}

body > .navbar .navbar-wrapper .nav-link::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

body > .navbar .navbar-wrapper .nav-link[href*="discord.com"]::before { background-image: url('../img/icon/ds.png'); }
body > .navbar .navbar-wrapper .nav-link[href*="t.me"]::before { background-image: url('../img/icon/tg.png'); }
body > .navbar .navbar-wrapper .nav-link[href*="llaun.ch"]::before { background-image: url('../img/icon/game.png'); }
body > .navbar .navbar-wrapper .nav-link[href="/"]::before { background-image: url('../img/icon/home.png'); }
body > .navbar .navbar-wrapper .nav-link[href="/?page-donate/"]::before { background-image: url('../img/icon/donate.png'); }
body > .navbar .navbar-wrapper .nav-link[href="/?page-rules/"]::before { background-image: url('../img/icon/rules.png'); }

/* =========================================
   ФУТЕР И КОНТЕНТ (ОСТАВЛЕНО БЕЗ ИЗМЕНЕНИЙ)
========================================= */
body > .container {
    min-height: calc(100vh - 200px);
}

body > footer {
    height: 100px;
}

body > footer a {
    color: #00838F;
}

body > footer a:not(.btn):hover {
    color: #006064;
}

body > footer > .container {
    display: grid;
    grid-gap: 20px;
    height: 100%;
    align-items: center;
    grid-template-columns: auto auto;
}

body > footer > .container > .block-right {
    text-align: right;
}

.developer {
    display: inline-block;
    width: 48px;
    height: 48px;
    background: url("../img/qexy-black.png") no-repeat center;
    background-size: contain;
    opacity: 0.1;
    transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
}

.developer:hover {
    opacity: 1;
}

.sbp {
    display: inline-block;
    width: 64px;
    height: 64px;
    background: url("../img/sbp.svg") no-repeat center;
    background-size: 95%;
    opacity: 0.8;
}

.visa {
    display: inline-block;
    width: 64px;
    height: 64px;
    background: url("../img/visa-secure.png") no-repeat center;
    background-size: 95%;
    opacity: 0.8;
}

.visa_blue {
    display: inline-block;
    width: 64px;
    height: 64px;
    background: url("../img/visa_blue.png") no-repeat center;
    background-size: 95%;
    opacity: 0.8;
}

.sberpay {
    display: inline-block;
    width: 64px;
    height: 64px;
    background: url("../img/sberpay.png") no-repeat center;
    background-size: 95%;
    opacity: 0.8;
}

.yoomoney {
    display: inline-block;
    width: 64px;
    height: 64px;
    background: url("../img/yoomoney.svg") no-repeat center;
    background-size: 95%;
    opacity: 0.8;
}

.master {
    display: inline-block;
    width: 64px;
    height: 64px;
    background: url("../img/master.png") no-repeat center;
    background-size: 95%;
    opacity: 0.8;
}

.mir {
    display: inline-block;
    width: 64px;
    height: 64px;
    background: url("../img/card_mir.png") no-repeat center;
    background-size: 95%;
    opacity: 0.8;
}

/* =========================================
   ТАБЫ И ТОВАРЫ (ОСТАВЛЕНО БЕЗ ИЗМЕНЕНИЙ)
========================================= */
.static-page .items-tabs {
    padding-top: 20px;
}

.static-page .items-tabs.tabs > .tab-list > .tab-id {
    padding: 20px 0;
}

.static-page .items-tabs .items > .item-list {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    align-items: start;
}

.static-page .items-tabs .items > .item-list > .item-id {
    background-color: rgba(0,0,0,0.3);
    padding: 20px;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: all 450ms cubic-bezier(.23,1,.32,1) 0s;
}

.static-page .items-tabs .items > .item-list > .item-id:hover {
    background-color: rgba(0,0,0,0.4);
}

.static-page .items-tabs .items > .item-list > .item-id .data {
    display: none;
}

.static-page .items-tabs .items > .item-list > .item-id > .title {
    font-weight: 500;
    font-size: 16px;
    padding-top: 20px;
    text-align: center;
    color: #EDE7F6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.static-page .items-tabs .items > .item-list > .item-id > .image {
    display: block;
    margin: auto;
    height: 120px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    border-radius: 4px;
}

.modal[data-id="items-donate"] .item-block {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: 200px calc(100% - 220px);
    align-items: start;
}

.modal[data-id="items-donate"] .item-block .image {
    height: 160px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.modal[data-id="items-donate"] .item-block .price {
    padding-top: 20px;
    text-align: center;
    color: #616161;
}

.modal[data-id="items-donate"] .item-block .description {
    line-height: 24px;
}


/* --- ФИКС: МОДАЛЬНЫЕ ОКНА ПОВЕРХ ШАПКИ --- */
.modal {
    z-index: 99999 !important; /* Делаем слой выше, чем у шапки (у шапки 9999) */
}

/* На всякий случай повышаем z-index и для фона затемнения, если шаблон использует его отдельно */
.modal-backdrop,
.pipui-backdrop {
    z-index: 99998 !important;
}