
#aidpay .aidpay-bottom-padding {
    padding-bottom: 6rem;
}

.aidpay-steam-block {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #1d2025 0%, #23adff 100%);
    border: none;
    border-radius: 1.375rem;
    padding: 1.125rem 1rem 1rem;
    margin: 0.25rem 0 1.375rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.aidpay-steam-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.25rem;
}

.aidpay-steam-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.aidpay-steam-logo-box {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.8125rem;
    background: rgb(18 20 23);
    border: 0.0625rem solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.aidpay-steam-logo {
    width: 1.625rem;
    height: 1.625rem;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.aidpay-steam-titles {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.aidpay-steam-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f1f3f6;
    margin: 0;
    line-height: 1.2;
}

.aidpay-steam-subtitle {
    font-size: 0.6875rem;
    color: rgba(232, 236, 241, 0.5);
    margin-top: 0.125rem;
    font-weight: 500;
}

.aidpay-region-selector {
    background: rgba(255, 255, 255, 0.04);
    border: 0.0625rem solid rgba(255, 255, 255, 0.08);
    border-radius: 62.4375rem;
    padding: 0.375rem 0.625rem 0.375rem 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
}

.aidpay-region-selector:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}

.aidpay-region-selector:active { transform: scale(0.96); }

.aidpay-region-currency {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #f1f3f6;
    line-height: 1;
}

.aidpay-region-arrow {
    color: rgba(232, 236, 241, 0.5);
    font-size: 0.625rem;
}

.aidpay-payment-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.aidpay-input-wrapper {
    background: rgb(25 33 40);
    border: none;
    border-radius: 1.75rem;
    padding: 0.875rem 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.18s ease, box-shadow 0.18s ease;
    min-height: 3.40625rem;
}

.aidpay-input-wrapper:focus-within {
    background: rgb(28 38 48);
    box-shadow: inset 0 0 0 0.0625rem rgba(46, 117, 222, 0.5);
}

.aidpay-input-account {
    width: 55%;
    flex-shrink: 0;
}

.aidpay-input-amount {
    flex: 1;
    min-width: 0;
}

.aidpay-input-leading {
    font-size: 0.875rem;
    color: rgba(232, 236, 241, 0.4);
    flex-shrink: 0;
}

.aidpay-input-field,
.aidpay-amount-field {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.9375rem;
    line-height: 1.5;
    font-weight: 500;
    color: #ffffff;
    padding: 0;
    min-width: 0;
    font-family: inherit;
}

.aidpay-amount-field {
    font-weight: 600;
}

.aidpay-input-field::placeholder,
.aidpay-amount-field::placeholder {
    color: rgba(232, 236, 241, 0.35);
    font-weight: 400;
}

.aidpay-amount-currency {
    font-size: 0.9375rem;
    font-weight: 700;
    color: rgba(232, 236, 241, 0.55);
    line-height: 1;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.aidpay-info-btn {
    width: 1.625rem;
    height: 1.625rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(232, 236, 241, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}

.aidpay-info-btn:focus,
.aidpay-info-btn:focus-visible {
    outline: none;
}

.aidpay-info-btn:hover {
    background: rgba(50, 130, 215, 0.18);
    color: #6aa8ec;
}

.aidpay-info-btn i { font-size: 0.875rem; }

.aidpay-method-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    margin: 0.25rem 0 0;
    border-radius: 1.5rem;
    background: rgb(25 33 40);
    border: none;
    cursor: pointer;
    color: inherit;
    font-family: inherit;
    text-align: left;
    transition: background 0.15s ease, transform 0.12s ease;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}

.aidpay-method-card:focus,
.aidpay-method-card:focus-visible { outline: none; }
.aidpay-method-card:hover { background: rgb(28 38 48); }
.aidpay-method-card:active { transform: scale(0.99); }

.aidpay-method-card__logo {
    flex-shrink: 0;
    width: 2.5rem;
    max-width: 2.5rem;
    height: 2.5rem;
    border-radius: 100%;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 0.0625rem rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.aidpay-method-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.aidpay-method-card__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.aidpay-method-card__title {
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 100%;
    color: #B1B4B9;
}

.aidpay-method-card__value {
    font-weight: 600;
    font-size: 1rem;
    line-height: 100%;
    padding-top: 0.5rem;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aidpay-method-card__arrow {
    flex-shrink: 0;
    max-width: 2.875rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    opacity: 0.8;
}

.aidpay-method-card__arrow img {
    width: 1.5rem;
    height: 1.5rem;
    display: block;
}

.aidpay-payment-method .wallet-panel-item__icon img {
    padding: 0.3125rem;
    box-sizing: border-box;
}

.aidpay-rate-hint {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0 0.25rem;
    margin: -0.25rem 0 0;
    font-size: 0.6875rem;
    line-height: 1.3;
    color: rgba(232, 236, 241, 0.55);
}

.aidpay-rate-hint[hidden] { display: none; }
.aidpay-rate-hint__icon { font-size: 0.75rem; flex-shrink: 0; }
.aidpay-rate-hint__text {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.aidpay-rate-hint__text strong { color: #dcdde0; font-weight: 600; }

.aidpay-limit-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding: 1.25rem;
    margin: 0.25rem 0 0;
    border-radius: 1.5rem;
    background: rgb(25 33 40);
    border: none;
    cursor: pointer;
    color: inherit;
    font-family: inherit;
    text-align: left;
    transition: background 0.15s ease, transform 0.12s ease;
    -webkit-appearance: none;
    appearance: none;
}

.aidpay-limit-info[hidden] { display: none; }

/* Лимит без комиссии и выбор способа оплаты — две невысокие карточки, и на
   широкой колонке каждая тянулась через всю форму. Остальные строки формы
   по-прежнему во всю ширину, поэтому пара собрана сеткой с явными пролётами,
   а не обёрткой в разметке: обёртка разорвала бы поток формы на мобильной.
   Высоту карточек намеренно не выравниваем вручную — строка сетки растягивает
   обе по большей из них. */
body.web-desktop #aidpay .aidpay-steam-block {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.web-desktop #aidpay .aidpay-steam-block > * {
    grid-column: 1 / -1;
}

body.web-desktop #aidpay .aidpay-steam-block > .aidpay-limit-info {
    grid-column: 1;
    margin: 0;
}

body.web-desktop #aidpay .aidpay-steam-block > .aidpay-method-card {
    grid-column: 2;
    margin: 0;
}

.aidpay-limit-info:hover { background: rgb(28 38 48); }
.aidpay-limit-info:active { transform: scale(0.99); }

.aidpay-limit-info__row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.aidpay-limit-info__icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.875rem;
    background: rgba(255, 178, 60, 0.10);
    color: #b9c4d1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9375rem;
    box-shadow: inset 0 0 0 0.0625rem rgba(255, 178, 60, 0.16);
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.aidpay-limit-info[data-state="has-vpn"] .aidpay-limit-info__icon {
    background: rgba(255, 178, 60, 0.18);
    color: #ffc35a;
    box-shadow: inset 0 0 0 0.0625rem rgba(255, 178, 60, 0.32);
}

.aidpay-limit-info[data-fee="full"] .aidpay-limit-info__icon,
.aidpay-limit-info[data-fee="mixed"] .aidpay-limit-info__icon {
    background: rgba(220, 78, 65, 0.16);
    color: #ff8a7f;
    box-shadow: inset 0 0 0 0.0625rem rgba(220, 78, 65, 0.26);
}

.aidpay-limit-info__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.aidpay-limit-info__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #f1f3f6;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aidpay-limit-info__subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(232, 236, 241, 0.55);
    line-height: 1.35;
}

.aidpay-limit-info__meta {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3125rem;
}

.aidpay-limit-info__counter {
    font-size: 0.65625rem;
    font-weight: 600;
    color: rgba(232, 236, 241, 0.42);
    line-height: 1;
    white-space: nowrap;
    font-feature-settings: "tnum";
}

.aidpay-limit-info__counter:empty {
    display: none;
}

.aidpay-limit-info__fee {
    flex-shrink: 0;
    align-self: flex-end;
    padding: 0.25rem 0.625rem;
    border-radius: 62.4375rem;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(232, 236, 241, 0.72);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.0125rem;
    line-height: 1;
    font-feature-settings: "tnum";
    transition: background 0.2s ease, color 0.2s ease;
}

.aidpay-limit-info[data-fee="free"] .aidpay-limit-info__fee {
    background: rgba(75, 181, 67, 0.16);
    color: #6fd663;
}

.aidpay-limit-info[data-fee="mixed"] .aidpay-limit-info__fee {
    background: rgba(75, 181, 67, 0.16);
    color: #6fd663;
}

.aidpay-limit-info[data-fee="full"] .aidpay-limit-info__fee {
    background: rgba(220, 78, 65, 0.18);
    color: #ff8a7f;
}

.aidpay-promo-badge {
    display: block;
    width: fit-content;
    margin: 0 auto 0.875rem;
    padding: 0.1875rem 0.75rem;
    border-radius: 62.4375rem;
    background: rgba(75, 181, 67, 0.16);
    color: #6fd663;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.0625rem;
    text-transform: uppercase;
}

.aidpay-limit-info__track {
    position: relative;
    height: 0.3125rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 62.4375rem;
    overflow: hidden;
    display: block;
}

.aidpay-limit-info__fill {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 0;
    left: 0;
    border-radius: inherit;
    transition: width 0.25s ease, left 0.25s ease, background 0.2s ease, opacity 0.2s ease;
}

.aidpay-limit-info--noanim .aidpay-limit-info__fill {
    transition: none;
}

.aidpay-limit-info__fill--used {
    background: rgba(232, 236, 241, 0.45);
}

.aidpay-limit-info__fill--preview {
    background: linear-gradient(90deg, #f5b549, #ffd17a);
}

.aidpay-limit-info__fill--overflow {
    background: linear-gradient(90deg, #e96b5e, #ff9b8e);
}

.aidpay-limit-info[data-state="no-vpn"] .aidpay-limit-info__fill--used,
.aidpay-limit-info[data-state="no-vpn"] .aidpay-limit-info__fill--preview {
    background: rgba(255, 255, 255, 0.18);
}

.aidpay-limit-info[data-state="no-vpn"] .aidpay-limit-info__fill--overflow {
    opacity: 0;
}

.aidpay-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.625rem;
    padding: 0.375rem 0.25rem 1.375rem;
}

.aidpay-status__icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.875rem;
    margin-bottom: 0.125rem;
}

.aidpay-status.is-pending .aidpay-status__icon { background: rgba(245, 181, 73, 0.14); color: #ffc35a; }
.aidpay-status.is-success .aidpay-status__icon { background: rgba(75, 181, 67, 0.16); color: #6fd663; }
.aidpay-status.is-failed  .aidpay-status__icon { background: rgba(220, 78, 65, 0.16); color: #ff8a7f; }

.aidpay-status__spinner {
    width: 1.875rem;
    height: 1.875rem;
    border-radius: 50%;
    border: 0.1875rem solid rgba(255, 195, 90, 0.25);
    border-top-color: #ffc35a;
    animation: aidpay-status-spin 0.8s linear infinite;
}

@keyframes aidpay-status-spin {
    to { transform: rotate(360deg); }
}

.aidpay-status__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 800;
    color: #f1f3f6;
}

.aidpay-status__sub {
    margin: 0 0.375rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: rgba(232, 236, 241, 0.6);
}

.aidpay-status__rows {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.5rem 0 0.25rem;
}

.aidpay-status__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6875rem 0.875rem;
    border-radius: 0.75rem;
    background: rgb(25 33 40);
    font-size: 0.8125rem;
}

.aidpay-status__row span { color: rgba(232, 236, 241, 0.55); }
.aidpay-status__row strong { color: #f1f3f6; font-weight: 700; }

.aidpay-status .button-blue-primary { width: 100%; margin-top: 0.375rem; }

.aidpay-status__ghost {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.625rem;
    background: transparent;
    border: none;
    color: rgba(232, 236, 241, 0.7);
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.aidpay-status__ghost:active { opacity: 0.7; }

.aidpay-balance-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.25rem 0 0;
    padding: 0.6875rem 0.875rem;
    border-radius: 0.875rem;
    background: rgb(25 33 40);
    color: rgba(232, 236, 241, 0.62);
    font-size: 0.78125rem;
    font-weight: 500;
}

.aidpay-balance-note[hidden] {
    display: none;
}

.aidpay-balance-note i {
    font-size: 0.875rem;
    color: #6fd663;
}

/* Геометрию задаёт .ui-button, здесь остаётся только окраска: на синем блоке
   Steam акцентная заливка сливается с фоном, поэтому кнопка белая. */
.aidpay-submit-btn,
.aidpay-submit-btn:hover,
.aidpay-submit-btn:active {
    background: #ffffff;
    color: #121417;
}

.aidpay-submit-btn {
    width: 100%;
    font-weight: 600;
    font-family: inherit;
    box-shadow: 0 0.375rem 1.125rem -0.5rem rgba(0, 0, 0, 0.45);
    margin-top: 0.25rem;
}

.aidpay-submit-btn:hover {
    box-shadow: 0 0.5rem 1.375rem -0.375rem rgba(0, 0, 0, 0.55);
}

.aidpay-submit-btn:active {
    transform: scale(0.98);
}

.aidpay-submit-btn:disabled,
.aidpay-submit-btn[disabled] {
    opacity: 1;
    background: #192128;
    color: #ffffff7a;
    cursor: not-allowed;
    box-shadow: none;
}

.aidpay-shop-hidden { display: none !important; }

.aidpay-coming-soon {
    margin-top: 0.375rem;
    padding: 1.75rem 1.25rem;
    border-radius: 1.375rem;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.625rem;
}

.aidpay-coming-soon__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #f1f3f6;
    line-height: 1.3;
    max-width: 20rem;
}

.aidpay-coming-soon__text {
    font-size: 0.8125rem;
    color: rgba(232, 236, 241, 0.55);
    line-height: 1.45;
    max-width: 21.25rem;
}

.aidpay-tab-hidden { display: none; }

.aidpay-tab { display: none; }
.aidpay-tab.active { display: block; }

.aidpay-other-products { margin-top: 0; }

.aidpay-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
    max-width: 100%;
}

@media (max-width: 480px) {
    .aidpay-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
}

@media (min-width: 640px) {
    .aidpay-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 900px) {
    .aidpay-products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Плитки квадратные, и на широкой десктопной колонке пятёрка раздувает их до
   размера, на котором логотип игры уже не разглядывают, а обходят взглядом.
   Шестая в ряду возвращает плитке разумный размер и показывает больше товаров
   без прокрутки. Отдельно от медиазапросов выше: те считают по окну, а здесь
   решает ширина колонки контента, которую задаёт десктопный режим. */
body.web-desktop .aidpay-products-grid {
    grid-template-columns: repeat(6, 1fr);
}

.aidpay-product-card {
    background: transparent;
    border: 0;
    border-radius: 1rem;
    padding: 0;
    aspect-ratio: 1;
    display: block;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: #ffffff;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

@media (hover: hover) and (pointer: fine) {
    .aidpay-product-card:hover {
        background: transparent;
    }

    .aidpay-product-card:hover .aidpay-shop__img {
        transform: scale(1.08);
    }
}
.aidpay-shop__img {
    transition: transform 0.25s ease;
}

.aidpay-product-card:active { transform: scale(0.96); }

.aidpay-product-card__icon-wrap {
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.025);
    overflow: hidden;
}

.aidpay-product-card__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 1.125rem 0.5rem 0.4375rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.62) 45%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}
.aidpay-product-card__caption span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.71875rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.6);
}

.aidpay-product-icon {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin: 0;
}

.aidpay-product-name {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #f1f3f6;
    text-align: center;
    line-height: 1.25;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    height: calc(1.25em * 2);
    margin-top: auto;
    padding-top: 0.125rem;
}

.aidpay-product-card.coming-soon {
    opacity: 0.55;
    cursor: not-allowed;
}

.aidpay-product-card.coming-soon::after {
    content: 'СКОРО';
    position: absolute;
    top: 0.375rem;
    right: 0.375rem;
    background: rgba(255, 255, 255, 0.1);
    color: #8E8E93;
    font-size: 0.53125rem;
    font-weight: 700;
    padding: 0.1875rem 0.375rem;
    border-radius: 0.375rem;
    letter-spacing: 0.03125rem;
}

.aidpay-product-card.coming-soon:active { transform: none; }

.aidpay-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
    max-width: 100%;
}

.aidpay-service-card {
    background: #16181c;
    border: 0.0625rem solid rgba(255, 255, 255, 0.05);
    border-radius: 1.125rem;
    padding: 0.875rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    aspect-ratio: 1;
}

.aidpay-service-card:active { transform: scale(0.95); }
.aidpay-service-card:hover {
    background: #1c1f25;
    border-color: rgba(255, 255, 255, 0.1);
}

.aidpay-service-card.coming-soon {
    opacity: 0.5;
    cursor: not-allowed;
}

.aidpay-service-card.coming-soon::after {
    content: 'СКОРО';
    position: absolute;
    top: 0.375rem;
    right: 0.375rem;
    background: rgba(255, 255, 255, 0.1);
    color: #8E8E93;
    font-size: 0.5625rem;
    font-weight: 700;
    padding: 0.1875rem 0.375rem;
    border-radius: 0.375rem;
    letter-spacing: 0.03125rem;
}

.aidpay-service-card.coming-soon:active { transform: none; }

.aidpay-service-icon {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    margin-bottom: 0.25rem;
}

.aidpay-service-name {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #FFFFFF;
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 360px) {
    .aidpay-product-name,
    .aidpay-service-name { font-size: 0.625rem; }
    .aidpay-service-icon { width: 2.5rem; height: 2.5rem; }
    .aidpay-steam-title { font-size: 0.9375rem; }
    .aidpay-input-field,
    .aidpay-amount-field { font-size: 0.8125rem; }
}

.aidpay-history-container { padding-top: 0.25rem; }

.aidpay-history-item {
    background: #1b1e23;
    border: 0.0625rem solid rgba(255, 255, 255, 0.04);
    border-radius: 1.125rem;
    padding: 0.875rem 0.875rem 0.75rem;
    margin-bottom: 0.625rem;
    transition: border-color 0.2s ease;
}

.aidpay-history-item:hover { border-color: rgba(255, 255, 255, 0.1); }

.aidpay-history-main {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0;
}

.aidpay-history-icon-wrap {
    width: 2.625rem;
    height: 2.625rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.aidpay-history-icon-wrap i {
    font-size: 1.125rem;
    color: rgba(232, 236, 241, 0.55);
}

.aidpay-history-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.75rem;
    display: block;
}

.aidpay-history-info {
    flex: 1;
    min-width: 0;
}

.aidpay-history-service {
    font-size: 0.875rem;
    font-weight: 600;
    color: #f1f3f6;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aidpay-history-meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.25rem;
    font-size: 0.6875rem;
    line-height: 1;
    color: rgba(232, 236, 241, 0.5);
    font-weight: 500;
}

.aidpay-history-type {
    color: rgba(106, 168, 236, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.0375rem;
    font-size: 0.625rem;
    font-weight: 700;
}

.aidpay-history-meta-sep { opacity: 0.5; }

.aidpay-history-date { color: rgba(232, 236, 241, 0.5); }

.aidpay-history-amount {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    flex-shrink: 0;
    padding-left: 0.5rem;
}

.aidpay-history-code {
    margin-top: 0.625rem;
    background: rgba(0, 0, 0, 0.32);
    border: 0.0625rem dashed rgba(255, 255, 255, 0.08);
    border-radius: 0.625rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-family: 'SF Mono', Monaco, Menlo, monospace;
    color: rgba(241, 243, 246, 0.92);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.aidpay-shop-invite {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin: 0.75rem 0 0.25rem;
    text-align: left;
}

.aidpay-shop-invite__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.aidpay-shop-invite__input {
    width: 100%;
    background: rgba(0, 0, 0, 0.32);
    border: 0.0625rem solid rgba(255, 255, 255, 0.1);
    border-radius: 0.625rem;
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
    color: #fff;
    outline: none;
}

.aidpay-shop-invite__input:focus {
    border-color: rgba(99, 161, 255, 0.55);
}

.aidpay-shop-invite__hint {
    font-size: 0.71875rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.45);
}

.aidpay-shop-fields {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    width: 100%;
    margin: 0.75rem 0 0.25rem;
    text-align: left;
}

.aidpay-shop-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.aidpay-shop-field__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.aidpay-field-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.aidpay-field-chip {
    padding: 0.625rem 0.875rem;
    font-size: 0.84375rem;
}
.aidpay-field-chip.is-active {
    background: rgba(255, 255, 255, 0.07);
    color: #f1f3f6;
}

.aidpay-shop-paymethods {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.875rem 0 0;
}
.aidpay-shop-paymethods__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(232, 236, 241, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.0375rem;
    margin: 0 0.125rem 0.125rem;
}

.aidpay-region-row:disabled,
.aidpay-region-row.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.aidpay-region-row:disabled .aidpay-region-row__check,
.aidpay-region-row.is-disabled .aidpay-region-row__check {
    display: none;
}

.aidpay-shop-field__hint {
    margin: 0;
}

.aidpay-shop-stars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    text-align: left;
}
.aidpay-shop-stars__presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.aidpay-shop-stars__presets .aidpay-region-chip {
    flex: 0 0 auto;
}

.aidpay-shop-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    width: 100%;
    margin: 0.875rem 0.125rem 0.375rem;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.aidpay-shop-consent__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.aidpay-shop-consent__check {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.0625rem;
    border-radius: 0.375rem;
    border: 0.09375rem solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8125rem;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.aidpay-shop-consent__check i {
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.aidpay-shop-consent__input:checked + .aidpay-shop-consent__check {
    background: #63a1ff;
    border-color: #63a1ff;
}
.aidpay-shop-consent__input:checked + .aidpay-shop-consent__check i {
    opacity: 1;
    transform: scale(1);
}
.aidpay-shop-consent__input:focus-visible + .aidpay-shop-consent__check {
    box-shadow: 0 0 0 0.1875rem rgba(99, 161, 255, 0.3);
}
.aidpay-shop-consent:active .aidpay-shop-consent__check {
    transform: scale(0.92);
}
.aidpay-shop-consent__text {
    font-size: 0.78125rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
}

.aidpay-shop-invite--history {
    margin: 0.625rem 0 0;
    padding-top: 0.625rem;
    border-top: 0.0625rem dashed rgba(255, 255, 255, 0.08);
}

.aidpay-shop-invite__send {
    margin-top: 0.125rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
}

.aidpay-history-gift {
    margin-top: 0.625rem;
    padding: 0.5rem 0.75rem;
    background: rgba(46, 204, 113, 0.08);
    border: 0.0625rem dashed rgba(46, 204, 113, 0.25);
    border-radius: 0.625rem;
    font-size: 0.75rem;
    color: #58d68d;
}

.aidpay-shop-success__code {
    width: 100%;
    margin-top: 0.875rem;
    font-size: 0.875rem;
}

.aidpay-history-code-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.01875rem;
}

.aidpay-history-copy-btn {
    background: rgba(255, 255, 255, 0.04);
    border: none;
    color: rgba(232, 236, 241, 0.6);
    cursor: pointer;
    padding: 0.25rem;
    width: 1.625rem;
    height: 1.625rem;
    border-radius: 0.4375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    flex-shrink: 0;
}

.aidpay-history-copy-btn:hover {
    background: rgba(50, 130, 215, 0.18);
    color: #6aa8ec;
}

a.aidpay-history-copy-btn { text-decoration: none; }

.aidpay-history-copy-btn .bi { font-size: 0.8125rem; }

.aidpay-history-copy-btn:active { transform: scale(0.92); }

.aidpay-history-empty {
    text-align: center;
    padding: 3.75rem 1.25rem;
    color: rgba(232, 236, 241, 0.5);
    font-size: 0.875rem;
}

.aidpay-container {
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.aidpay-purchase-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
}

.aidpay-purchase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(0.25rem);
    animation: aidpayFadeIn 0.2s ease;
}

.aidpay-purchase-content {
    position: relative;
    width: 100%;
    max-height: 85vh;
    background: #1D2025;
    border-radius: 1.5rem 1.5rem 0 0;
    padding: 0;
    animation: aidpaySlideUp 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (min-width: 600px) {
    .aidpay-purchase-content { max-height: 69vh; }
}

.aidpay-purchase-header {
    padding: 1rem 1.25rem;
    border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: flex-end;
}

.aidpay-close-btn {
    width: 2rem;
    height: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #8E8E93;
    transition: all 0.2s ease;
}

.aidpay-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.aidpay-purchase-body {
    padding: 1.5rem 1.25rem;
    overflow-y: auto;
    flex: 1;
}

.aidpay-service-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.aidpay-service-header-icon {
    width: 5rem;
    height: 5rem;
    object-fit: contain;
    margin: 0 auto 1rem;
}

.aidpay-service-header-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 0.5rem 0;
}

.aidpay-service-header-description {
    font-size: 0.875rem;
    color: #8E8E93;
    margin: 0;
}

.aidpay-amount-section { margin-bottom: 1.25rem; }

.aidpay-amount-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #B1B4B9;
    margin-bottom: 0.5rem;
    display: block;
}

.aidpay-amount-input-wrapper {
    background: #16181C;
    border: 0.0625rem solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.aidpay-amount-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1.75rem;
    font-weight: 600;
    color: #FFFFFF;
    padding: 0;
}

.aidpay-amount-hint {
    font-size: 0.75rem;
    color: #8E8E93;
    margin-top: 0.5rem;
}

.aidpay-quick-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.aidpay-quick-amount-btn {
    background: #16181C;
    border: 0.0625rem solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s ease;
}

.aidpay-quick-amount-btn:hover {
    background: #1D2025;
    border-color: rgba(255, 255, 255, 0.2);
}

.aidpay-quick-amount-btn.active {
    background: rgba(50, 130, 215, 0.18);
    border-color: #3282d7;
    color: #6aa8ec;
}

.aidpay-info-block {
    background: #16181C;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.aidpay-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.aidpay-info-row:not(:last-child) {
    border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.05);
}

.aidpay-info-label { font-size: 0.875rem; color: #8E8E93; }
.aidpay-info-value { font-size: 0.875rem; font-weight: 600; color: #FFFFFF; }

.aidpay-purchase-btn {
    width: 100%;
    background: #3282d7;
    color: #FFFFFF;
    border: none;
    border-radius: 1rem;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.aidpay-purchase-btn:hover { background: #2266b0; }
.aidpay-purchase-btn:active { transform: scale(0.98); }
.aidpay-purchase-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: #8E8E93;
    cursor: not-allowed;
}

@keyframes aidpayFadeIn {
    from { opacity: 0; } to { opacity: 1; }
}

@keyframes aidpaySlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.aidpay-vpn-benefits { padding: 1.375rem 1.25rem 1.5rem; }

.aidpay-vpn-benefits__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.125rem;
}

.aidpay-vpn-benefits__icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(46, 117, 222, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.aidpay-vpn-benefits__icon i {
    font-size: 1.625rem;
    color: #6aa8ec;
    line-height: 1;
}

.aidpay-vpn-benefits__icon--ok {
    background: rgba(75, 181, 67, 0.16);
}

.aidpay-vpn-benefits__icon--ok i {
    color: #6fd663;
}

.aidpay-vpn-benefits__title {
    font-size: 1.1875rem;
    font-weight: 700;
    color: #f1f3f6;
    margin: 0 0 0.375rem;
}

.aidpay-vpn-benefits__subtitle {
    font-size: 0.8125rem;
    color: rgba(232, 236, 241, 0.6);
    margin: 0;
    line-height: 1.4;
    max-width: 20rem;
}

.aidpay-vpn-benefits__list {
    background: #1b1e23;
    border: 0.0625rem solid rgba(255, 255, 255, 0.055);
    border-radius: 1rem;
    padding: 0.25rem 0.875rem;
    margin-bottom: 1rem;
}

.aidpay-vpn-benefits__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
}

.aidpay-vpn-benefits__item + .aidpay-vpn-benefits__item {
    border-top: 0.0625rem solid rgba(255, 255, 255, 0.05);
}

.aidpay-vpn-benefits__check {
    width: 1.625rem;
    height: 1.625rem;
    border-radius: 50%;
    background: rgba(46, 117, 222, 0.16);
    box-shadow: inset 0 0 0 0.0625rem rgba(46, 117, 222, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6aa8ec;
    font-size: 0.8125rem;
    flex-shrink: 0;
}

.aidpay-vpn-benefits__text {
    flex: 1;
    min-width: 0;
    padding-top: 0.125rem;
}

.aidpay-vpn-benefits__text strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #f1f3f6;
    margin-bottom: 0.125rem;
    line-height: 1.25;
}

.aidpay-vpn-benefits__text small {
    display: block;
    font-size: 0.75rem;
    color: rgba(232, 236, 241, 0.55);
    line-height: 1.4;
}

.aidpay-vpn-benefits__close {
    width: 100%;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    color: #f1f3f6;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.12s ease;
    -webkit-appearance: none;
    appearance: none;
}

.aidpay-vpn-benefits__close:hover { background: rgba(255, 255, 255, 0.08); }
.aidpay-vpn-benefits__close:active { transform: scale(0.99); }

.aidpay-total-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.aidpay-total-info {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.aidpay-total-label { font-size: 0.875rem; font-weight: 500; color: #8E8E93; }
.aidpay-total-amount { font-size: 1.25rem; font-weight: 700; color: #FFFFFF; }

.aidpay-vpn-badge {
    background: rgba(50, 130, 215, 0.1);
    border: 0.0625rem solid rgba(50, 130, 215, 0.2);
    border-radius: 0.75rem;
    padding: 0.375rem 0.625rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #6aa8ec;
    white-space: nowrap;
}

.aidpay-vpn-badge.active {
    background: rgba(75, 181, 67, 0.12);
    border-color: rgba(75, 181, 67, 0.2);
    color: #6fd663;
}

.aidpay-vpn-badge i { font-size: 0.75rem; }

.aidpay-region-list {
    padding: 1.25rem 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.aidpay-region-list__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #f1f3f6;
    margin: 0 0.125rem 0.5rem;
}

.aidpay-region-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    background: #1D2025;
    border: 0.0625rem solid transparent;
    border-left: none;
    border-radius: 1rem;
    cursor: pointer;
    color: inherit;
    font-family: inherit;
    text-align: left;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
}

.aidpay-region-row:hover {
    background: #22262c;
}

.aidpay-region-row:active {
    transform: scale(0.995);
}

.aidpay-region-row.is-active {
    border-color: transparent;
    background:
        linear-gradient(270deg, rgba(46, 117, 222, 0.10) 0%, rgba(46, 117, 222, 0) 100%),
        #1D2025;
}

.aidpay-region-row__symbol {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: #f1f3f6;
    line-height: 1;
    font-feature-settings: "tnum";
}

.aidpay-region-row.is-active .aidpay-region-row__symbol {
    background: rgba(46, 117, 222, 0.18);
    color: #9cc4f0;
}

.aidpay-region-row__symbol--logo {
    background: transparent;
    border: none;
    border-radius: 50%;
    overflow: hidden;
    padding: 0;
}

.aidpay-region-row__symbol--logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.aidpay-region-row.is-active .aidpay-region-row__symbol--logo {
    background: transparent;
    border: none;
}

.aidpay-region-list__category {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(232, 236, 241, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.0375rem;
    padding: 0.5rem 0.25rem 0.125rem;
    margin-top: 0.25rem;
}

.aidpay-region-list__category:first-child {
    margin-top: 0;
}

.aidpay-region-list__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    padding: 0 0.125rem 0.375rem;
}

.aidpay-region-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.4375rem;
    border-radius: 62.4375rem;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    color: rgba(232, 236, 241, 0.7);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.aidpay-region-flag {
    width: 1.125rem;
    height: 0.8125rem;
    border-radius: 0.125rem;
    object-fit: cover;
    display: block;
}

.aidpay-region-globe {
    font-size: 0.8125rem;
    line-height: 1;
    color: rgba(232, 236, 241, 0.55);
}

.aidpay-region-chip:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #f1f3f6;
}

.aidpay-region-chip.is-active {
    background: var(--ui-color-border-strong, #3F444C);
    color: var(--ui-color-text-soft, #DCDDE0);
}

.aidpay-region-chip__count {

    margin-left: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    color: rgba(232, 236, 241, 0.4);
}

.aidpay-region-chip.is-active .aidpay-region-chip__count {
    color: rgba(220, 221, 224, 0.6);
}

.aidpay-region-list__rows {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.aidpay-region-row__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.aidpay-region-row__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #f1f3f6;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aidpay-region-row__subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(232, 236, 241, 0.45);
    line-height: 1.2;
    letter-spacing: 0.025rem;
}

.aidpay-region-row__check {
    flex-shrink: 0;
    width: 1.375rem;
    height: 1.375rem;
    border-radius: 50%;
    border: 0.09375rem solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.8125rem;
    line-height: 1;
    background: transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.aidpay-region-row.is-active .aidpay-region-row__check {
    background: #2e75de;
    border-color: #2e75de;
}

.aidpay-region-row__check i { line-height: 1; }
.aidpay-region-row:not(.is-active) .aidpay-region-row__check i { display: none; }

.gift-card-regions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.gift-card-region-option {
    background: #1D2025;
    border: 0.125rem solid transparent;
    border-radius: 0.75rem;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gift-card-region-option:hover { background: #22252A; }

.gift-card-region-option.active {
    border-color: #3282d7;
    background: rgba(50, 130, 215, 0.1);
}

.gift-card-region-flag { font-size: 1.5rem; line-height: 1; }

.gift-card-region-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #FFFFFF;
}

#aidpay .button-blue-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.aidpay-shop {
    margin-top: 0.375rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.aidpay-shop__sticky {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    width: 100%;
    padding-bottom: 0.625rem;
    background: var(--app-main-bg-color, #0b0d10);
}

.aidpay-shop--history .aidpay-shop__sticky .programs-scroll-wrap,
.aidpay-shop--history .aidpay-shop__sticky .aidpay-shop__search {
    display: none;
}

.aidpay-shop > .toggle-content {
    margin-top: 0;
    width: calc(100% - 0.125rem);
    margin-left: auto;
    margin-right: auto;
}

.aidpay-shop--loading > .toggle-content > .toggle-content__item--active {
    min-height: 100vh;
    min-height: 100dvh;
}

.aidpay-shop__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.aidpay-shop__title {
    font-size: 1rem;
    font-weight: 700;
    color: #f1f3f6;
}

.aidpay-shop__tabs.programs-scroll {
    gap: 0.5rem;
}

.aidpay-shop__tab {
    flex: 0 0 auto;
    padding: 0.5rem 0.875rem;
    border-radius: 62.4375rem;
    border: none;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(232, 236, 241, 0.7);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}
.aidpay-shop__tab:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #f1f3f6;
}
.aidpay-shop__tab:active { transform: scale(0.97); }
.aidpay-shop__tab.is-active {
    background: var(--ui-color-border-strong, #3F444C);
    color: var(--ui-color-text-soft, #DCDDE0);
}

.aidpay-shop__search {
    position: relative;
    display: flex;
    align-items: center;
}
.aidpay-shop__search-icon {
    position: absolute;
    left: 0.875rem;
    color: rgba(232, 236, 241, 0.4);
    font-size: 0.9375rem;
    pointer-events: none;
}
.aidpay-shop__search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 0.875rem 0.75rem 2.5rem;
    border-radius: 0.875rem;
    border: none;
    background: #1e2127;
    color: #f1f3f6;
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
}
.aidpay-shop__search-input::placeholder { color: rgba(232, 236, 241, 0.35); }
.aidpay-shop__search-input:focus { border-color: rgba(35, 173, 255, 0.5); }

.aidpay-shop__card-meta {
    font-size: 0.59375rem;
    font-weight: 600;
    color: rgba(232, 236, 241, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.025rem;
}
.aidpay-shop__card-fallback {
    font-size: 1.625rem;
    color: rgba(232, 236, 241, 0.3);
}

.aidpay-shop__state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.75rem 1rem;
    color: rgba(232, 236, 241, 0.5);
    font-size: 0.8125rem;
    text-align: center;
}
.aidpay-shop__state i { font-size: 1.375rem; }

.aidpay-shop__spin {
    display: inline-block;
    animation: aidpay-shop-spin 0.8s linear infinite;
}
@keyframes aidpay-shop-spin {
    to { transform: rotate(360deg); }
}

.aidpay-shop__more {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    color: rgba(232, 236, 241, 0.4);
    font-size: 1.125rem;
}

/* Магазин раскрывается до верхней панели, а не на долю экрана: переопределяем
   ту же переменную компонента, поэтому базовый max-height подтягивается сам.
   Когда верхней панели нет (Telegram), сверху остаётся минимальный зазор —
   иначе скруглённые углы шторки упираются в край экрана. */
.bottom-panel.bottom-panel--shop-full .bottom-panel__content {
    --sheet-max-height: calc(100dvh - max(var(--app-top-bar-inset, 0px), 0.5rem));
    height: var(--sheet-max-height);
}

/* На десктопе шторки — модалки, и «до верхней панели» превращается в «во весь
   экран по вертикали»: у центрированного диалога упор в верхний край означает
   упор и в нижний. Магазину нужен размер, а не максимум, поэтому он берёт
   ширину колонки контента и почти всю высоту, оставляя поля вокруг. */
body.web-desktop .bottom-panel.bottom-panel--shop-full .bottom-panel__content {
    --sheet-modal-width: var(--app-column-width);
    --sheet-max-height: min(85dvh, calc(100dvh - 5rem));
    height: var(--sheet-max-height);
}

.aidpay-shop-sheet {
    /* Поля держим переменными: обложка выходит за них ровно на свою величину, и
       без общего значения это число приходилось повторять руками — отчего полоса
       миниатюр и разъезжалась с краями карточки. */
    --sheet-pad-x: 1rem;
    --sheet-pad-top: 1.25rem;
    /* Точка отсчёта для кнопки возврата: она лежит поверх обложки. */
    position: relative;
    padding: var(--sheet-pad-top) var(--sheet-pad-x) calc(1.75rem + env(safe-area-inset-bottom, 0px));
}
.aidpay-shop-sheet--boot {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.aidpay-shop-sheet--boot .aidpay-shop-sheet__loading {
    padding: 0;
}
.aidpay-shop-sheet__loading,
.aidpay-shop-sheet__empty {
    text-align: center;
    color: rgba(232, 236, 241, 0.55);
    font-size: 0.875rem;
    padding: 1.5rem 0;
}
.aidpay-shop-sheet__note {
    font-size: 0.78125rem;
    color: rgba(232, 236, 241, 0.55);
    line-height: 1.45;
    white-space: pre-line;
    margin: 0 0 0.75rem;
}
.aidpay-shop-sheet__hint {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(232, 236, 241, 0.4);
    margin: 0.875rem 0 0;
    flex-shrink: 0;
}
.aidpay-shop-sheet__hintbox {
    margin: 0.75rem 0 0;
    flex-shrink: 0;
}
.aidpay-shop-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0 0;
    flex-shrink: 0;
}
.aidpay-shop-linkbtn {
    flex: 1 1 auto;
    min-width: 7.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.6875rem 0.875rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background: var(--ui-color-accent, #3b82f6);
    border: 0.0625rem solid rgba(255, 255, 255, 0.08);
    transition: filter 0.15s ease, transform 0.05s ease;
}
.aidpay-shop-linkbtn:active {
    transform: scale(0.98);
    filter: brightness(0.92);
}
.aidpay-shop-offers {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.aidpay-shop-offer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.625rem;
    width: 100%;
    padding: 0.8125rem 0.875rem;
    border-radius: 0.875rem;
    background: #16181c;
    border: 0.0625rem solid rgba(255, 255, 255, 0.05);
    font-family: inherit;
    text-align: left;
    -webkit-appearance: none;
    appearance: none;
}
.aidpay-shop-offer.is-buyable {
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.aidpay-shop-offer.is-buyable:hover {
    background: #1a1d22;
    border-color: rgba(255, 255, 255, 0.1);
}
.aidpay-shop-offer__info {
    display: flex;
    flex-direction: column;
    gap: 0.1875rem;
    min-width: 0;
}
.aidpay-shop-offer__name {
    font-size: 0.84375rem;
    color: #f1f3f6;
    font-weight: 500;
}
.aidpay-shop-offer__vpn-hint {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #d9a426;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.aidpay-shop-offer__price-box {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1875rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.aidpay-shop-offer__price {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #f1f3f6;
    white-space: nowrap;
}
.aidpay-shop-offer__price-old {
    font-size: 0.71875rem;
    font-weight: 500;
    color: rgba(232, 236, 241, 0.4);
    text-decoration: line-through;
}
.aidpay-shop-offer__price-line {
    display: inline-flex;
    align-items: baseline;
    gap: 0.375rem;
}
.aidpay-shop-offer__vpn-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.1875rem;
    padding: 0.125rem 0.4375rem;
    border-radius: 62.4375rem;
    background: rgba(217, 164, 38, 0.12);
    color: #d9a426;
    font-size: 0.65625rem;
    font-weight: 600;
    white-space: nowrap;
}
.aidpay-shop-offer__vpn-badge i {
    font-size: 0.625rem;
    line-height: 1;
}
.aidpay-shop-offer__chev {
    font-size: 0.75rem;
    color: rgba(232, 236, 241, 0.3);
    flex: 0 0 auto;
}

.aidpay-shop-offer-row {
    font-family: inherit;
    text-align: left;
    -webkit-appearance: none;
    appearance: none;
}
.aidpay-shop-offer-row:disabled {
    cursor: default;
    transform: none;
}
.aidpay-shop-offer-row.is-out {
    opacity: 0.55;
}
.aidpay-shop-offer-row .aidpay-region-row__subtitle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.aidpay-shop-offer-row .aidpay-region-row__title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.875rem;
    line-height: 1.3;
}

.aidpay-shop-confirm {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin: 0.875rem 0;
    padding: 0.875rem;
    border-radius: 0.875rem;
    background: #16181c;
    border: 0.0625rem solid rgba(255, 255, 255, 0.05);
}
.aidpay-shop-confirm__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.84375rem;
    color: #f1f3f6;
}
.aidpay-shop-confirm__label {
    font-weight: 500;
    min-width: 0;
}
.aidpay-shop-confirm__vpn {
    font-size: 0.75rem;
    color: #d9a426;
    display: flex;
    align-items: center;
    gap: 0.3125rem;
}
.aidpay-shop-confirm__warn {
    font-size: 0.78125rem;
    color: #e5564f;
}
.aidpay-shop-confirm__pay {
    width: 100%;
    margin-top: 0.5rem;
}
.aidpay-shop-confirm__pay:disabled {
    opacity: 0.5;
    cursor: default;
}

.aidpay-shop-confirm__back {
    width: 100%;
    min-height: 3rem;
    margin: 0.625rem 0 0.25rem;
    border-radius: 1.5625rem;
    font-size: 0.9375rem;
    font-family: inherit;
}
.aidpay-shop-sheet--success {
    text-align: center;
}
.aidpay-shop-sheet--success .aidpay-shop-sheet__title {
    text-align: center;
}
.aidpay-shop-success__icon {
    text-align: center;
    font-size: 2.75rem;
    color: #3d9966;
    margin: 0.5rem 0 0.25rem;
    transition: color 0.25s ease;
}

.aidpay-shop-success__icon--pending {
    color: #d4a23a;
}
.aidpay-shop-success__icon--pending i {
    display: inline-block;
    animation: aidpay-shop-pulse 1.1s ease-in-out infinite;
}
.aidpay-shop-success__icon--success {
    color: #3d9966;
}
.aidpay-shop-success__icon--error {
    color: #d9534f;
}
@keyframes aidpay-shop-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.92); }
}
.aidpay-shop-success__text {
    text-align: center;
    font-size: 0.84375rem;
    line-height: 1.5;
    color: rgba(232, 236, 241, 0.7);
    margin: 0.625rem 0 0.375rem;
}

.aidpay-shop-order .aidpay-history-main {
    align-items: flex-start;
}

.aidpay-shop-order__offer {
    margin-top: 0.1875rem;
    font-size: 0.75rem;
    color: rgba(232, 236, 241, 0.6);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aidpay-shop-order__date {
    margin-top: 0.1875rem;
    font-size: 0.6875rem;
    color: rgba(232, 236, 241, 0.38);
}

.aidpay-shop-order__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    flex-shrink: 0;
    padding-left: 0.5rem;
}

.aidpay-order-status {
    font-size: 0.6875rem;
    font-weight: 600;
}
.aidpay-order-status--processing { color: #d9a426; }
.aidpay-order-status--completed  { color: #3d9966; }
.aidpay-order-status--refunded   { color: rgba(232, 236, 241, 0.5); }
.aidpay-order-status--failed     { color: #e5564f; }

.aidpay-history-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: rgba(232, 236, 241, 0.45);
    font-size: 0.84375rem;
}
.aidpay-shop-offer__out {
    margin-left: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: rgba(232, 236, 241, 0.4);
}

.aidpay-shop-offer__variant {
    margin-left: 0.5rem;
    padding: 0.125rem 0.4375rem;
    font-size: 0.65625rem;
    font-weight: 600;
    border-radius: 62.4375rem;
    background: rgba(232, 236, 241, 0.08);
    color: rgba(232, 236, 241, 0.55);
    white-space: nowrap;
    vertical-align: middle;
}

#aidpay-shop .aidpay-product-card__icon-wrap {
    position: absolute;
    inset: 0;
    padding: 0;
}
#aidpay-shop .aidpay-product-icon,
.aidpay-shop-sheet__icon .aidpay-product-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    padding: 0;
}
.aidpay-shop__img {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.aidpay-shop__avatar {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.625rem;
    font-weight: 800;
    border-radius: 1rem;
}

.aidpay-shop__regions-badge {
    position: absolute;
    left: 0.375rem;
    bottom: 0.375rem;
    z-index: 2;
    padding: 0.1875rem 0.4375rem;
    border-radius: 0.4375rem;
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.01875rem;
    color: #fff;
    background: rgba(11, 13, 16, 0.72);
    backdrop-filter: blur(0.25rem);
}

.aidpay-shop-sheet__icon {
    position: relative;
    /* Обложка — часть верхнего края шторки, а не блок внутри текста: поля
       карточки гасим отрицательными и добираем их к ширине, чтобы картинка шла
       от края до края. Ширину задаём числом, а не auto: при auto потолок высоты
       перетекает через пропорцию в потолок ширины, и блок сжимается. */
    width: calc(100% + var(--sheet-pad-x, 1rem) * 2);
    aspect-ratio: 352 / 198;
    /* Пропорция считается от ширины, поэтому на широком и низком экране обложка
       занимала всю шторку и цены уходили за край. Потолок в dvh привязывает её
       к высоте, а нижняя граница оставляет место кнопке возврата поверх обложки. */
    max-height: max(26dvh, 4.5rem);
    margin: calc(var(--sheet-pad-top, 1.25rem) * -1) calc(var(--sheet-pad-x, 1rem) * -1) 1rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.025);
}
.aidpay-shop-sheet__icon .aidpay-product-icon {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.aidpay-shop-sheet__icon::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 55%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(22, 24, 28, 0) 0%,
        var(--ui-color-surface, #16181c) 100%
    );
}

.aidpay-shop-sheet__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #f1f3f6;
    margin: 0 0 0.875rem;
}
.aidpay-shop-regions {
    margin: 0.25rem 0 1rem;
}
.aidpay-shop-prices {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Издания и дополнения внутри карточки игры Steam.
   Сам переключатель — общий компонент toggle-switch, здесь только отступ. */
.aidpay-shop-sheet__toggle {
    margin: 0 0 0.875rem;
}
/* Раскладку задаём только активной вкладке и обязательно двумя классами:
   одиночный .aidpay-shop-dlc с display перебивал бы правило, которым
   переключатель скрывает неактивную вкладку, и список висел бы на экране всегда. */
.aidpay-shop-dlc.toggle-content__item--active {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.aidpay-shop-dlc__item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 0;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    color: #e8ecf1;
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease;
}
.aidpay-shop-dlc__item:active {
    background: rgba(255, 255, 255, 0.1);
}
/* Пропорции обложки Steam — 460×215, держим их, чтобы не растягивало. */
.aidpay-shop-dlc__img {
    flex: 0 0 auto;
    width: 3.875rem;
    height: 1.8125rem;
    border-radius: 0.375rem;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.06);
}
.aidpay-shop-dlc__name {
    flex: 1;
    min-width: 0;
}
.aidpay-shop-dlc__go {
    flex: 0 0 auto;
    color: rgba(232, 236, 241, 0.4);
    font-size: 0.8125rem;
}

/* Краткое описание из Steam — у игры и у дополнения, под заголовком карточки.
   В списке DLC его нет: там оно превращало перечень покупок в аннотацию.
   По умолчанию две строки; «Читать далее» раскрывает без обратного сворачивания. */
.aidpay-shop-sheet__desc {
    margin: -0.25rem 0 0.875rem;
    text-align: left;
}
.aidpay-shop-sheet__desc-text {
    margin: 0;
    color: rgba(232, 236, 241, 0.6);
    font-size: 0.8125rem;
    line-height: 1.45;
    /* Полное описание от Steam разбито на абзацы, и в раскрытом виде они несут
       смысл: без этого текст слипается в одну простыню. */
    white-space: pre-line;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}
.aidpay-shop-sheet__desc.is-open .aidpay-shop-sheet__desc-text {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}
.aidpay-shop-sheet__desc-more {
    display: inline;
    margin-top: 0.25rem;
    padding: 0;
    border: 0;
    background: none;
    color: rgba(232, 236, 241, 0.85);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.45;
    cursor: pointer;
}
.aidpay-shop-sheet__desc-more[hidden] {
    display: none;
}
.aidpay-shop-sheet__desc-more:active {
    opacity: 0.75;
}
/* Возврат лежит поверх обложки в левом верхнем углу карточки: так он не
   отодвигает содержимое и находится там же, где его ищут по привычке.
   Затемнённая подложка нужна, чтобы кнопка читалась на любой обложке. */
.aidpay-shop-sheet__back {
    position: absolute;
    z-index: 2;
    left: 1.25rem;
    top: 1.5625rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    max-width: calc(100% - 2.5rem);
    padding: 0.5625rem 0.875rem 0.5625rem 0.625rem;
    border: 0.0625rem solid rgb(34 36 39 / 49%);
    border-radius: 0.75rem;
    background: rgb(0 0 0 / 60%);
    color: #e8ecf1;
    font-size: 0.84375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}
.aidpay-shop-sheet__back:active {
    background: rgb(0 0 0 / 75%);
    border-color: rgb(34 36 39 / 70%);
}
.aidpay-shop-sheet__back i {
    font-size: 0.9375rem;
    opacity: 0.9;
}
.aidpay-shop-sheet__back span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Подложка та же, что у кнопки возврата: обе лежат поверх обложки, и читаться
   им нужно на любой картинке. Размер не задан явно — высоту кнопки держит
   строка иконки в 0.9375rem вместе с полями. */
.aidpay-shop-sheet__close {
    position: absolute;
    z-index: 2;
    right: 1rem;
    top: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5625rem;
    border: 0.0625rem solid rgb(34 36 39 / 49%);
    border-radius: 0.75rem;
    background: rgb(0 0 0 / 60%);
    color: #e8ecf1;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.aidpay-shop-sheet__close:active {
    background: rgb(0 0 0 / 75%);
    border-color: rgb(34 36 39 / 70%);
}

.aidpay-shop-sheet__close i {
    font-size: 0.9375rem;
    line-height: 1;
    opacity: 0.9;
}

/* ======================================================================
   Страница игры Steam: широкий арт, отзывы, факты, скриншоты и трейлеры.

   Всё это достраивается поверх обычной карточки после ответа Steam, поэтому
   стили ничего не меняют в исходном виде шторки: без данных ни один из этих
   классов на элементах не появляется.
   ====================================================================== */

/* Карусель занимает место обложки: обложка становится её первым кадром.
   Градиент и фиксированную пропорцию исходного блока снимаем — здесь своя
   раскладка, а градиент поверх скриншотов только мешал бы их разглядывать. */
.aidpay-shop-sheet__icon--gallery {
    position: relative;
    aspect-ratio: auto;
    max-height: none;
    overflow: visible;
    background: none;
}
.aidpay-shop-sheet__icon--gallery::after {
    content: none;
}

/* Рамка вокруг одной сцены: стрелки считают середину по кадру, а полоса
   миниатюр в этот счёт попадать не должна. */
.aidpay-steam-frame {
    position: relative;
}

/* Стрелки лежат поверх кадра, выше играющего трейлера: мышью прокрутку тянуть
   нечем, а видео со своими органами управления перехватывает жесты. */
.aidpay-steam-nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-top: -1.125rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    font-size: 1.125rem;
    line-height: 1;
    background: rgba(12, 14, 18, 0.55);
    backdrop-filter: blur(0.375rem);
    -webkit-backdrop-filter: blur(0.375rem);
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: opacity 0.15s ease, background 0.15s ease;
}
.aidpay-steam-nav:hover {
    background: rgba(12, 14, 18, 0.75);
}
/* Кадр идёт от края до края, поэтому стрелки отбиваем по полям карточки —
   иначе они прижимаются к самому краю экрана. */
.aidpay-steam-nav--prev {
    left: var(--sheet-pad-x, 1rem);
}
.aidpay-steam-nav--next {
    right: var(--sheet-pad-x, 1rem);
}

/* Прокрутка с прилипанием: листание пальцем достаётся от самого браузера — оно
   плавнее самодельного и не спорит с вертикальной прокруткой карточки. */
.aidpay-steam-stage {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}
.aidpay-steam-stage::-webkit-scrollbar {
    display: none;
}
.aidpay-steam-slide {
    position: relative;
    flex: 0 0 100%;
    aspect-ratio: 16 / 9;
    scroll-snap-align: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}
.aidpay-steam-slide__img,
.aidpay-steam-slide__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    background: #000;
}
/* Скриншоты вписываем целиком: кадрирование срезало бы как раз то, ради чего
   на них смотрят. Обложка, наоборот, заполняет кадр — она для этого и сделана. */
.aidpay-steam-slide:not(.aidpay-steam-slide--cover) .aidpay-steam-slide__img {
    object-fit: contain;
}
.aidpay-steam-slide__video {
    position: absolute;
    inset: 0;
    z-index: 2;
    object-fit: contain;
}
.aidpay-steam-slide--playing .aidpay-steam-slide__play,
.aidpay-steam-slide--playing .aidpay-steam-slide__img {
    visibility: hidden;
}
.aidpay-steam-slide__play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 1.5rem;
    backdrop-filter: blur(0.125rem);
    pointer-events: none;
}
.aidpay-steam-slide__fail {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: rgba(232, 236, 241, 0.6);
    font-size: 0.8125rem;
    text-align: center;
}
/* Миниатюры — и указатель того, где ты сейчас, и способ прыгнуть к нужному
   кадру, не листая всё подряд. */
/* Обложка вынесена за поля карточки, и полоса лежит внутри неё — своего вылета
   ей уже не нужно, затухание и так рисуется по краям карточки. */
.aidpay-steam-thumbs-wrap {
    margin: 0.375rem 0 0;
}
/* Затухание общее для проекта, но там оно уводит в цвет страницы, а полоса
   лежит на карточке — цвет берём её. */
.aidpay-steam-thumbs-wrap.programs-scroll-wrap::before,
.aidpay-steam-thumbs-wrap.programs-scroll-wrap::after {
    bottom: 0;
    width: 1.75rem;
}
.aidpay-steam-thumbs-wrap.programs-scroll-wrap::before {
    background: linear-gradient(
        90deg,
        var(--ui-color-surface, #16181c) 0%,
        rgba(22, 24, 28, 0) 100%
    );
}
.aidpay-steam-thumbs-wrap.programs-scroll-wrap::after {
    background: linear-gradient(
        270deg,
        var(--ui-color-surface, #16181c) 0%,
        rgba(22, 24, 28, 0) 100%
    );
}
/* Общая полоса задаёт свои промежуток и отбивку снизу — здесь они свои. */
.aidpay-steam-thumbs.programs-scroll {
    display: flex;
    gap: 0.375rem;
    /* Первая миниатюра встаёт по левому краю текста, но докрутить полосу можно
       до самого края карточки. */
    padding: 0 var(--sheet-pad-x, 1rem);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.aidpay-steam-thumbs::-webkit-scrollbar {
    display: none;
}
.aidpay-steam-thumb {
    position: relative;
    flex: 0 0 auto;
    width: 4.25rem;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0.09375rem solid transparent;
    border-radius: 0.375rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.18s ease, border-color 0.18s ease;
}
.aidpay-steam-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.aidpay-steam-thumb--active {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.55);
}
.aidpay-steam-thumb__play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.75rem;
    pointer-events: none;
}

/* Оценка по отзывам — первое, на что смотрят перед покупкой, поэтому процент
   набран крупно, а расшифровка и количество идут рядом помельче. */
.aidpay-steam-reviews {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin: 0 0 0.75rem;
}
.aidpay-steam-reviews__percent {
    flex: 0 0 auto;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    color: #e8ecf1;
}
.aidpay-steam-reviews--good .aidpay-steam-reviews__percent {
    color: #6ee7a0;
}
.aidpay-steam-reviews--mixed .aidpay-steam-reviews__percent {
    color: #f5c451;
}
.aidpay-steam-reviews--bad .aidpay-steam-reviews__percent {
    color: #f28b82;
}
.aidpay-steam-reviews__text {
    display: flex;
    flex-direction: column;
    gap: 0.0625rem;
    min-width: 0;
}
.aidpay-steam-reviews__label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #e8ecf1;
}
.aidpay-steam-reviews__count {
    font-size: 0.75rem;
    color: rgba(232, 236, 241, 0.45);
}

/* Место под отзывы и факты, пока они летят от Steam: без него готовый ответ
   раздвигал карточку уже под курсором. Повторяет разметку настоящего блока,
   чтобы подмена не сдвигала ничего вокруг. */
.aidpay-steam-skel {
    margin: 0 0 0.875rem;
}
.aidpay-steam-skel__reviews {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.625rem;
}
.aidpay-steam-skel__percent {
    flex: 0 0 auto;
    width: 2.75rem;
    height: 1.5rem;
    border-radius: 0.375rem;
}
.aidpay-steam-skel__lines {
    display: flex;
    flex-direction: column;
    gap: 0.3125rem;
}
.aidpay-steam-skel__line {
    display: block;
    width: 8.5rem;
    height: 0.625rem;
    border-radius: 0.3125rem;
}
.aidpay-steam-skel__line--short {
    width: 5.5rem;
    height: 0.5rem;
}
.aidpay-steam-skel__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}
.aidpay-steam-skel__chip {
    display: inline-block;
    height: 1.625rem;
    border-radius: 0.5rem;
}
.aidpay-steam-skel__percent,
.aidpay-steam-skel__line,
.aidpay-steam-skel__chip {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.045) 25%,
        rgba(255, 255, 255, 0.1) 37%,
        rgba(255, 255, 255, 0.045) 63%
    );
    background-size: 300% 100%;
    animation: aidpay-steam-skel 1.4s ease-in-out infinite;
}
@keyframes aidpay-steam-skel {
    0%   { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}
@media (prefers-reduced-motion: reduce) {
    .aidpay-steam-skel__percent,
    .aidpay-steam-skel__line,
    .aidpay-steam-skel__chip {
        animation: none;
    }
}

/* Год, жанры, оценка прессы и наличие русского языка — короткими плашками в
   одну-две строки. */
.aidpay-steam-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin: 0 0 0.875rem;
}
.aidpay-steam-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3125rem;
    padding: 0.3125rem 0.5625rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(232, 236, 241, 0.75);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}
.aidpay-steam-chip i {
    font-size: 0.8125rem;
    opacity: 0.7;
}
.aidpay-steam-chip--gold {
    background: rgba(245, 196, 81, 0.12);
    color: #f5c451;
}
.aidpay-steam-chip--ru {
    background: rgba(110, 231, 160, 0.12);
    color: #6ee7a0;
}

/* Скриншот во весь экран: в кадре карусели деталей не разглядеть. Лежит выше
   шторки и не закрывает её, чтобы после просмотра остаться на том же месте. */
.aidpay-steam-view {
    position: fixed;
    inset: 0;
    z-index: calc(var(--ui-z-sheet, 10000) + 20);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.94);
}
body.aidpay-steam-view-open {
    overflow: hidden;
}
/* Листается той же прокруткой с прилипанием, что и карусель на карточке. */
.aidpay-steam-view__track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.aidpay-steam-view__track::-webkit-scrollbar {
    display: none;
}
.aidpay-steam-view__cell {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    padding: 3.5rem 0.75rem;
}
.aidpay-steam-view__img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0.5rem;
    object-fit: contain;
}
/* Трейлер листается вместе со скриншотами, но запускается нажатием: до него
   кадр выглядит как обложка трейлера с кнопкой. */
.aidpay-steam-view__cell--video {
    position: relative;
    cursor: pointer;
}
.aidpay-steam-view__play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 1.75rem;
    backdrop-filter: blur(0.125rem);
    pointer-events: none;
}
.aidpay-steam-view__video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0.5rem;
    background: #000;
}
.aidpay-steam-view__cell--playing .aidpay-steam-view__img,
.aidpay-steam-view__cell--playing .aidpay-steam-view__play {
    display: none;
}
/* Кнопка закрытия обходит системные зоны: в Telegram и в нативной оболочке
   верх экрана занят статус-баром. Фолбэки обязательны — без них calc()
   становится невалидным там, где переменные --tg-* не объявлены. */
.aidpay-steam-view__close {
    position: absolute;
    right: 0.75rem;
    top: calc(
        var(--tg-safe-area-inset-top, 0px) +
        var(--tg-content-safe-area-inset-top, 0px) +
        env(safe-area-inset-top, 0px) +
        0.75rem
    );
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}
.aidpay-steam-view__close:active {
    background: rgba(255, 255, 255, 0.2);
}
/* Стрелки полноэкранного просмотра: на мыши листать иначе нечем, а на узком
   экране они не должны налезать на саму картинку. */
.aidpay-steam-view__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.125rem;
}
.aidpay-steam-view__nav:active {
    background: rgba(255, 255, 255, 0.24);
}
.aidpay-steam-view__nav--prev {
    left: 0.75rem;
}
.aidpay-steam-view__nav--next {
    right: 0.75rem;
}
.aidpay-steam-view__counter {
    position: absolute;
    left: 50%;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem);
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
}

