:root {
    --bg: #f4f6fb;
    --card: #ffffff;
    --border: #e5e9f2;
    --accent: #ff67ef;
    --accent-hover: #ff3ee9;
    --text: #1f2937;
    --muted: #6b7280;
    --accent-red: #ff6767;
}

/* Весь скролл */
::-webkit-scrollbar {
    width: 0
}

/* Дорожка */
::-webkit-scrollbar-track {
    background: #1e1e1e;
}

/* Ползунок */
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00c6ff, #0072ff);
    border-radius: 10px;
}

/* При наведении */
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00aaff, #0055cc);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Inter-Bold, serif;
}

body {
    background: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
}

html, body {
    height: 100%;
}

main {
    flex: 1;
}

header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
}

.header {
    max-width: 1200px;
    margin: auto;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: 200px;
    cursor: pointer;
}

.socials a {
    margin-left: 14px;
    color: var(--muted);
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
}

/* SECTIONS */
section {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
}

.section__title {
    font-size: 27px;
    text-align: left !important;
    margin-bottom: unset;
}

.gold__description {
    font-size: 17px;
    color: gray;
    font-weight: bold;
}

.buy__box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
}

.buy__row {
    position: relative;
}

.buy__row::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: calc(100% - 10px);
    margin-left: 5px; /* 5.5px */
    height: 10px;
    background: url(/public/assets/img/liner.svg) no-repeat center;
    background-size: 100% auto;
    z-index: 1;
    pointer-events: none;
}

.buy__row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.buy__row input[type="range"] {
    flex: 1;
}

.buy__row input[type="text"] {
    width: 200px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 16px;
}

.input__amount {
    font-size: 16px;
    outline-color: var(--accent);
    outline-style: none;
}

.buy__btn {
    margin-top: 25px;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 12px;
    background: var(--accent);
    color: white;
    font-weight: bold;
    font-size: 19px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.input__label, .input__amount, .gold__description, .section__title .socials a, .buy__btn, .category, .h3__red, .item__name, .price, .buy__item__btn, b, span, .footer-top, a, input, .server, * {
    font-family: Inter-Bold, serif !important;
}

.section__title, #server-ip {
    font-family: Inter-ExtraBold, serif !important;
}

.buy__btn:hover {
    background: var(--accent-hover);
}

.exchange__box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 20px;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fafbff;
}

.exchange__field {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.exchange__field label {
    position: absolute;
    top: -8px;
    left: 50%;
    border-radius: 15px;
    transform: translateX(-50%);
    background: #f0f0f0;
    padding: 0 6px;
    font-size: 13px;
    font-weight: bold;
    color: var(--muted);
}

.exchange__field input {
    width: 100%;
    padding: 14px 36px 14px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.exchange__field input:focus {
    border: 1px solid var(--accent);
}

.exchange__field .unit {
    position: absolute;
    right: 12px;
    bottom: 18px;
    font-size: 14px;
    color: var(--muted);
}

/* LAST BUYS */
.last-buys {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
}

.last-list {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.last {
    width: 80px;
    text-align: center;
    font-size: 13px;
}

.last img {
    width: 48px;
    border-radius: 8px;
}

.last .nick {
    font-weight: 600;
}

.last .item {
    color: var(--muted);
}

.categories, .servers {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.category, .server {
    padding: 6px 14px;
    font-size: 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card);
    color: var(--text);
    cursor: pointer;
    transition: 0.3s;
    font-weight: bold;
    min-width: 100px;
}

.server {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 200px;
    background: var(--card);
    color: var(--accent);
    border: none;
    box-shadow: 6px 5px 2px 2px #e0d5d5
}

.server img {
    width: 40px;
}

.category:hover,
.category.active,
.server.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

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

.product {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px;
}

.product img {
    width: 100%;
    max-width: 200px;
    object-fit: contain;
    border-radius: 10px;
    pointer-events: none;
}

.product h3 {
    max-width: 90%;
    flex-wrap: wrap;
    display: flex;
    font-size: 15px;
    margin: 8px 0 4px;
}

@media (max-width: 750px) {
    .product h3 {
        max-width: 85%;
    }
}

@media (max-width: 611px) {
    .product h3 {
        max-width: 77%;
    }
}

@media (max-width: 456px) {
    .product h3 {
        max-width: 68%;
    }
}

@media (max-width: 400px) {
    .product h3 {
        max-width: 84%;
    }
}


.price {
    font-weight: 700;
    color: var(--accent);
}

.product button {
    margin-top: 8px;
    padding: 10px;
    width: 100%;
    border-radius: 10px;
    border: none;
    background: var(--accent);
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
}

/* FOOTER */
footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 20px 10px;
    font-size: 13px;
    color: var(--muted);
}

.footer {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-top {
    text-align: center;
    font-weight: bold;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-left,
.footer-center,
.footer-right {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    padding-right: 15px;
}

.footer-left {
    flex-direction: column;
    align-items: flex-start;
}

.footer-center {
    justify-content: center;
}

.footer-right {
    flex-direction: column;
    align-items: flex-end;
}

.footer-center a {
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
    margin: 0 6px;
}

.footer-logo {
    height: 40px;
    object-fit: contain;
}

/* MOBILE ADAPTATION */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left, .footer-center, .footer-right {
        align-items: center;
        flex-direction: column;
    }

    .section__title {
        font-size: 18px;
    }
}

/* МОДАЛЬНОЕ ОКНО */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--card);
    border-radius: 12px;
    padding: 30px 20px;
    max-width: 700px;
    width: 90%;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-content h2 {
    margin-bottom: 20px;
    font-size: 22px;
    text-align: center;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-content label {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
}

.modal-content input[type="text"] {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 16px;
}

.checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    text-align: center;
}

.checkboxes a {
    color: var(--accent);
    text-decoration: none;
}

.checkboxes a:hover {
    text-decoration: underline;
}

/* Закрыть */
.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 25px;
    cursor: pointer;
    color: var(--text);
    font-weight: bold;
}

/* Кнопка "Оплатить" */
.modal-content .buy__btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

/* Мобильная адаптация */
@media (max-width: 480px) {
    .modal-content {
        padding: 20px 15px;
    }
}

.product.hidden {
    display: none;
}

#paymentForm input {
    font-weight: bold;
    color: var(--accent);
    font-size: 18px;
    outline: none;
    transition: all 0.3s ease;
}

#paymentForm input:focus {
    border: 1px solid var(--accent);
}

#go-back {
    border: none;
    width: 300px;
    height: 70px;
    font-size: 23px;
    font-weight: bold;
    border-radius: 50px 25px 50px 25px;
    background-color: var(--accent);
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

#go-back:hover {
    background-color: var(--accent-hover);
}

.pay-notification, .contacts-form-label, .button-back-container {
    text-align: center;
}

.pay-notification {
    padding-bottom: 30px;
}

.button-back-container {
    padding-bottom: 26.3%;
}

.payment-info-container {
    margin-top: 50px;
}

.buy__item__btn {
    transition: all 0.3s ease;
}

.buy__item__btn:hover {
    background: var(--accent-hover);
}

#item__name {
    border-radius: 15px;
    background-color: var(--accent);
    padding: 10px 30px;
    color: white;
}

.slot-bg {
    background-color: var(--accent-red);
    padding: 10px 30px;
    color: white;
    border-radius: 50px 25px 50px 25px;
}

.footer-right a {
    text-decoration: none;
    color: var(--accent-hover);
}

.footer-right a:hover {
    text-decoration: underline;
}

/* ===== BURGER ===== */
.burger {
    display: none;
    width: 30px;
    height: 22px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.burger span {
    height: 4px;
    width: 100%;
    background: var(--text);
    border-radius: 2px;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--card);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    z-index: 1000;
}

.mobile-menu a {
    font-size: 22px;
    font-weight: bold;
    color: var(--accent-hover);
    text-decoration: none;
}

.mobile-menu.show {
    transform: translateY(0);
}

/* ===== ADAPTIVE ===== */
@media (max-width: 915px) {
    .desktop-menu {
        display: none;
    }

    .burger {
        display: flex;
    }
}

/* ===== CLOSE BUTTON ===== */
.menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text);
    transition: transform 0.2s ease, color 0.2s ease;
}

.menu-close:hover {
    color: var(--accent);
    transform:   rotate(90deg);
}

.shop__right {
    width: 30%;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.monitor__box, .monitor__buys {
    padding: 15px;
    background: var(--card);
    border-radius: 10px;
}

.monitor__box h3,
.monitor__buys h3 {
    margin-bottom: 10px;
    font-size: 25px;
    text-align: center;
}
.monitor__online {
    display: flex;
    justify-content: center;
}

.monitor__ip {
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    color: white;
    text-transform: uppercase;
    background: var(--accent);
}

.monitor__ip span,
.monitor__online span {
    font-size: 14px;
    color: black;
}

.monitor__ip b,
.monitor__online b {
    font-weight: bold;
    color: white;
}

.monitor__box button {
    padding: 10px;
    font-size: 18px;
    border-radius: 6px;
    width: 100%;
    font-weight: bold;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.monitor__box button:hover {
    background: var(--accent-hover);
}

.monitor__buys .buy__item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    align-items: center;
}

.monitor__buys .avatar img {
    width: 48px;
    height: 48px;
    object-fit: cover;
}

.monitor__buys .info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.monitor__buys .info .item {
    font-size: 13px;
    color: #bbb;
}

.monitor__buys .info span b {
    color: var(--accent-red);
}

.monitor__buys .info .date {
    font-size: 12px;
    color: #777;
}

.monitor__buys .no__buys {
    color: gray;
}

.blur-transparent {
    filter: blur(2px);
    color: #000000b0;
}

.h3__red {
    color: var(--accent-red);
}

hr {
    filter: blur(1px);
}

@media (max-width: 750px) {
    .shop__right {
        display: none;
    }

    .shop__left {
        width: 100% !important;
    }

    .buy__row::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .gold__description {
        font-size: 15px;
    }

    .section__title {
        font-size: 25px;
    }
}

@media (max-width: 425px) {
    .gold__description {
        font-size: 13px;
    }

    .section__title {
        font-size: 23px;
    }

    .input__amount {
        font-size: 18px !important;
    }

    .buy__btn, .product button {
        font-size: 14px !important;
    }

    .category {
        font-size: 13px;
    }
}

.shop__wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.shop__left {
    width: 75%;
}

.footer-top a {
    color: var(--accent-hover);
}

.other__header__top {
    background-color: var(--accent);
    color: white;
    font-size: 25px;
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 9px 9px 2px 2px #d0d0d0;
}

.checkout__result {
    text-align: center;
    font-size: 21px;
}

.contacts__block {
    display: flex;
    flex-direction: column;
    background: var(--card);
    padding: 20px;
    width: 85%;
    margin: 0 auto;
    border-radius: 15px;
    gap: 5px;
}

.contacts__block {
    font-size: 20px;
}

.contacts__block a {
    color: var(--accent-hover);
}

@media (max-width: 915px) {
    .other__header__top {
        padding: 10px;
        font-size: 17px;
    }

    .checkout__result {
        font-size: 18px;
    }

    .contacts__block {
        font-size: 15px;
    }
}

.products .old__price {
    font-size: 13px;
    text-decoration: line-through;
    color: #c2a2a2;
}

@media (max-width: 425px) {
    .modal-content h2 {
        font-size: 18px;
    }

    .modal-content #item__name {
        padding: 5px 15px;
    }
}