/* WAREXT_V0771_PROFILE_LISTING_CARDS
   Profile-only card polish. Shared navigation, footer and other listing
   surfaces intentionally remain unchanged. */

body.profile-page .public-profile-listing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
    align-items: stretch !important;
}

body.profile-page .public-profile-listing-grid > .listing-card.profile-listing-card {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    min-height: 100% !important;
    overflow: hidden !important;
    border: 1px solid rgba(137, 149, 196, .2) !important;
    border-radius: 22px !important;
    background:
        linear-gradient(180deg, rgba(19, 25, 47, .985), rgba(9, 14, 28, .995)) !important;
    box-shadow:
        0 12px 28px rgba(2, 5, 15, .22),
        inset 0 1px 0 rgba(255, 255, 255, .04) !important;
    transform: translateZ(0) !important;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease !important;
}

body.profile-page .public-profile-listing-grid > .listing-card.profile-listing-card::before {
    left: 22px !important;
    right: 22px !important;
    height: 2px !important;
    background: linear-gradient(90deg, transparent, rgba(137, 118, 255, .62), transparent) !important;
    opacity: .72 !important;
}

body.profile-page .public-profile-listing-grid > .listing-card.profile-listing-card:hover,
body.profile-page .public-profile-listing-grid > .listing-card.profile-listing-card:focus-within {
    border-color: rgba(155, 143, 255, .46) !important;
    box-shadow:
        0 20px 42px rgba(2, 5, 15, .32),
        0 0 0 1px rgba(137, 118, 255, .08),
        inset 0 1px 0 rgba(255, 255, 255, .06) !important;
    transform: translateY(-4px) !important;
}

body.profile-page .profile-listing-card__media {
    aspect-ratio: 16 / 9 !important;
    background: #0b1224 !important;
}

body.profile-page .profile-listing-card__media::after {
    background:
        linear-gradient(180deg, rgba(5, 9, 20, .02) 24%, rgba(5, 9, 20, .08) 58%, rgba(5, 9, 20, .56) 100%),
        linear-gradient(120deg, rgba(255, 255, 255, .08), transparent 46%) !important;
}

body.profile-page .profile-listing-card__media img {
    filter: saturate(.98) contrast(1.02) !important;
    transition: transform .28s ease, filter .28s ease !important;
}

body.profile-page .profile-listing-card:hover .profile-listing-card__media img,
body.profile-page .profile-listing-card:focus-within .profile-listing-card__media img {
    filter: saturate(1.08) contrast(1.04) !important;
    transform: scale(1.045) !important;
}

body.profile-page .profile-listing-card__status {
    top: 13px !important;
    left: 13px !important;
    padding: 8px 11px !important;
    border-color: rgba(255, 255, 255, .16) !important;
    background: rgba(7, 12, 26, .78) !important;
    box-shadow: 0 9px 20px rgba(2, 5, 15, .22) !important;
    font-size: .65rem !important;
    letter-spacing: .08em !important;
}

body.profile-page .listing-body.profile-listing-card__body {
    min-height: 178px !important;
    padding: 16px 17px 17px !important;
    gap: 11px !important;
    background: linear-gradient(180deg, rgba(18, 24, 45, .38), rgba(8, 13, 27, .12)) !important;
}

body.profile-page .profile-listing-card__seller-row {
    min-height: 22px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid rgba(137, 149, 196, .1) !important;
}

body.profile-page .profile-listing-card__seller-label {
    color: rgba(180, 190, 219, .58) !important;
    font-size: .62rem !important;
    letter-spacing: .1em !important;
}

body.profile-page .profile-listing-card__seller {
    color: rgba(235, 239, 255, .9) !important;
    font-size: .79rem !important;
    font-weight: 800 !important;
}

body.profile-page .listing-body h3.profile-listing-card__title {
    min-height: 2.75em !important;
    font-size: 1.02rem !important;
    line-height: 1.38 !important;
    letter-spacing: -.018em !important;
}

body.profile-page .profile-listing-card__footer {
    gap: 14px !important;
    padding-top: 14px !important;
    border-top-color: rgba(137, 149, 196, .14) !important;
}

body.profile-page .profile-listing-card__price .price {
    color: #ffd34f !important;
    font-size: 1.16rem !important;
    letter-spacing: -.02em !important;
}

body.profile-page .profile-listing-card__price .old-price {
    color: rgba(205, 212, 232, .48) !important;
}

body.profile-page .profile-listing-card__action {
    min-height: 38px !important;
    padding: 0 13px !important;
    border-color: rgba(153, 139, 255, .34) !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, rgba(103, 78, 224, .36), rgba(168, 85, 247, .24)) !important;
    color: #f3efff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08) !important;
    font-size: .74rem !important;
}

body.profile-page .profile-listing-card__action:hover,
body.profile-page .profile-listing-card__action:focus-visible {
    border-color: rgba(177, 164, 255, .66) !important;
    background: linear-gradient(135deg, rgba(113, 86, 238, .58), rgba(180, 91, 252, .42)) !important;
    box-shadow: 0 8px 18px rgba(83, 56, 190, .22), inset 0 1px 0 rgba(255, 255, 255, .12) !important;
}

@media (max-width: 1180px) {
    body.profile-page .public-profile-listing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 820px) {
    body.profile-page .public-profile-listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }
}

@media (max-width: 560px) {
    body.profile-page .public-profile-listing-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 15px !important;
    }

    body.profile-page .profile-listing-card__media {
        aspect-ratio: 16 / 9 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.profile-page .public-profile-listing-grid > .listing-card.profile-listing-card,
    body.profile-page .profile-listing-card__media img,
    body.profile-page .profile-listing-card__action {
        transition: none !important;
    }
}
