/* RUSTMAX.EU — одна страница, блоки без левого меню */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #000 url('../img/rm_fon.jpg') no-repeat center center fixed;
    background-size: cover;
    background-color: #0a0a0c;
    font-family: 'Montserrat', Arial, sans-serif;
    color: #fff;
    line-height: 1.5;
}

.main-content {
    flex: 1 0 auto;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

/* ——— Баннер ——— */
.bannerContainer-wrap {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}
.banner-link { display: block; text-decoration: none; }
.bannerContainer {
    width: 100%;
    max-width: 1100px;
    height: 279px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: relative;
}
.bannerLogo {
    width: 100%;
    max-height: 279px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}
.bannerPlaceholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.bannerPlaceholder-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #f2c034;
    letter-spacing: 0.05em;
}
.bannerPlaceholder-sub {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: #b0b0b0;
}

/* ——— Верхняя полоса: соцсети + Steam ——— */
.headerBar {
    margin: 0 auto 15px auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 50px;
    width: 100%;
    max-width: 1100px;
    background: rgb(20, 29, 37);
    box-shadow: 0 0 5px 1px rgba(0,0,0,0.96);
    border-radius: 2px;
    padding: 0 20px;
    border: 1px solid #232b36;
}
.header-logo-link {
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}
.header-logo-link:hover {
    color: #f2c034;
    text-decoration: none;
}

.headerBar .login-steam-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #232b36;
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}
.headerBar .login-steam-btn:hover {
    background: #2d3845;
    color: #f2c034;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    text-decoration: none;
}
.headerBar .login-steam-btn i.fab.fa-steam {
    font-size: 1.5rem;
    color: #f2c034;
    transition: transform 0.2s;
}
.headerBar .login-steam-btn:hover i.fab.fa-steam {
    transform: scale(1.1);
}
/* Блок пользователя в шапке: баланс, пополнить, аватарка + ник */
.headerBar .header-user-block {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.headerBar .header-balance {
    font-size: 0.9rem;
    color: #b0b0b0;
    white-space: nowrap;
}
.headerBar .header-balance strong {
    color: #e6e6e6;
    font-weight: 600;
}
.currency-coin-icon {
    height: 1.1em;
    width: auto;
    vertical-align: middle;
    margin: 0 1px;
}
.headerBar .header-topup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(242, 192, 52, 0.5);
    border-radius: 4px;
    background: rgba(242, 192, 52, 0.15);
    color: #f2c034;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.headerBar .header-topup-btn:hover {
    background: rgba(242, 192, 52, 0.3);
    border-color: #f2c034;
    color: #fff;
}
/* Профиль в шапке: ник + аватарка */
.headerBar .header-user {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    color: #e6e6e6;
    text-decoration: none;
    transition: color 0.2s;
}
.headerBar .header-user:hover {
    color: #f2c034;
    text-decoration: none;
}
.headerBar .header-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-sizing: border-box;
}
.headerBar .header-user:hover .header-user-avatar {
    border-color: rgba(255, 255, 255, 0.9);
}
.headerBar .header-user-avatar.is-hidden {
    display: none;
}
.headerBar .header-user-icon {
    font-size: 1.5rem;
    color: #f2c034;
}
.headerBar .header-user-name {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* ——— Контент: одна колонка блоков ——— */
.page-content {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 20px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.block {
    background: rgb(20, 29, 37);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 0 5px 1px rgba(0,0,0,0.2);
    border: 1px solid #232b36;
    padding: 24px 28px;
    color: #fff;
}

/* Блок онлайна (первый сверху): контейнер без собственного фона, внутри два отдельных блока серверов */
.block-online {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.online-servers-wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.online-server-card {
    background: rgb(20, 29, 37);
    border-radius: 2px;
    border: 1px solid #232b36;
    padding: 16px 20px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 0 5px 1px rgba(0,0,0,0.2);
}

.online-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.online-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f2c034;
    min-width: 0;
    flex: 1 1 200px;
}
.online-connect-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-width: 0;
}
.online-connect-cell {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    flex-shrink: 0;
}
.online-connect {
    font-size: 0.9rem;
    background: #232b36;
    padding: 6px 12px;
    border-radius: 4px;
    color: #8bc34a;
    user-select: all;
    transition: visibility 0.2s;
    white-space: nowrap;
}
.online-connect-cell.feedback .online-connect { visibility: hidden; }
.online-copy-btn {
    background: transparent;
    border: 1px solid #2d3845;
    color: #888;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, border-color 0.2s;
    flex-shrink: 0;
}
.online-copy-btn:hover { color: #f2c034; border-color: #f2c034; }
.online-copy-ok {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #3fb950;
    background: #232b36;
    border-radius: 4px;
    padding: 6px 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.online-connect-cell.feedback .online-copy-ok { opacity: 1; }
.online-bar-wrap { margin: 10px 0 8px; }
.online-bar {
    height: 28px;
    background: #0d1117;
    border: 1px solid #232b36;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}
.online-bar-fill {
    height: 100%;
    min-width: 0;
    border-radius: 5px;
    background: linear-gradient(90deg, rgba(242,192,52,0.85) 0%, rgba(242,192,52,0.95) 50%, rgba(242,192,52,0.85) 100%);
    background-size: 200% 100%;
    animation: online-bar-shine 2.5s ease-in-out infinite;
    transition: width 0.6s ease-out;
}
@keyframes online-bar-shine {
    0%, 100% { background-position: 100% 0; }
    50% { background-position: 0 0; }
}
.online-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #aaa;
    margin-top: 0;
}
.online-slots { color: #e6e6e6; }
.online-map { font-size: 0.85rem; color: #888; }
.online-wipe { font-size: 0.85rem; color: #e6e6e6; font-weight: 600; }

.online-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 4px;
}

.online-bar-row .online-bar-wrap {
    flex: 1 1 auto;
}

.online-connect-inline {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    font-weight: 400;
    color: #888;
    white-space: nowrap;
}

.online-connect-hidden {
    display: none;
}

.online-copy-btn-bar {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #888;
    padding: 0;
    position: relative;
}

.online-copy-btn-bar:hover {
    color: #f2c034;
}

.online-copy-btn-bar:focus {
    outline: none;
}

.online-copy-btn-bar i {
    font-size: 0.95rem;
}

.online-copy-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    transform: translateY(-4px);
    background: rgba(0, 0, 0, 0.85);
    color: #e6e6e6;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 10;
}

.online-copy-tooltip.show {
    opacity: 1;
}

/* Блок приветствия */
.block-welcome {
    position: relative;
}
.block-welcome-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #f2c034;
    margin-bottom: 10px;
}
.block-welcome-sub {
    font-size: 1rem;
    color: #e6e6e6;
    margin-bottom: 14px;
    line-height: 1.55;
}
.block-welcome-connect {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: #aaa;
}
.block-welcome-connect code {
    background: #232b36;
    padding: 6px 12px;
    border-radius: 4px;
    color: #8bc34a;
    font-size: 0.9rem;
}

/* Блок О проекте: текст поверх, картинка на заднем плане в правом нижнем углу */
.block-about { overflow: hidden; }
.about-inner {
    position: relative;
    padding-right: 200px;
    padding-bottom: 0;
}
.about-text {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    line-height: 1.6;
    color: #e6e6e6;
}
.about-image {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 0;
    margin: 0;
    padding: 0;
    margin-right: -28px;
    margin-bottom: -24px;
}
.about-image img {
    display: block;
    max-width: 200px;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

/* Блок инфо (О сервере, О нас, Контакты) */
.block-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f2c034;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2d3845;
}
.block-info-inner {
    font-size: 1rem;
    line-height: 1.6;
    color: #e6e6e6;
}
.block-info-inner.markdown h2 { font-size: 1.15rem; color: #f2c034; margin: 1rem 0 0.5rem; }
.block-info-inner.markdown h3 { font-size: 1.05rem; color: #ddd; margin: 0.75rem 0 0.4rem; }
.block-info-inner.markdown p { margin: 0.5rem 0; }
.block-info-inner.markdown ul { margin: 0.5rem 0; padding-left: 1.5rem; }
.block-info-inner.markdown a { color: #f2c034; text-decoration: none; }
.block-info-inner.markdown a:hover { text-decoration: underline; }

/* Страница профиля: ширина как у остальных блоков (.page-content) */
.profile-main { margin-bottom: 0; }
.profile-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 24px;
    margin-bottom: 0;
}
.profile-header-left {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 140px;
    flex-shrink: 0;
}
.profile-header-center {
    min-width: 0;
    padding-top: 2px;
}
.profile-header-right.profile-social-inline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 450px;
    max-width: 450px;
    width: 450px;
}
.profile-raid-row {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(242, 192, 52, 0.15);
}
@media (max-width: 900px) {
    .profile-header {
        grid-template-columns: auto 1fr;
        gap: 16px;
    }
    .profile-header-right.profile-social-inline {
        grid-column: 1 / -1;
        min-width: 0;
        max-width: none;
        width: 100%;
    }
}
@media (max-width: 480px) {
    .profile-header { grid-template-columns: 1fr; }
    .profile-header-left { width: 100%; max-width: 140px; }
    .profile-header-right.profile-social-inline { max-width: none; }
}
.profile-avatar {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #232b36;
    display: block;
}
.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f2c034;
    margin-bottom: 4px;
}
.profile-steam-id {
    color: #888;
    font-size: 0.9rem;
}
.profile-balance {
    color: #888;
    font-size: 0.9rem;
    margin-top: 4px;
}
.profile-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    background: transparent;
    border: 1px solid #2d3845;
    color: #888;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s, color 0.2s;
}
.profile-logout:hover {
    border-color: #f85149;
    color: #f85149;
}
.profile-rust {
    margin-top: 20px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    color: #aaa;
    font-size: 0.95rem;
}
.profile-rust strong { color: #e6e6e6; }

.server-connect-wrap { margin-top: 1rem; text-align: center; }
.server-connect {
    display: inline-block;
    background: #232b36;
    padding: 8px 14px;
    border-radius: 4px;
    color: #8bc34a;
    font-size: 0.95rem;
}

/* Магазин */
.block-shop .block-heading { margin-bottom: 0; }
.shop-empty { text-align: center; color: #888; padding: 2rem; }

.shop-tabs {
    display: flex;
    gap: 10px;
    margin: 0;
    flex-wrap: nowrap;
}

.shop-tabs--center {
    justify-content: center;
    margin-bottom: 1rem;
}

.shop-tab-btn {
    padding: 0.65rem 1rem;
    border-radius: 6px;
    border: 1px solid #2d3845;
    background: rgba(13, 17, 23, 0.7);
    color: #c8c8c8;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
    width: 360px;
    max-width: 46%;
    text-align: center;
}

.shop-tab-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    white-space: nowrap;
}

.shop-tab-btn--active {
    position: relative;
    background: #111827;
    color: #f2c034;
    border: 0;
    box-shadow: 0 0 18px rgba(242, 192, 52, 0.75);
    animation: shop-tab-pulse 1.2s ease-in-out infinite;
}

.shop-tab-btn--active::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 8px;
    background: linear-gradient(90deg, #ff4b1f, #ff9800, #f2c034, #00e676, #00bcd4, #3d5afe, #ff4b1f);
    z-index: -1;
}

.shop-tab-btn--active::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 6px;
    background: #111827;
    z-index: -1;
}

@keyframes shop-tab-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 14px rgba(242, 192, 52, 0.5);
    }
    50% {
        transform: scale(1.015);
        box-shadow: 0 0 24px rgba(242, 192, 52, 0.9);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 14px rgba(242, 192, 52, 0.5);
    }
}

.shop-tab-btn:hover {
    border-color: rgba(242, 192, 52, 0.6);
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 200px);
    gap: 1rem;
    justify-content: center;
    display: none;
}

.shop-grid--active {
    display: grid;
}
.shop-item {
    background: rgba(35, 43, 54, 0.9);
    border: 1px solid #2d3845;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.shop-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    border-color: rgba(242, 192, 52, 0.4);
}
/* Обёртка картинки (для бейджа количества) */
.shop-item-img-wrap {
    position: relative;
}
.shop-item-img-wrap > img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
    background: #1a1f28;
}
.shop-item-noimg {
    width: 200px;
    height: 200px;
    background: #1a1f28;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
}
.shop-item-quantity {
    position: absolute;
    bottom: 6px;
    right: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 0 4px rgba(0,0,0,1), 0 0 8px rgba(0,0,0,0.9), 0 1px 2px rgba(0,0,0,1), 0 2px 4px rgba(0,0,0,0.8);
}
/* Полоса с названием товара */
.shop-item-info {
    padding: 0;
    display: flex;
    flex-direction: column;
}
.shop-item-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    text-align: center;
    padding: 0.5rem 0.6rem;
    background: rgba(242, 192, 52, 0.12);
    border-bottom: 1px solid rgba(242, 192, 52, 0.25);
    line-height: 1.3;
}
/* Цена по центру */
.shop-item-price {
    color: #f2c034;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    padding: 0.5rem 0.5rem;
}

/* Модалка товара */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
}
.modal-box {
    position: relative;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    background: rgb(20, 29, 37);
    border: 1px solid #232b36;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.modal-close:hover { color: #f2c034; }

/* Модалка пополнения баланса */
.topup-modal-box { max-width: 462px; }
.topup-modal-title { margin: 0 0 1rem 0; font-size: 1.25rem; color: #f2c034; }
.topup-section-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #c8c8c8;
    margin-bottom: 0.5rem;
}
.topup-currency-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}
.topup-currency-btn {
    flex: 1;
    padding: 0.45rem 0.75rem;
    border-radius: 4px;
    border: 1px solid #2d3845;
    background: rgba(23, 30, 40, 0.9);
    color: #c8c8c8;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.topup-currency-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
.topup-currency-icon {
    font-size: 1.1rem;
}
.topup-currency-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.topup-currency-btn:hover {
    border-color: rgba(242, 192, 52, 0.5);
}
.topup-currency-btn.active {
    background: #f2c034;
    border-color: #f2c034;
    color: #111;
}
.topup-form { margin-bottom: 1rem; }
.topup-amount-coins-single {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 0.8rem;
    border: 1px solid #2d3845;
    border-radius: 8px;
    background: #0d1117;
    box-sizing: border-box;
    margin-bottom: 1rem;
}
.topup-amount-coins-single:focus-within {
    border-color: #f2c034;
}
.topup-amount-part {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}
.topup-amount-part .topup-amount-input {
    flex: 1;
    min-width: 0;
    width: 6ch;
    max-width: 8ch;
    text-align: right;
    border: none;
    background: transparent;
    padding: 0.65rem 0;
    padding-right: 0.35rem;
}
.topup-amount-part .topup-amount-input:focus {
    outline: none;
}
.topup-money-currency-inline {
    flex-shrink: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #c8c8c8;
}
.topup-amount-coins-sep {
    flex-shrink: 0;
    padding: 0 0.5rem;
    color: #9aa1ad;
    font-weight: 600;
}
.topup-coins-part {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    justify-content: flex-end;
}
.topup-coins-part .topup-coins-input {
    width: 6ch;
    max-width: 8ch;
    text-align: right;
    border: none;
    background: transparent;
    padding: 0.65rem 0.35rem 0.65rem 0;
}
.topup-coins-part .topup-coins-input:focus {
    outline: none;
}
.topup-coins-inline-icon {
    width: 1.4em;
    height: 1.4em;
    flex-shrink: 0;
}
/* убрать стрелки у поля суммы */
input.topup-amount-input[type=number]::-webkit-outer-spin-button,
input.topup-amount-input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input.topup-amount-input[type=number] {
    -moz-appearance: textfield;
}
input.topup-coins-input[type=number]::-webkit-outer-spin-button,
input.topup-coins-input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input.topup-coins-input[type=number] {
    -moz-appearance: textfield;
}
.topup-form-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.topup-form-row .topup-label {
    margin-bottom: 0;
    flex-shrink: 0;
}
.topup-form-row .topup-input {
    margin-left: auto;
    flex: 0 1 140px;
}
.topup-label {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: #c8c8c8;
    margin-bottom: 0.5rem;
}
.topup-input {
    width: 100%;
    max-width: 200px;
    padding: 0.65rem 0.8rem;
    font-size: 1.05rem;
    border: 1px solid #2d3845;
    border-radius: 8px;
    background: #0d1117;
    color: #fff;
    box-sizing: border-box;
}
.topup-input:focus {
    outline: none;
    border-color: #f2c034;
}
.topup-hint {
    font-size: 0.8rem;
    color: #888;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}
.topup-label-coin { vertical-align: middle; margin-left: 4px; width: 1.4em; height: 1.4em; }
.topup-bonuses-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
    margin-bottom: 1rem;
    justify-items: center;
}
.topup-bonus-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #f2c034;
    background: rgba(35, 43, 54, 0.5);
    border: 1px solid rgba(242, 192, 52, 0.35);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    width: 100%;
    max-width: 160px;
}
.topup-bonus-card:hover {
    background: rgba(242, 192, 52, 0.12);
    border-color: rgba(242, 192, 52, 0.5);
}
.topup-bonus-amount { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.95rem; }
.topup-bonus-coin { width: 1.1em; height: 1.1em; vertical-align: middle; }
.topup-bonus-plus { font-size: 0.9rem; color: #fff; font-weight: 600; white-space: nowrap; margin-left: 0.15rem; }
.topup-agree-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #c8c8c8;
}
.topup-agree-check { flex-shrink: 0; accent-color: #f2c034; }
.topup-agree-link { color: #f2c034; text-decoration: underline; }
.topup-agree-link:hover { color: #f5d055; }
.topup-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.topup-method-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    text-align: left;
    border: 1px solid #2d3845;
    border-radius: 10px;
    background: rgba(35, 43, 54, 0.6);
    color: #c8c8c8;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.topup-method-btn:hover:not(:disabled) {
    border-color: rgba(242, 192, 52, 0.4);
    background: rgba(42, 52, 66, 0.7);
}
.topup-method-btn:disabled {
    cursor: default;
    opacity: 0.85;
}
.topup-pay-row { width: 100%; }
.topup-method-pay { width: 100%; justify-content: center; }
.topup-method-pay.topup-pay-ready {
    border-color: #f2c034;
    box-shadow: 0 0 0 2px rgba(242, 192, 52, 0.4);
}
.topup-method-icon { font-size: 1.5rem; }
.topup-method-text { flex: 1; }
.topup-method-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    padding: 0.2rem 0.5rem;
    background: rgba(255,255,255,0.06);
    border-radius: 6px;
}
.topup-error {
    font-size: 0.9rem;
    color: #e74c3c;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 8px;
}
.topup-iframe-wrap {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}
.topup-iframe-wrap iframe {
    width: 100%;
    height: 420px;
    border: 1px solid #2d3845;
    border-radius: 10px;
    background: #0d1117;
}
.topup-back-btn {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: #888;
    background: transparent;
    border: 1px solid #2d3845;
    border-radius: 8px;
    cursor: pointer;
}
.topup-back-btn:hover { color: #c8c8c8; border-color: #444; }

/* Модалка товара: слева картинка (вся влезает), справа название — цена — кнопка, ниже описание */
.modal-shop-box { max-width: 560px; position: relative; overflow: hidden; }
.modal-shop-product {
    transition: opacity 0.35s ease, transform 0.35s ease;
    transform-origin: center center;
}
.modal-shop-success {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.92);
    transition: opacity 0.35s ease 0.08s, transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1) 0.08s;
}
.modal-shop-box.modal-shop--show-success .modal-shop-product {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.96);
}
.modal-shop-box.modal-shop--show-success .modal-shop-success {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}
.modal-shop-success-inner {
    text-align: center;
    max-width: 340px;
}
.modal-shop-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.25), rgba(56, 142, 60, 0.2));
    border: 2px solid rgba(76, 175, 80, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4caf50;
    font-size: 2rem;
}
.modal-shop-success-title {
    color: #e6e6e6;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    letter-spacing: 0.02em;
}
.modal-shop-success-msg {
    color: #b8c5d6;
    font-size: 1rem;
    line-height: 1.55;
    margin: 0 0 1.5rem 0;
}
.modal-shop-close-btn {
    display: inline-block;
    min-width: 160px;
    text-align: center;
    padding: 0.65rem 1.5rem;
}
.modal-shop-success-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
}
.modal-shop-basket-btn {
    text-decoration: none;
}
.modal-shop-top {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    align-items: flex-start;
}
.modal-shop-image {
    flex-shrink: 0;
    width: 200px;
    position: relative;
    min-height: 200px;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1f28;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(242, 192, 52, 0.35);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.25);
}
.modal-shop-image-wrap {
    position: relative;
    width: 100%;
    height: 200px;
}
.modal-shop-image-wrap img,
.modal-shop-image-wrap .shop-item-noimg {
    width: 200px;
    height: 200px;
}
.modal-shop-quantity {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 4px rgba(0,0,0,1), 0 0 8px rgba(0,0,0,0.9), 0 1px 2px rgba(0,0,0,1), 0 2px 4px rgba(0,0,0,0.8);
}
.modal-shop-image img {
    width: 100%;
    height: 100%;
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    display: block;
}
.modal-shop-image .shop-item-noimg {
    width: 200px;
    height: 200px;
    aspect-ratio: 1;
    margin: 0;
}
.modal-shop-info {
    flex: 1;
    min-width: 0;
}
/* Название — нейтральный светлый цвет, не сливается с ценой и кнопкой */
.modal-shop-title {
    color: #e6e6e6;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.3;
    letter-spacing: 0.02em;
}
/* Под названием: две равные части — слева цена, справа кнопка */
.modal-shop-price-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    align-items: stretch;
    margin-top: 0.25rem;
}
.modal-shop-price-row .modal-shop-price {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.modal-shop-price-row .modal-shop-price .currency-coin-icon {
    margin-left: 0.25rem;
}
.modal-shop-price {
    color: #f2c034;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0;
}
.modal-shop-buy {
    padding: 0.6rem 1rem;
    background: rgba(242, 192, 52, 0.25);
    color: #f2c034;
    border: 1px solid rgba(242, 192, 52, 0.5);
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
}
.modal-shop-buy:hover:not(:disabled) {
    background: rgba(242, 192, 52, 0.35);
    border-color: #f2c034;
}
.modal-shop-buy:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(242, 192, 52, 0.1);
    border-color: rgba(242, 192, 52, 0.25);
    color: rgba(242, 192, 52, 0.7);
}
.modal-shop-buy.modal-shop-buy--insufficient:disabled {
    opacity: 0.35;
}
.modal-shop-desc {
    color: #b8b8b8;
    font-size: 0.95rem;
    line-height: 1.5;
    padding-top: 1rem;
    border-top: 1px solid #2d3845;
}
.modal-shop-desc p { margin: 0 0 0.5rem 0; }
.modal-shop-desc p:last-child { margin-bottom: 0; }

/* Подвал — ширина в уровень с блоками (как .main-content) */
.footer-site {
    margin-top: auto;
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px 20px;
    background: transparent;
    box-sizing: border-box;
}
.footer-inner {
    width: 100%;
    box-sizing: border-box;
    background: rgb(20, 29, 37);
    box-shadow: 0 0 5px 1px rgba(0,0,0,0.2);
    border: 1px solid #232b36;
    border-radius: 2px;
    padding: 16px 24px;
}
.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 16px;
}
.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.footer-social-link i {
    font-size: 1.35em;
}
.footer-social-link:hover,
.footer-social-link:focus {
    text-decoration: none;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.footer-social-discord {
    background: #5865F2;
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.35);
}
.footer-social-discord:hover { box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5); }
.footer-social-telegram {
    background: #0088cc;
    box-shadow: 0 2px 8px rgba(0, 136, 204, 0.35);
}
.footer-social-telegram:hover { box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5); }
.footer-disclaimer {
    font-size: 0.8rem;
    color: #888;
    line-height: 1.45;
    margin: 0 0 12px 0;
    text-align: center;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #2d3845;
}
.footer-left {
    color: #aaa;
    font-size: 0.9rem;
}
.footer-lang-wrap {
    position: relative;
}
.footer-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid #2d3845;
    border-radius: 6px;
    color: #ccc;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.footer-lang-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: #3d4854;
    color: #f2c034;
}
.footer-lang-flag { font-size: 1.1rem; line-height: 1; }
.footer-lang-flag-icon { display: inline-flex; align-items: center; }
.footer-lang-flag-img { display: block; width: 24px; height: 14px; object-fit: cover; border-radius: 1px; vertical-align: middle; }
.footer-lang-option .footer-lang-flag-img { margin-right: 4px; }
.footer-lang-chevron {
    font-size: 0.7rem;
    transition: transform 0.2s;
}
.footer-lang-wrap.open .footer-lang-chevron { transform: rotate(180deg); }
.footer-lang-dropdown {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 140px;
    background: rgb(28, 38, 48);
    border: 1px solid #2d3845;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 10;
}
.footer-lang-wrap.open .footer-lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}
.footer-lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: #e6e6e6;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.footer-lang-option:hover {
    background: rgba(242, 192, 52, 0.15);
    color: #f2c034;
    text-decoration: none;
}
.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
}
.footer-privacy-link,
.footer-user-agreement-link {
    color: #888;
    font-size: 0.9rem;
    text-decoration: none;
}
.footer-privacy-link:hover,
.footer-user-agreement-link:hover { color: #f2c034; }
.secret-admin-link { color: inherit; text-decoration: none; }
.secret-admin-link:hover { color: #f2c034; }

/* Модалка политики конфиденциальности */
.modal-privacy .modal-box {
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}
.modal-privacy .modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}
.modal-privacy-title {
    padding: 1.25rem 1.5rem 0.75rem;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #f2c034;
    border-bottom: 1px solid #2d3845;
}
.modal-privacy-body {
    padding: 1rem 1.5rem 1.5rem;
    overflow-y: auto;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #c8c8c8;
}
.modal-privacy-body h3 {
    font-size: 0.9rem;
    color: #e0e0e0;
    margin: 1rem 0 0.4rem;
}
.modal-privacy-body p { margin: 0.35rem 0; }
.modal-privacy-body p:first-child { margin-top: 0; }
.modal-privacy-body a { color: #f2c034; text-decoration: underline; }
.modal-privacy-body a:hover { color: #f5d040; }

/* Страница «Пользовательское соглашение» — отдельная верстка для читаемости */
.agreement-page .block-info-inner.agreement-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 0.5rem 0;
    font-size: 1rem;
    line-height: 1.75;
    color: #e6e6e6;
}
.agreement-page .block-info-inner.agreement-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f2c034;
    margin: 1.5rem 0 0.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(242, 192, 52, 0.25);
}
.agreement-page .block-info-inner.agreement-content h3:first-of-type { margin-top: 0; }
.agreement-page .block-info-inner.agreement-content p {
    margin: 0.6rem 0;
}
.agreement-page .block-info-inner.agreement-content p:first-child { margin-top: 0; }
.agreement-page .block-info-inner.agreement-content a {
    color: #f2c034;
    text-decoration: underline;
}
.agreement-page .block-info-inner.agreement-content a:hover { color: #f5d055; }
.agreement-page .block-info-inner.agreement-content strong { color: #e0e0e0; }
.agreement-page .block-info-inner.agreement-content em {
    font-size: 0.95rem;
    color: #9ca3af;
}

@media (max-width: 768px) {
    .bannerContainer { height: 204px; }
    .bannerPlaceholder-title { font-size: 1.8rem; }
    .bannerPlaceholder-sub { font-size: 0.9rem; letter-spacing: 0.1em; }
    .headerBar { padding: 0 12px; }
    .block { padding: 18px 16px; }
    .about-inner { padding-right: 0; padding-bottom: 0; }
    .about-image { right: 0; bottom: 0; margin-right: -16px; margin-bottom: -18px; }
    .about-image img { max-width: 140px; }
    .shop-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
    .footer-site { padding: 0 16px 16px; }
    .footer-inner { padding: 14px 18px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-legal-links { order: -1; justify-content: center; }
}
