.market-neo * {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.market-neo {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 40px;
}

@media (min-width: 768px) {
    .market-neo {
        flex-direction: row;
        align-items: unset;
        justify-content: center;
    }
}

.market-neo__badge {
    display: inline-block;

    padding: 2px 8px;
    margin: auto 0;
    border-radius: 20px;

    color: #f5f5f5;
    background: #3b82f6;

    text-transform: uppercase;
    font-size: small;
    font-weight: bold;
    letter-spacing: -0.025em;
}

.market-neo__item {
    padding: 15px;
    border-radius: 8px;

    background: white;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1),
        0 4px 6px -4px rgb(0 0 0 / 0.1);
    border: 1px solid #f3f4f6;
}

.market-neo__item__picture {
    width: 250px;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
}

.market-neo__item__picture--beta {
    background: no-repeat url('/assets/img/products/product-beta.jpg');
    background-size: contain;
}

.market-neo__item__picture--premium {
    background: no-repeat url('/assets/img/products/product-premium.jpg');
    background-size: contain;
}

.market-neo__item__picture--lite {
    background: no-repeat url('/assets/img/products/product-lite.jpg');
    background-size: contain;
}

.market-neo__item__picture--hwid-reset {
    background: no-repeat url('/assets/img/products/product-hwid-reset.webp');
    background-size: contain;
}

.market-neo__item__header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 15px;
}

.market-neo__item__name {
    font-size: larger;
    font-weight: bold;
}

.market-neo__item__price {
    font-size: large;
}

.market-neo__item__btn {
    width: 100%;
    padding: 5px 10px;
    border-radius: 6px;

    text-align: center;
    font-size: medium;
    font-weight: 500;
    letter-spacing: -0.025em;
    cursor: pointer;

    transition: background 250ms;
}

.market-neo__item__btn--buy {
    margin-top: 15px;

    color: white;
    background: #2563eb;
}

.market-neo__item__btn--buy:hover {
    background: #1d4ed8;
}

.market-neo__item__btn--funpay {
    margin-top: 5px;

    color: white;
    background: #2563ebaa;
}

.market-neo__item__btn--funpay:hover {
    background: #1d4ed8aa;
}

.market-neo__item__btn--details {
    margin-top: 5px;

    color: #2563eb;
    background: #eff6ff;
}

.market-neo__item__btn--details:hover {
    background: #dbeafe;
}

.market-neo__item__options {
    display: flex;

    margin-top: 5px;
}

.market-neo__item__option:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.market-neo__item__option:nth-child(n + 2) {
    border-left: none;
}

.market-neo__item__option:last-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.market-neo__item__option {
    display: inline-flex;
    justify-content: center;

    flex: 1;

    font-weight: 500;
    letter-spacing: -0.025em;
    cursor: pointer;

    transition: background 0.25s, border 0.25s, color 0.15s;
}

.market-neo__item__option--inactive {
    background: #e5e7eb;
    border: 1px solid #d1d5db;
}

.market-neo__item__option--inactive:hover {
    background: #d1d5db;
}

.market-neo__item__option--active {
    color: white;

    background: #6366f1;
    border: 1px solid #4f46e5;
}

.market-neo__popup {
    visibility: hidden;
    z-index: -10;

    display: flex;
    justify-content: center;
    align-items: center;

    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;

    background: transparent;
    transition: background 0.5s, opacity 0.25s;
}

@supports (height: 100dvh) {
    .market-neo__popup {
        height: 100dvh;
    }
}

.market-neo__popup--active {
    visibility: visible;
    z-index: 10;

    background: rgba(0, 0, 0, 0.4);
}

body:has(.market-neo__popup--active) {
    overflow: hidden;
}

.market-neo__popup:not(.market-neo__popup--active) .market-neo__product {
    opacity: 0;
    transform: scale(0.5);
}

.market-neo__product {
    display: flex;

    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 5px;

    overflow: hidden;

    background: #e5e7eb;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1),
        0 8px 10px -6px rgb(0 0 0 / 0.1);

    transition: opacity 0.5s,
        transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

@media (min-width: 640px) {
    .market-neo__product {
        max-width: 1200px;
        max-height: 700px;
    }
}

.market-neo__product__close {
    position: absolute;
    z-index: 20;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;

    background: url('/assets/img/products/x-mark.svg');

    cursor: pointer;
}

.market-neo__product__imgs {
    justify-content: center;
    align-items: center;

    position: relative;
    /* padding: 20px; */
}

.market-neo__product__imgs--desktop {
    display: none;

    flex: 1;
}

.market-neo__product__imgs--mobile {
    display: flex;

    margin-top: 15px;
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .market-neo__product__imgs--mobile {
        display: none;
    }

    .market-neo__product__imgs--desktop {
        display: flex;
    }
}

.market-neo__product__imgs:before {
    content: '';

    position: absolute;
    z-index: 0;
    width: 100%;
    height: 100%;

    background: var(--product-image),
        rgba(255, 255, 255, 0.5);
    background-blend-mode: color;
    background-size: cover;
    background-position: center;

    filter: blur(5px);
    transform: scale(1.05);
}

.market-neo__product__imgs--mobile:before {
    transform: none;
}

.market-neo__product__img {
    z-index: 10;
    width: 100%;

    background-image: var(--product-image);
    background-size: contain;
    background-repeat: no-repeat;

    aspect-ratio: 16 / 9;
}

.market-neo__product__img-overlay {
    display: flex;

    position: absolute;
    z-index: 10;
    inset: 0;
    width: 100%;
    height: 100%;

    /* visibility: hidden; */
}

.market-neo__product__imgs:hover .market-neo__product__img-overlay {
    visibility: visible;
}

.market-neo__product__img-switcher {
    flex: 1;

    background-position-y: center;
    background-size: 50px 50px;
    background-repeat: no-repeat;

    --shadow: drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.06));
    filter: opacity(0.5) var(--shadow);

    transition: filter 0.15s;
}

.market-neo__product__img-switcher:hover {
    filter: opacity(1) var(--shadow);
}

.market-neo__product__img-switcher--left {
    background-image: url('/assets/img/products/left.svg');
    background-position-x: left;
}

.market-neo__product__img-switcher--right {
    background-image: url('/assets/img/products/right.svg');
    background-position-x: right;
}

.market-neo__product__info {
    display: flex;
    flex-direction: column;

    z-index: 10;
    width: 100%;
    padding-top: 30px;
    padding-bottom: 20px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;

    background: white;

    overflow: auto;
}

@media (min-width: 768px) {
    .market-neo__product__info {
        width: 390px;
    }
}

.market-neo__product__title {
    display: flex;
    gap: 10px;

    padding: 0 20px;

    text-transform: uppercase;
    font-size: xx-large;
    font-weight: 900;
}

.market-neo__product__spiel {
    flex: 1;
    padding: 0 20px;

    color: #111827;
}

.market-neo__product__spiel--hwid-reset {
    display: none;
}

.market-neo__product__spiel strong {
    color: #030712;
}

.market-neo__product__spiel p,
.market-neo__product__spiel ul {
    margin: 15px 0;
}

.market-neo__product__advantages {
    padding: 0;
}

.market-neo__product__advantages li {
    list-style: none;

    padding-left: 30px;
    margin-bottom: 10px;

    background: url('/assets/img/products/check.svg') left center no-repeat;
    background-size: 20px 20px;
}

.market-neo__product__purchase {
    padding: 0 20px;
}

.market-neo__product__purchase__options {
    display: flex;
    gap: 10px;
}

.market-neo__product__purchase__option {
    flex: 1;
    padding: 5px 0;
    border-radius: 5px;

    border: 2px solid transparent;

    text-align: center;
    line-height: 1.15;

    transition: 0.15s ease-out;
    cursor: pointer;
}

.market-neo__product__purchase__option--inactive {
    color: #1e293b;
    background: #e2e8f0;
}

.market-neo__product__purchase__option--inactive:hover {
    background: #e0e7ff;
}

.market-neo__product__purchase__option--active {
    border-color: #4338ca;
    color: #4338ca;
    background: #e0e7ff;
}

.market-neo__product__purchase__duration {
    font-weight: bold;
    letter-spacing: -0.025em;
}

.market-neo__product__purchase__btn {
    padding: 8px 10px;
    margin-top: 15px;
    border-radius: 5px;

    color: white;
    background: #2563eb;

    text-align: center;
    font-weight: 600;
    letter-spacing: -0.025em;

    transition: 0.15s;
    cursor: pointer;
}

.market-neo__product__purchase__btn:hover {
    background: #1d4ed8;
}

.market-neo__img-preload {
    position: absolute;
    z-index: -100;
    visibility: hidden;
}

.market-neo__popup[data-product='hwidReset'] .market-neo__product__version {
    display: none;
}

.market-neo__popup[data-product='hwidReset'] .market-neo__product__spiel--client {
    display: none;
}

.market-neo__popup[data-product='hwidReset'] .market-neo__product__spiel--hwid-reset {
    display: block;
}