/* SAYONARA custom dark Japanese UI */
:root {
    --jp-ink: #07090c;
    --jp-paper: #f2eadf;
    --jp-panel: rgba(16, 18, 23, .88);
    --jp-panel-solid: #11141a;
    --jp-panel-deep: #0d1015;
    --jp-line: rgba(242, 234, 223, .12);
    --jp-line-strong: rgba(242, 234, 223, .2);
    --jp-red: #d84040;
    --jp-red-hot: #ff5757;
    --jp-gold: #c9a45f;
    --jp-muted: #9fa7b2;
    --jp-shadow: 0 24px 70px rgba(0, 0, 0, .42);
    --jp-soft-shadow: 0 16px 44px rgba(0, 0, 0, .28);
    --shop-icon-scale: 1.3;
    --shop-poster-scale: 1.03;

    --main-white-color: #12151b;
    --main-bg-color: var(--jp-ink);
    --main-white-gray-color: #171a21;
    --header-background: rgba(13, 16, 21, .9);
    --main-text-color: var(--jp-paper);
    --text-body: #d8dde5;
    --text-muted: var(--jp-muted);
    --muted-2: #858d9a;
    --muted-heading: #efe3d1;
    --muted-desc: #aeb5bf;
    --muted-3: #2d323b;
    --muted-4: rgba(242, 234, 223, .12);
    --muted-5: rgba(242, 234, 223, .18);
    --muted-6: #c3cad3;
    --main-dark-color: var(--jp-red);
    --dark-2: #d9dee6;
    --bg-muted: #171b22;
    --panel-bg: #101319;
    --panel-bg-2: #171b22;
    --border-muted: rgba(242, 234, 223, .18);
    --warning-color: var(--jp-gold);
    --info-color: #7fb4ff;
    --error-color: #ff5f5f;
    --success-color: #74d08a;
    --primary: var(--jp-red);
    --accent: var(--jp-gold);
    --accent-2: #e0bd72;
    --info-bg: rgba(127, 180, 255, .12);
    --info-text: #b8d6ff;
    --text-opaque: rgba(242, 234, 223, .88);
}

html {
    background: var(--jp-ink);
}

body {
    color: var(--main-text-color) !important;
    background: var(--jp-ink) !important;
    letter-spacing: 0;
}

.app-wrapper {
    background-color: var(--jp-ink) !important;
    background-image:
        linear-gradient(180deg, rgba(7, 9, 12, .22), rgba(7, 9, 12, .94)),
        repeating-linear-gradient(90deg, rgba(242, 234, 223, .032) 0 1px, transparent 1px 88px),
        repeating-linear-gradient(0deg, rgba(242, 234, 223, .026) 0 1px, transparent 1px 88px),
        linear-gradient(135deg, rgba(216, 64, 64, .1), transparent 36%, rgba(201, 164, 95, .06));
}

.wrapper {
    max-width: 1320px !important;
    gap: 18px !important;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 80;
    height: 76px !important;
    margin-bottom: 18px !important;
    border: 1px solid var(--jp-line) !important;
    border-top: 0 !important;
    border-radius: 0 0 8px 8px !important;
    background:
        linear-gradient(90deg, rgba(216, 64, 64, .16), transparent 28%),
        var(--header-background) !important;
    box-shadow: 0 16px 38px rgba(0, 0, 0, .32) !important;
    backdrop-filter: blur(18px);
}

.navbar-brand {
    position: relative;
    padding-left: 34px !important;
    color: var(--jp-paper) !important;
    font-weight: 800 !important;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.navbar-brand::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 50%;
    width: 4px;
    height: 28px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--jp-red-hot), var(--jp-gold));
    transform: translateY(-50%);
}

.navbar-links,
.navbar-nav,
.auth-btns {
    min-width: 0;
}

.nav-item,
.auth-btn,
.balance-btn,
.profile-btn {
    color: #d9dee6 !important;
}

.nav-item:hover,
.auth-btn:hover,
.balance-btn:hover,
.profile-btn:hover {
    color: var(--jp-paper) !important;
    background: rgba(216, 64, 64, .16) !important;
}

.nav-link,
.auth-btn,
.balance-btn,
.profile-btn {
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: .02em;
}

.grid-wrapper {
    gap: 22px !important;
    align-items: start;
}

.left-column,
.right-column {
    min-width: 0;
}

.products-container,
.servers-buttons,
.products-types-buttons {
    gap: 12px !important;
}

.products-container {
    position: relative;
    padding: 16px !important;
    border: 1px solid var(--jp-line) !important;
    border-radius: 8px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012)),
        rgba(11, 13, 18, .58) !important;
    box-shadow: var(--jp-soft-shadow);
}

.app-button {
    flex: 1 1 auto !important;
    min-height: 46px !important;
    border: 1px solid var(--jp-line) !important;
    border-radius: 8px !important;
    background: rgba(18, 21, 27, .86) !important;
    color: #d8dde5 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.app-button:hover,
.app-button--active,
.app-button--primary:hover,
.app-button--primary.app-button--active {
    border-color: rgba(255, 87, 87, .55) !important;
    background: linear-gradient(180deg, rgba(216, 64, 64, .92), rgba(139, 28, 35, .92)) !important;
    color: #fff7ee !important;
    transform: translateY(-1px);
}

.search-input,
.text-input,
input,
.select-display,
.select-options {
    border: 1px solid var(--jp-line) !important;
    border-radius: 8px !important;
    background: rgba(10, 12, 16, .86) !important;
    color: var(--jp-paper) !important;
}

.search-input::placeholder,
.text-input::placeholder,
.recharge-panel-input-raw::placeholder {
    color: rgba(216, 221, 229, .54) !important;
}

.product-cards {
    gap: 14px !important;
}

.product-card {
    aspect-ratio: 3 / 4 !important;
    border: 1px solid var(--jp-line) !important;
    border-radius: 8px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)),
        var(--jp-panel-solid) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .28) !important;
    isolation: isolate;
    overflow: hidden !important;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease !important;
}

.product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(216, 64, 64, .16), transparent 34%),
        repeating-linear-gradient(135deg, rgba(242, 234, 223, .035) 0 1px, transparent 1px 18px);
    opacity: .7;
}

.product-card::after {
    content: "";
    position: absolute;
    top: 12px;
    right: 12px;
    bottom: 12px;
    width: 1px;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(201, 164, 95, .72), transparent);
    opacity: .65;
}

.product-card:hover {
    border-color: rgba(255, 87, 87, .52) !important;
    box-shadow: 0 24px 54px rgba(0, 0, 0, .38), 0 0 0 1px rgba(216, 64, 64, .18) !important;
    transform: translateY(-5px) !important;
}

.product-card-image-container {
    height: 78% !important;
    overflow: hidden !important;
    padding: 8px !important;
    background-color: rgba(8, 10, 14, .55) !important;
    background-image:
        linear-gradient(180deg, rgba(201, 164, 95, .1), transparent 42%),
        repeating-linear-gradient(90deg, rgba(242, 234, 223, .04) 0 1px, transparent 1px 28px),
        repeating-linear-gradient(0deg, rgba(242, 234, 223, .032) 0 1px, transparent 1px 28px) !important;
}

.product-card-image-container img {
    width: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    transform: scale(var(--shop-icon-scale));
    transform-origin: center;
    filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .62)) saturate(1.08) contrast(1.04);
    transition: transform .22s ease, filter .22s ease !important;
}

.product-card:hover .product-card-image-container img {
    transform: scale(calc(var(--shop-icon-scale) + .06));
    filter: drop-shadow(0 22px 22px rgba(0, 0, 0, .72)) saturate(1.14) contrast(1.08);
}

.product-card:has(.product-card-badge-days) .product-card-image-container img,
.product-card:has(.product-card-label) .product-card-image-container img {
    transform: scale(var(--shop-poster-scale));
}

.product-card:has(.product-card-badge-days):hover .product-card-image-container img,
.product-card:has(.product-card-label):hover .product-card-image-container img {
    transform: scale(calc(var(--shop-poster-scale) + .03));
}

.product-card-footer {
    height: 22% !important;
    max-height: 22% !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    border-top: 1px solid var(--jp-line) !important;
    background: rgba(8, 10, 14, .74) !important;
    color: var(--jp-paper) !important;
}

.product-card-name {
    color: var(--jp-paper) !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card-price {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 8px;
    border: 1px solid rgba(201, 164, 95, .36);
    border-radius: 8px;
    background: rgba(201, 164, 95, .12);
    color: #f0d49a !important;
    font-size: 13px !important;
    font-weight: 900 !important;
}

.product-card-label,
.product-label,
.product-card-badge-days,
.product-card-badge-percentage {
    background: var(--jp-red) !important;
    color: #fff7ee !important;
    border-radius: 0 0 8px 0 !important;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.banner,
.banner-elem,
.monitoring,
.profile-info,
.form,
.recharge-panel,
.advent-header,
.advent-card,
.advent-sidebar__block,
.cookie-banner {
    border: 1px solid var(--jp-line) !important;
    border-radius: 8px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .016)),
        var(--jp-panel-solid) !important;
    color: var(--jp-paper) !important;
    box-shadow: var(--jp-soft-shadow) !important;
}

.banner {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-height: min(56vh, 620px) !important;
    overflow: hidden !important;
}

.banner img {
    width: 100% !important;
    height: 100% !important;
    max-height: min(56vh, 620px) !important;
    object-fit: contain !important;
}

.banner-elem {
    overflow: hidden;
}

.banner-item-link {
    padding: 22px !important;
}

.bunner-title {
    color: var(--jp-paper) !important;
    font-size: 19px !important;
    font-weight: 900 !important;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.banner-content,
.banner-content p,
.monitoring-title,
.monitoring-progress-text,
.footer {
    color: #c8ced7 !important;
}

.monitoring-progress-bar {
    border: 1px solid var(--jp-line) !important;
    background: rgba(6, 8, 11, .75) !important;
}

.monitoring--active {
    border-color: rgba(116, 208, 138, .48) !important;
}

.monitoring--disabled {
    border-color: rgba(255, 95, 95, .5) !important;
}

.footer {
    opacity: .72;
}

.footer-link,
.footer-link a {
    color: #e0bd72 !important;
}

.modal-overlay {
    background: rgba(4, 5, 7, .82) !important;
    backdrop-filter: blur(10px);
}

.modal {
    border: 1px solid var(--jp-line-strong) !important;
    border-radius: 8px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)),
        #11141a !important;
    box-shadow: var(--jp-shadow) !important;
}

.product-modal {
    max-width: 360px !important;
}

.product-modal-title,
.recharge-panel-header {
    color: var(--jp-paper) !important;
    letter-spacing: .03em;
}

.product-modal-description,
.select-text,
.amount-control-count,
.amount-control-total,
.recharge-panel-label {
    color: #d8dde5 !important;
}

.gallery-main-image {
    filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .62));
}

.amount-control-counter,
.amount-control-total,
.product-modal-inputs-zone-block {
    border: 1px solid var(--jp-line) !important;
    border-radius: 8px !important;
    background: rgba(8, 10, 14, .72) !important;
    color: var(--jp-paper) !important;
}

.amount-control-counter-button:hover,
.select-option:hover,
.select-option.active {
    background: rgba(216, 64, 64, .9) !important;
    color: #fff7ee !important;
}

.modal-primary-button {
    border-radius: 8px !important;
    background: linear-gradient(180deg, var(--jp-red-hot), #9e2731) !important;
    box-shadow: 0 12px 28px rgba(216, 64, 64, .25);
}

.modal-close-button {
    margin-left: 1rem !important;
}

.modal-close-button-text,
.modal-primary-button-text {
    color: var(--jp-paper) !important;
}

.scroll-top-btn {
    width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    border-radius: 8px !important;
    background: rgba(216, 64, 64, .92) !important;
    color: #fff7ee !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .38) !important;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #080a0e;
}

::-webkit-scrollbar-thumb {
    border: 2px solid #080a0e;
    border-radius: 8px;
    background: linear-gradient(180deg, var(--jp-red), var(--jp-gold));
}

@media (max-width: 992px) {
    .navbar {
        position: relative;
        height: auto !important;
    }

    .navbar-links {
        border-top: 1px solid var(--jp-line);
        background: rgba(13, 16, 21, .98) !important;
    }

    .products-container {
        padding: 12px !important;
    }
}

@media (max-width: 700px) {
    :root {
        --shop-icon-scale: 1.2;
    }

    .wrapper {
        margin: 0 14px !important;
    }

    .product-cards {
        gap: 12px !important;
    }

    .product-card-footer {
        padding: 9px 10px !important;
    }
}

@media (max-width: 500px) {
    .product-card {
        aspect-ratio: 10 / 11 !important;
    }
}

/* Final layout cleanup: compact banner, larger cards, fewer artifacts */
.banner {
    height: clamp(240px, 24vw, 340px) !important;
    max-height: none !important;
    border-radius: 8px !important;
    background: #000 !important;
    box-shadow: 0 18px 54px rgba(0, 0, 0, .34) !important;
}

.banner img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    background: #000 !important;
}

.grid-wrapper {
    grid-template-columns: minmax(0, 3.15fr) minmax(250px, .95fr) !important;
}

.product-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.product-card {
    border-color: rgba(242, 234, 223, .16) !important;
    box-shadow: 0 16px 38px rgba(0, 0, 0, .34) !important;
}

.product-card::before {
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .055), transparent 42%),
        linear-gradient(180deg, rgba(216, 64, 64, .055), transparent 48%) !important;
    opacity: .62 !important;
}

.product-card::after {
    display: none !important;
}

.product-card-image-container {
    height: 77% !important;
    padding: 10px !important;
    background: #050608 !important;
}

.product-card-footer {
    height: 23% !important;
    max-height: 23% !important;
    background:
        linear-gradient(180deg, rgba(9, 10, 12, .8), rgba(9, 10, 12, .94)),
        #0b0d11 !important;
}

.product-card-name {
    font-size: 14px !important;
    line-height: 1.2 !important;
}

.product-card-price {
    border-radius: 8px !important;
}

@media (max-width: 1200px) {
    .grid-wrapper {
        grid-template-columns: 1fr !important;
    }

    .right-column {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 900px) {
    .banner {
        height: clamp(210px, 36vw, 280px) !important;
    }

    .product-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 560px) {
    .banner {
        height: 210px !important;
    }

    .right-column,
    .product-cards {
        grid-template-columns: 1fr !important;
    }
}

/* Product image frame fix: keep baked-in borders aligned */
.product-card-image-container {
    height: 78% !important;
    padding: 0 !important;
    background: #050608 !important;
}

.product-card-image-container img,
.product-card:has(.product-card-badge-days) .product-card-image-container img,
.product-card:has(.product-card-label) .product-card-image-container img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
}

.product-card:hover .product-card-image-container img,
.product-card:has(.product-card-badge-days):hover .product-card-image-container img,
.product-card:has(.product-card-label):hover .product-card-image-container img {
    transform: none !important;
}

.product-card-footer {
    height: 22% !important;
    max-height: 22% !important;
}

/* Balance recharge UI fix */
.modal:has(.recharge-panel) {
    width: min(860px, calc(100vw - 28px)) !important;
    max-width: min(860px, calc(100vw - 28px)) !important;
    overflow: hidden !important;
}

.modal-content:has(.recharge-panel) {
    padding: 20px 22px 0 !important;
    overflow: visible !important;
}

.recharge-panel {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 28px 32px 24px !important;
    border: 1px solid rgba(242, 234, 223, .14) !important;
    border-radius: 8px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)),
        rgba(13, 16, 21, .88) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04) !important;
}

.recharge-panel-header {
    margin: 0 0 24px !important;
    color: var(--jp-paper) !important;
    font-size: 26px !important;
    line-height: 1.15 !important;
    font-weight: 900 !important;
    text-align: center !important;
}

.recharge-panel-title {
    margin: 0 0 8px !important;
    color: #e9edf3 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
}

.recharge-panel-section {
    margin-bottom: 18px !important;
}

.recharge-panel-providers {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 230px)) !important;
    justify-content: start !important;
    gap: 14px !important;
    width: 100% !important;
}

.recharge-panel-provider {
    width: 100% !important;
    min-width: 0 !important;
    height: 76px !important;
    padding: 14px 18px !important;
    border: 1px solid rgba(242, 234, 223, .12) !important;
    border-radius: 8px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)),
        #0c0f14 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035) !important;
    opacity: 1 !important;
}

.recharge-panel-provider:hover {
    border-color: rgba(201, 164, 95, .44) !important;
    transform: translateY(-1px);
}

.recharge-panel-provider.selected {
    border: 1px solid var(--jp-red-hot) !important;
    background:
        linear-gradient(180deg, rgba(216, 64, 64, .16), rgba(216, 64, 64, .05)),
        #11141a !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .05),
        0 0 0 1px rgba(216, 64, 64, .18),
        0 14px 30px rgba(216, 64, 64, .12) !important;
}

.recharge-panel-provider img {
    display: block !important;
    width: auto !important;
    max-width: 190px !important;
    max-height: 44px !important;
    object-fit: contain !important;
    opacity: 1 !important;
    filter: brightness(1.15) saturate(1.08) contrast(1.02) !important;
}

.recharge-panel-amount-row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
    align-items: end !important;
}

.recharge-panel-amount-row > div {
    min-width: 0 !important;
    gap: 7px !important;
}

.recharge-panel-label {
    margin: 0 !important;
    color: #cbd2dc !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
}

.recharge-panel-input {
    height: 48px !important;
    padding: 0 14px !important;
    border: 1px solid rgba(242, 234, 223, .16) !important;
    border-radius: 8px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01)),
        #090b0f !important;
    color: var(--jp-paper) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035) !important;
}

.recharge-panel-input:focus-within {
    border-color: rgba(255, 87, 87, .56) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .045),
        0 0 0 3px rgba(216, 64, 64, .18) !important;
}

.recharge-panel .recharge-panel-input-raw {
    all: unset !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    color: var(--jp-paper) !important;
    font-size: 15px !important;
    line-height: 48px !important;
}

.recharge-panel .recharge-panel-input-raw::placeholder {
    color: rgba(203, 210, 220, .48) !important;
    opacity: 1 !important;
}

.recharge-panel-bonuses {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px 12px !important;
    width: 100% !important;
    margin: 18px 0 0 !important;
    padding: 12px !important;
    border: 1px solid rgba(242, 234, 223, .1) !important;
    border-radius: 8px !important;
    background: rgba(7, 9, 12, .34) !important;
}

.recharge-panel-bonus-per-summ {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 6px 10px !important;
    border: 1px solid rgba(127, 180, 255, .14) !important;
    border-radius: 8px !important;
    background: rgba(127, 180, 255, .06) !important;
    color: #e7edf6 !important;
    font-size: 14px !important;
    line-height: 1 !important;
}

.recharge-panel-bonus {
    display: inline-flex !important;
    align-items: center !important;
    height: 24px !important;
    padding: 0 8px !important;
    border-radius: 8px !important;
    background: rgba(127, 180, 255, .18) !important;
    color: #b8d6ff !important;
    font-size: 13px !important;
    font-weight: 900 !important;
}

.modal:has(.recharge-panel) .modal-footer-buttons {
    height: auto !important;
    margin: 0 !important;
    padding: 16px 22px 22px !important;
    border-top: 1px solid rgba(242, 234, 223, .1) !important;
    background: rgba(10, 12, 16, .72) !important;
    align-items: center !important;
}

.modal:has(.recharge-panel) .modal-close-button,
.modal:has(.recharge-panel) .modal-primary-button {
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 24px !important;
    border-radius: 8px !important;
    flex: 0 0 auto !important;
}

.modal:has(.recharge-panel) .modal-close-button {
    border: 1px solid rgba(242, 234, 223, .12) !important;
    background: rgba(255, 255, 255, .035) !important;
}

.modal:has(.recharge-panel) .modal-close-button:hover {
    border-color: rgba(242, 234, 223, .22) !important;
    background: rgba(255, 255, 255, .07) !important;
}

.modal:has(.recharge-panel) .modal-primary-button {
    min-width: 150px !important;
}

.modal:has(.recharge-panel) .modal-close-button-text,
.modal:has(.recharge-panel) .modal-primary-button-text {
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

@media (max-width: 760px) {
    .recharge-panel {
        padding: 22px 18px 20px !important;
    }

    .recharge-panel-providers,
    .recharge-panel-amount-row {
        grid-template-columns: 1fr !important;
    }
}

/* Product preview square crop fix */
.product-card {
    aspect-ratio: auto !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
}

.product-card-image-container {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    flex: 0 0 auto !important;
    overflow: hidden !important;
}

.product-card-image-container img,
.product-card:has(.product-card-badge-days) .product-card-image-container img,
.product-card:has(.product-card-label) .product-card-image-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
}

.product-card-footer {
    height: auto !important;
    max-height: none !important;
    min-height: 74px !important;
    flex: 1 0 auto !important;
}

/* Recharge form spacing polish */
.recharge-panel-amount-row {
    gap: 22px !important;
}

.recharge-panel-section:has(.recharge-panel-amount-row) {
    margin-bottom: 22px !important;
}

.recharge-panel-section:has(.promo-wrapper),
.recharge-panel-section:has(.text-input) {
    margin-top: 4px !important;
    margin-bottom: 24px !important;
}

.recharge-panel-bonuses {
    margin-top: 20px !important;
}

/* Main/sidebar alignment cleanup */
.right-column {
    align-self: start !important;
    gap: 14px !important;
}

.right-column > :empty,
.right-column > .banners-above-monitoring:empty {
    display: none !important;
}

.right-column .banners-after-monitoring {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    margin: 0 !important;
}

.right-column .banners-after-monitoring > div {
    margin: 0 !important;
}

.right-column .banner-elem {
    width: 100% !important;
}

/* Infinite scroll stability fix */
.product-cards {
    grid-auto-rows: auto !important;
    align-items: start !important;
    overflow: visible !important;
}

.product-cards > [data-pid],
.product-cards > [data-infinite-scroll-page] {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
}

.product-cards > [data-pid] > .product-card,
.product-cards > [data-infinite-scroll-page] > .product-card {
    display: grid !important;
    grid-template-rows: auto minmax(74px, auto) !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
    contain: none !important;
}

.product-cards > [data-pid] .product-card-image-container,
.product-cards > [data-infinite-scroll-page] .product-card-image-container {
    display: flex !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.product-cards > [data-pid] .product-card-footer,
.product-cards > [data-infinite-scroll-page] .product-card-footer {
    height: auto !important;
    min-height: 74px !important;
    max-height: none !important;
    flex: none !important;
}

.product-card:hover {
    transform: translateY(-3px) !important;
}
