:root {
    --accent: #10ab7c;
    --accent-2: #14d19a;
    --accent-rgb: 16, 171, 124;
    --ink: #f4f4f4;
    --muted: rgba(255, 255, 255, 0.55);
    --line: rgba(255, 255, 255, 0.08);
    --danger: #ff5b5b;
}

#shop-section {
    position: relative;
}

#shop-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(900px 420px at 15% 0%, rgba(var(--accent-rgb), 0.10), transparent 65%),
        radial-gradient(700px 380px at 90% 100%, rgba(var(--accent-rgb), 0.07), transparent 60%);
}

#shop-section > .container {
    position: relative;
    z-index: 1;
}

input.input-username {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)), #121212 !important;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 32px rgba(0, 0, 0, 0.35);
    transition: border-color 0.25s, box-shadow 0.25s;
}

input.input-username::placeholder {
    color: rgba(255, 255, 255, 0.32);
}

input.input-username:hover {
    border-color: rgba(255, 255, 255, 0.16);
}

input.input-username:focus {
    border-color: rgba(var(--accent-rgb), 0.65);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12), 0 16px 44px rgba(var(--accent-rgb), 0.16);
}

.shop-button,
.chose-server-button {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #181818, #101010);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.shop-button::before,
.chose-server-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.65;
    transition: opacity 0.25s;
}

.shop-button:hover,
.chose-server-button:hover,
.shop-button:focus,
.chose-server-button:focus {
    transform: translateY(-1px);
    border-color: rgba(var(--accent-rgb), 0.5);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.10), 0 20px 48px rgba(var(--accent-rgb), 0.18);
    outline: none;
}

.shop-button:hover::before,
.chose-server-button:hover::before {
    opacity: 1;
}

.chosen-product,
.chosen-server {
    color: var(--ink);
    letter-spacing: 0.01em;
}

.chosen-product img,
.chosen-server img {
    border-radius: 8px;
    box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.5);
}

.chosen-product .text-danger {
    color: var(--danger) !important;
    opacity: 0.9;
}

.chose-product-icon,
.chose-server-icon {
    color: var(--accent);
    filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), 0.7));
}

.shop,
.select-server .servers {
    top: 76px;
    padding: 8px;
    color: var(--ink);
    background: rgba(15, 15, 15, 0.94);
    border: 1px solid rgba(var(--accent-rgb), 0.22);
    border-radius: 16px !important;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.7), 0 0 44px rgba(var(--accent-rgb), 0.10);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    animation: shop-drop 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.shop {
    max-height: 380px;
    overflow-x: hidden;
}

#shop::-webkit-scrollbar {
    width: 6px;
}

#shop::-webkit-scrollbar-track {
    background: transparent;
}

#shop::-webkit-scrollbar-thumb {
    background: rgba(var(--accent-rgb), 0.55);
    border-radius: 999px;
}

#shop::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--accent-rgb), 0.9);
}

#shop:empty {
    padding: 22px 16px;
    text-align: center;
}

#shop:empty::after {
    content: "Товары скоро появятся";
    display: block;
    color: var(--muted);
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

@keyframes shop-drop {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.shop > * + * {
    margin-top: 6px;
}

.shop a,
.shop [data-request],
.shop [onclick],
.shop [class*="item"],
.shop [class*="product"],
.shop .card {
    border-radius: 12px;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.shop a:hover,
.shop [data-request]:hover,
.shop [onclick]:hover,
.shop [class*="item"]:hover,
.shop [class*="product"]:hover,
.shop .card:hover {
    background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-rgb), 0.04));
    box-shadow: inset 3px 0 0 var(--accent);
    transform: translateX(2px);
}

.shop [class*="selected"],
.shop .active {
    background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.22), rgba(var(--accent-rgb), 0.06));
    box-shadow: inset 3px 0 0 var(--accent), 0 0 24px rgba(var(--accent-rgb), 0.15);
}

.shop h1,
.shop h2,
.shop h3,
.shop h4,
.shop h5,
.shop h6 {
    color: var(--ink);
    font-weight: 800;
}

.shop .text-black,
.shop .text-dark {
    color: inherit !important;
}

.shop [class*="category"] {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.shop [class*="price"],
.shop .text-secondary {
    color: var(--accent) !important;
    font-weight: 800;
    text-shadow: 0 0 16px rgba(var(--accent-rgb), 0.75);
}

.shop img,
.cart-products img {
    width: auto;
    max-height: 56px;
    object-fit: contain;
    border-radius: 10px;
}

.shop .sale,
.cart .sale {
    box-shadow: 0 10px 26px rgba(255, 74, 74, 0.4);
}

.cart-products {
    color: var(--ink);
}

.cart-products > * + * {
    margin-top: 12px;
}

.cart .card,
.cart .cart-product,
.cart [class*="product"] {
    background: linear-gradient(180deg, #171717, #101010);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.cart .card:hover,
.cart .cart-product:hover,
.cart [class*="product"]:hover {
    border-color: rgba(var(--accent-rgb), 0.5);
    box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.25), 0 24px 52px rgba(var(--accent-rgb), 0.16);
    transform: translateY(-2px);
}

.cart .text-black,
.cart .text-dark {
    color: var(--ink) !important;
}

.cart [class*="price"] {
    color: var(--accent);
    font-weight: 800;
}

.cart-cost {
    color: #fff;
    font-weight: 800;
    text-shadow: 0 0 28px rgba(var(--accent-rgb), 0.95);
}

.cart input[type="number"],
.cart input[type="text"] {
    height: 40px;
    color: var(--ink);
    background: #171717;
    border: 1px solid var(--line);
    border-radius: 10px;
    text-align: center;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.cart input[type="number"]:focus,
.cart input[type="text"]:focus {
    border-color: rgba(var(--accent-rgb), 0.55);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
    outline: none;
}

.cart .btn {
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.cart .btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.cart .btn-primary,
.cart .btn-success {
    color: #04120d;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    border: none;
    box-shadow: 0 14px 32px rgba(var(--accent-rgb), 0.32);
}

.cart .fa-times,
.cart [class*="delete"],
.cart [class*="remove"] {
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.cart .fa-times:hover,
.cart [class*="delete"]:hover,
.cart [class*="remove"]:hover {
    color: var(--danger);
    transform: scale(1.15);
}

.select-server .servers .card {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s, box-shadow 0.25s;
}

.select-server .servers .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.5), 0 20px 44px rgba(var(--accent-rgb), 0.18);
}

#payment-type .modal-content,
#accept-payment .modal-content {
    background: linear-gradient(180deg, #141414, #0d0d0d) !important;
    border: 1px solid var(--line);
    border-radius: 20px !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 60px rgba(var(--accent-rgb), 0.08);
    overflow: hidden;
}

#payment-type .modal-body {
    padding: 32px;
    background: transparent !important;
}

#payment-type h1,
#payment-type h4,
#accept-payment h1,
#accept-payment h2 {
    color: #fff !important;
}

#payment-type p,
#accept-payment p {
    color: var(--muted) !important;
}

#payment-type a {
    text-decoration: none;
}

#payment-type .card {
    background: #fff;
    border-radius: 14px !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s, box-shadow 0.2s;
}

#payment-type a:hover .card,
#payment-type .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.65), 0 22px 44px rgba(var(--accent-rgb), 0.25);
}

#payment-type .text-danger {
    color: var(--danger) !important;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 91, 91, 0.5);
}

#payment-type .text-danger:hover {
    border-bottom-color: var(--danger);
}

#accept-payment .cart-cost {
    color: var(--accent) !important;
}

.shop-button:focus-visible,
.chose-server-button:focus-visible,
.cart .btn:focus-visible {
    outline: 2px solid rgba(var(--accent-rgb), 0.8);
    outline-offset: 2px;
}

@media (max-width: 991.98px) {
    .shop,
    .select-server .servers {
        max-height: 300px;
    }

    .shop img,
    .cart-products img {
        max-height: 44px;
    }

    #payment-type .modal-body {
        padding: 20px;
    }
}
