.up-sell-page {
    --sell-muted: #b3bac6;
    --sell-border: #8999b327;
    --sell-surface: #171c25;
    --sell-panel: #10151d;
    --sell-red: #ff5371;
}

.up-commerce.container.up-sell-market {
    width: min(100% - clamp(24px, 6vw, 128px), 1660px);
    max-width: none;
    margin-inline: auto;
}

.up-sell-page .up-sell-heading,
.up-sell-page .up-sell-connection,
.up-sell-page .up-sell-toolbar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.up-sell-page .up-sell-heading {
    margin-bottom: 18px;
    min-height: clamp(122px, 13vw, 200px);
    padding: clamp(22px, 3vw, 48px);
    border: 1px solid var(--sell-border);
    border-left: 3px solid var(--sell-red);
    border-radius: 12px;
    background: linear-gradient(90deg, #0d131e 5%, #0d131ef2 26%, #12192264 69%, #11162044),
        #171c25 url("../img/market-sell-hero.jpg") right 36% / cover no-repeat;
}

.up-sell-heading .button { background: #141b27ed; border-color: #9eacc344; }
.up-sell-heading h1 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.6rem); line-height: 1.08; }
.up-sell-page :is(.up-sell-heading, .up-sell-connection) p { color: var(--sell-muted); margin: 7px 0 0; }
.up-sell-page .up-sell-connection { flex-wrap: wrap; margin-bottom: 12px; padding: 12px 16px; border-color: var(--sell-border); background: var(--sell-panel); }
.up-sell-connection > div { flex: 1 1 240px; }
.up-sell-connection svg { width: 16px; margin-right: 5px; color: #ff7891; vertical-align: middle; }
.up-sell-page .up-sell-layout { grid-template-columns: minmax(0, 1fr) minmax(290px, 365px); align-items: start; gap: clamp(14px,2vw,24px); }
.up-sell-page .up-sell-inventory { min-width: 0; }
.up-sell-page .up-sell-toolbar { margin-bottom: 0; padding: 16px; border-color: var(--sell-border); border-radius: 12px 12px 0 0; background: var(--sell-surface); }
.up-sell-page .up-sell-toolbar-head { justify-content: flex-start; flex-wrap: wrap; gap: 8px 14px; }
.up-sell-toolbar h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.025em; }
.up-sell-item-count { color: var(--sell-muted); font-size: .8rem; white-space: nowrap; }
.up-sell-toolbar-head > span { margin-left: auto; color: var(--sell-muted); font-size: .83rem; }
.up-sell-toolbar-head > span strong { margin-left: 5px; font-size: 1rem; }
.up-inventory-selected-total { color: #69e9b5; white-space: nowrap; }
.up-sell-page .up-sell-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.up-sell-market .up-sell-filters { --inventory-control-height: 46px; }
.up-sell-market .up-sell-filters > label { margin: 0; min-width: 0; }
.up-sell-game-mark { display: grid; place-items: center; flex: 0 0 auto; height: var(--inventory-control-height); box-sizing: border-box; padding-inline: 8px; border: 1px solid var(--sell-border); border-radius: 7px; background: #232c39; }
.up-sell-game-mark img { display: block; width: clamp(53px,7vw,88px); height: 40px; object-fit: contain; filter: brightness(0) invert(1); }
.up-sell-market .up-sell-filters label.up-sell-search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 220px;
    min-width: 0;
    height: var(--inventory-control-height);
    box-sizing: border-box;
    padding: 0 12px;
    border: 1px solid var(--sell-border);
    border-radius: 9px;
    background: #101015;
}
.up-sell-search svg { flex: 0 0 17px; width: 17px; color: #b4a7bc; }
.up-sell-market .up-sell-search input[type="search"] { width: 100%; min-width: 0; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; background: transparent; }
.up-sell-search:focus-within { outline: 2px solid #ff8ca4; outline-offset: 2px; }
.up-sell-page :is(.up-sell-sort, .up-sell-select-all) { display: flex; align-items: center; gap: 8px; }
.up-sell-market .up-sell-filters :is(.up-sell-sort, .up-sell-select-all, .up-inventory-refresh) {
    display: flex;
    align-items: center;
    gap: 7px;
    height: var(--inventory-control-height);
    box-sizing: border-box;
    padding: 0 10px;
    border: 1px solid var(--sell-border);
    border-radius: 9px;
    background: #232c39;
    color: #e5dce9;
    white-space: nowrap;
}
.up-sell-market .up-sell-filters .up-sell-sort select { width: auto; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; color: inherit; background: transparent; }
.up-sell-market .up-sell-select-all input { margin: 0; accent-color: #f85978; }
.up-sell-market .up-sell-filters label:has(:disabled) { color: var(--sell-muted); }
.up-sell-market .up-sell-filters .up-inventory-refresh { justify-content: center; width: var(--inventory-control-height); padding: 0; }
.up-sell-market .up-sell-filters :is(.up-sell-sort, .up-inventory-refresh) svg { width: 17px; height: 17px; flex: 0 0 17px; }
.up-sell-market .up-sell-filters :is(.up-sell-select-all, .up-sell-sort):focus-within,
.up-sell-market .up-inventory-refresh:focus-visible { outline: 2px solid #ff8ca4; outline-offset: 2px; }
.up-sell-page select { min-height: 42px; }
.up-sell-page [data-inventory-grid] {
    display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,148px),1fr));
    gap: 10px; padding: 12px; border: 1px solid var(--sell-border); border-top: 0;
    border-radius: 0 0 12px 12px; background: var(--sell-panel);
}
.up-sell-page [data-inventory-grid]:not(:has(.up-inventory-card)) { display: none; }
.up-sell-page .up-inventory-card {
    --card-line: var(--skin-rarity, #665875);
    display: grid; grid-template-rows: auto 1fr auto; align-content: start;
    padding: 10px 11px 12px !important; gap: 6px; min-height: 170px;
    border: 1px solid #ffffff13; border-top: 2px solid var(--card-line); border-radius: 10px;
    background: radial-gradient(ellipse at 50% 4%, color-mix(in srgb, var(--card-line) 30%, transparent), transparent 66%), #1a202b;
    transform: none; transition: border-color .16s, box-shadow .16s;
}
.up-sell-page .up-inventory-card:hover:has(input:enabled) { border-color: #da5678; }
.up-sell-page .up-inventory-card:has(input:checked) { border-color: #ff6e8e; box-shadow: inset 0 0 0 1px #ff6e8e55; }
.up-sell-page .up-inventory-card input[type="checkbox"] { width: 1px; height: 1px; clip-path: inset(50%); }
.up-sell-page .up-inventory-card h3 { min-height: 0; margin: 0; font-size: .84rem; line-height: 1.3; font-weight: 650; }
.up-sell-card-name > span { display: block; margin-bottom: 2px; color: #c4bdcc; font-size: .75rem; line-height: 1.3; overflow-wrap: anywhere; }
.up-sell-card-wear { position: absolute; z-index: 1; top: 2px; left: 2px; font-size: .72rem; font-weight: 700; color: #f0eaf5; font-variant-numeric: tabular-nums; }
.up-sell-card-wear > span { margin-left: 3px; font-weight: 500; color: #d1c8d9; }
.up-sell-page .up-inventory-card > strong { margin: 1px 0 0; font-size: 1rem; font-variant-numeric: tabular-nums; }
.up-sell-page .up-inventory-card:has(input:enabled) { cursor: pointer; }
.up-sell-page .up-inventory-card:has(input:focus-visible) { outline: 2px solid #ff8ca4; outline-offset: 2px; }
.up-sell-page .up-inventory-card .up-skin-image {
    position: relative; height: clamp(92px, 10vw, 128px); min-height: 0;
    background: radial-gradient(ellipse at 50% 44%, #63567450, transparent 73%);
}
.up-sell-page .up-inventory-card .up-skin-image img { width: 100%; height: 100%; min-height: 0; padding-top: 17px; box-sizing: border-box; object-fit: contain; }
.up-sell-card-mark {
    display: none;
    position: absolute;
    top: 2px;
    right: 2px;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 9px;
    background: #381c2a;
    color: #ffb9c8;
    font-size: 17px;
    pointer-events: none;
}
.up-inventory-card:has(input:enabled) .up-sell-card-mark { display: grid; }
.up-sell-card-mark::before { content: '+'; }
.up-inventory-card:has(input:checked) .up-sell-card-mark { background: #ff6587; color: #24101a; }
.up-inventory-card:has(input:checked) .up-sell-card-mark::before { content: '✓'; }
.up-sell-page [hidden] { display: none !important; }
.up-sell-page .up-sell-empty { text-align: center; padding: clamp(30px, 5vw, 70px) 18px; background: radial-gradient(ellipse at 50% 10%,#301b29,transparent 66%),#17161e; }
.up-sell-empty svg { color: #ff7891; width: 30px; height: 30px; }
.up-sell-empty p { color: var(--sell-muted); }
.up-sell-page .up-sell-summary { display: grid; gap: 14px; padding: 16px; background: var(--sell-surface); border: 1px solid var(--sell-border); border-radius: 12px; position: sticky; top: 92px; }
.up-sell-summary h2, .up-sell-summary p { margin: 0; }
.up-sell-summary p { color: var(--sell-muted); line-height: 1.55; font-size: .83rem; }
.up-sell-estimate { display: grid; gap: 3px; padding: 17px; border-radius: 8px; border: 1px solid #7cb2963d; background: linear-gradient(145deg,#20332d,#141f25 80%); }
.up-sell-estimate h2, .up-sell-payout-title { margin: 0; font-size: .9rem; font-weight: 650; color: #e2dbe9; }
.up-sell-estimate .up-sell-total { color: #8af0be; font-size: clamp(2rem,3vw,2.65rem); line-height: 1.15; font-variant-numeric: tabular-nums; }
.up-sell-estimate small { color: var(--sell-muted); }
.up-sell-estimate [data-sell-bonus-summary] { color: #8af0be; }
.up-sell-page .up-sell-continue { width: 100%; min-height: 46px; justify-content: space-between; }
.up-sell-page .up-sell-continue svg { width: 17px; height: 17px; }
.up-sell-page .up-sell-continue:disabled { opacity: 1; color: #aaa5b4; background: #292731; border-color: transparent; }
.up-sell-summary .up-sell-notice { padding: 10px; border-radius: 8px; background: #ffbd590e; color: #ffd59d; }
.up-sell-payout { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 0; padding: 0; border: 0; }
.up-sell-market .up-sell-payout :is(label, .up-sell-payout-pix) { position: relative; display: grid; grid-template-columns: minmax(0,1fr); gap: 6px; align-items: center; margin: 0; padding: 11px; border: 1px solid var(--sell-border); border-radius: 12px; background: #131217; }
.up-sell-payment-brand { display: flex; align-items: center; gap: 6px; min-height: 36px; color: #f3eff4; font-size: 1.1rem; font-weight: 800; }
.up-sell-payment-brand img { flex: none; object-fit: contain; }
.up-sell-wallet-brand { gap: 2px; font-size: 1.18rem; letter-spacing: -.025em; }
.up-sell-payout :is(label:focus-within, .up-sell-payout-pix:focus-visible) { outline: 2px solid #ff8ca4; outline-offset: 2px; }
.up-sell-payout label input[type="radio"],
.up-sell-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.up-sell-payout .up-sell-payout-pix:hover { border-color: #32bcad; }
.up-sell-payout :is(label, .up-sell-payout-pix) small { grid-column: 1 / -1; color: var(--sell-muted); }
.up-sell-market .up-sell-payout .up-sell-payout-selected { background: #371b26; border-color: #be4764; }
.up-sell-payout label:has(input:disabled) { opacity: .74; }
.up-sell-payout .up-sell-payout-selected small { color: #ffc3d0; font-weight: 700; }
.up-sell-tradelink-help { font-size: .85rem; }

.up-sell-guide { display: grid; gap: clamp(32px, 5vw, 62px); max-width: 1380px; margin: clamp(40px, 6vw, 76px) auto 36px; }
.up-sell-guide > section { min-width: 0; scroll-margin-top: 120px; }
.up-sell-section-title { margin: 0 0 16px; padding-left: 14px; border-left: 3px solid var(--sell-red); }
.up-sell-section-title h2 { font-size: clamp(1.45rem,3vw,2rem); letter-spacing: -.025em; margin: 0 0 5px; }
.up-sell-section-title p { margin: 0; }
.up-sell-section-title a { color: #fca4b6; }
.up-sell-guide-start .up-sell-section-title { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:6px 24px; }
.up-sell-guide p, .up-sell-safety dd { color: var(--sell-muted); line-height: 1.55; }
.up-sell-info-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,230px),1fr)); gap: 12px; }
.up-sell-two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.up-sell-steps { padding: 0; margin: 0; list-style: none; }
.up-sell-guide .up-sell-guide-card {
    border-color: var(--sell-border);
    background: linear-gradient(150deg,#202a38,#151a23 75%);
}
.up-sell-guide .up-sell-methods .up-sell-guide-card:first-child { background: linear-gradient(100deg,#141c29 22%,#141c29ec 61%,#141c2980), #151c27 url("../img/market-sell-hero.jpg") right 38% / cover no-repeat; }
.up-sell-guide-card > svg, .up-sell-faq-groups h3 svg { width: 20px; height: 20px; color: #ff8298; }
.up-sell-info-grid h3 { margin: 10px 0 6px; }
.up-sell-info-grid p { margin: 0; overflow-wrap: anywhere; }
.up-sell-types { display: grid; grid-template-columns: repeat(auto-fit,minmax(116px,1fr)); gap: 10px; }
.up-sell-type { display: grid; place-items: center; gap: 8px; padding: 16px 8px; border: 1px solid var(--sell-border); border-radius: 8px; background: radial-gradient(ellipse at 50% 24%,#303d50,#151a23 78%); }
.up-sell-type img { object-fit: contain; }
.up-sell-type strong { font-size: .9rem; }
.up-sell-guide .up-sell-safety { display: grid; grid-template-columns: minmax(130px,1fr) 3fr; gap: 12px 20px; border-color: var(--sell-border); background: #171f2b; }
.up-sell-safety dt { font-weight: 750; }
.up-sell-safety dd { margin: 0; }
.up-sell-faq { display: grid; grid-template-columns: minmax(160px,1fr) 2.5fr; gap: 18px; }
.up-sell-faq-groups { display: grid; gap: 12px; min-width: 0; }
.up-sell-faq-groups .up-panel { background: var(--sell-surface); border-color: var(--sell-border); }
.up-sell-faq-groups h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.up-sell-faq details { padding: 12px 5px; border-bottom: 1px solid var(--sell-border); }
.up-sell-faq details:last-child { border-bottom: 0; }
.up-sell-faq details p { margin: 10px 0 0; }
.up-sell-faq summary { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; font-weight: 650; list-style: none; }
.up-sell-faq summary::-webkit-details-marker { display: none; }
.up-sell-faq summary::after { content: '+'; color: #ff8298; font-size: 1.15rem; line-height: 1.2; }
.up-sell-faq details[open] summary::after { content: '−'; }
.up-sell-body .site-footer { background: #10151d; border-top: 1px solid #794257; }
.up-feedback-card { display: grid; gap: 8px; align-content: start; min-width: 0; }
.up-feedback-card span { color: #ff9bb0; font-size: .85rem; }
.up-feedback-card p { white-space: pre-wrap; overflow-wrap: anywhere; }
.up-feedback-form { display: grid; gap: 12px; max-width: 640px; margin-top: 24px; }
.up-feedback-form label { display: grid; gap: 5px; }
.up-feedback-form textarea { width: 100%; resize: vertical; }
.up-feedback-form button { justify-self: start; }

@media (max-width: 880px) {
    .up-sell-page .up-sell-layout { grid-template-columns: minmax(0, 1fr); }
    .up-sell-page .up-sell-summary { position: static; }
}

@media (max-width: 520px) {
    .up-sell-page [data-inventory-grid] { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 8px; }
    .up-sell-toolbar-head > span { width: 100%; margin-left: 0; }
    .up-sell-page .up-sell-heading,
    .up-sell-page .up-sell-connection { align-items: flex-start; flex-direction: column; }
    .up-sell-connection > div { flex: auto; }
    .up-sell-market .up-sell-filters label.up-sell-search { flex-basis: calc(100% - 90px); }
    .up-sell-market .up-sell-filters .up-sell-sort { margin-left: auto; }
    .up-sell-page .up-sell-heading {
        background-image: linear-gradient(90deg, #0d131ef5, #0d131ed4 68%, #0d131e75),
            url("../img/market-sell-hero.jpg");
        background-position: center, 71% 33%;
    }
    .up-sell-two, .up-sell-faq, .up-sell-guide .up-sell-safety { grid-template-columns: minmax(0,1fr); }
}

.up-sell-connection > .up-sell-trade-editor { flex: 1 0 100%; min-width: 0; scroll-margin-top: 120px; }
.up-sell-trade-fields { padding: 12px 0 4px; display: grid; gap: 10px; }
.up-sell-trade-fields > div { display: flex; flex-wrap: wrap; gap: 10px; }
.up-sell-trade-fields input { flex: 1 1 290px; min-width: 0; font-family: ui-monospace, monospace; border-color: #687486; }
.up-sell-trade-fields > div > .button { flex: 0 0 auto; }
@media (max-width: 480px) {
    .up-sell-trade-editor { width: 100%; }
    .up-sell-trade-fields > div > .button { width: 100%; }
}


.up-sell-page .up-sell-heading {
    position: relative;
    isolation: isolate;
    border: 0;
    background: none;
}
.up-sell-page .up-sell-heading::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    pointer-events: none;
    background:
        linear-gradient(90deg, #10121a 8%, #16141eea 40%, #20172250 83%),
        url("../img/market-sell-hero.jpg") right 36% / cover no-repeat;
    mask-image: linear-gradient(180deg, transparent, #000 13%, #000 79%, transparent),
                linear-gradient(90deg, transparent, #000 6%, #000 92%, transparent);
    mask-composite: intersect;
}
.up-sell-guide .up-sell-steps .up-sell-guide-card,
.up-sell-guide .up-sell-methods .up-sell-guide-card:first-child {
    position: relative;
    isolation: isolate;
    border: 0;
    background: #151720;
}
.up-sell-guide .up-sell-steps .up-sell-guide-card::before,
.up-sell-guide .up-sell-methods .up-sell-guide-card::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(95deg, #151720ed 17%, #1e1821a1 70%), var(--sell-guide-art) center / cover no-repeat;
    mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent);
}
.up-sell-steps .up-sell-guide-card:nth-child(1) { --sell-guide-art: url("../champion/maps/nuke.jpg"); }
.up-sell-steps .up-sell-guide-card:nth-child(2) { --sell-guide-art: url("../champion/maps/dust2.jpg"); }
.up-sell-steps .up-sell-guide-card:nth-child(3) { --sell-guide-art: url("../champion/maps/anubis.jpg"); }
.up-sell-methods .up-sell-guide-card { --sell-guide-art: url("../champion/maps/mirage.jpg"); }
@media (max-width: 520px) {
    .up-sell-page .up-sell-heading::before {
        background-position: center, 71% 33%;
        mask-image: linear-gradient(180deg, #000 76%, transparent);
    }
}
