/* Coin shop uses the shared public header and the existing checkout contract. */
body.jd-shop-page {
    direction: ltr;
    text-align: left;
    background: #0b0d13;
    --primary: var(--jade-primary);
    --surface: #13151c;
    --surface2: #1a1d26;
    --muted: #9da5b8;
    --shop-panel: #13151c;
    --shop-raised: #1b1e27;
    --shop-line: rgba(180, 195, 225, .1);
    --shop-red: var(--jade-primary);
    --shop-gold: #ffc857;
    --shop-copy: #f1f3f9;
    --shop-subtle: #9da5b8
}
.jd-shop {
    position: relative;
    isolation: isolate;
    padding: 26px 0 64px;
    direction: ltr;
    text-align: left;
    color: var(--shop-copy)
}
.jd-shop:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(ellipse at 0 0, rgba(var(--jade-glow-rgb), 0.075), transparent 48%), radial-gradient(ellipse at 100% 15%, rgba(255, 200, 87, .045), transparent 42%)
}
.shop-container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto
}
.shop-icon {
    display: block;
    width: 20px;
    height: 20px;
    flex: none
}
.shop-breadcrumb {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--shop-subtle);
    font-size: 11px;
    margin-bottom: 32px
}
.shop-breadcrumb [aria-current] {
    color: var(--shop-copy)
}
.shop-breadcrumb a:hover {
    color: var(--jade-accent)
}
.shop-hero-grid {
    display: grid;
    grid-template-columns:1.2fr 1fr;
    align-items: center;
    gap: 56px;
    margin-bottom: 44px
}
.shop-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 650;
    color: var(--jade-accent);
    margin-bottom: 13px
}
.shop-eyebrow .shop-icon {
    width: 15px;
    height: 15px
}
.shop-heading h1 {
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0;
    margin: 0 0 16px
}
.shop-heading h1 > span {
    color: var(--jade-accent)
}
.shop-heading p {
    font-size: 13px;
    line-height: 1.9;
    color: var(--shop-subtle);
    margin: 0
}
.shop-pack-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    font-weight: 600;
    color: var(--shop-copy);
    margin-top: 20px
}
.shop-pack-link .shop-icon {
    width: 17px;
    height: 17px;
    color: var(--jade-accent);
    transition: transform .2s
}
.shop-pack-link:hover .shop-icon {
    transform: translateX(3px)
}
.shop-wallet {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 196px;
    border: 1px solid rgba(255, 200, 87, .2);
    border-radius: 20px;
    background: linear-gradient(125deg, var(--shop-panel) 10%, rgba(128, 92, 28, .1));
    padding: 26px
}
.shop-wallet:after {
    content: "";
    position: absolute;
    right: -60px;
    top: -50px;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(255, 200, 87, .08);
    border-radius: 50%;
    pointer-events: none
}
.shop-wallet-copy {
    position: relative;
    z-index: 1;
    min-width: 0
}
.shop-wallet-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--shop-subtle);
    margin-bottom: 15px
}
.shop-wallet-label .shop-icon {
    width: 17px;
    height: 17px;
    color: var(--shop-gold)
}
.shop-wallet-amount {
    display: block;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--shop-gold)
}
.shop-wallet-amount > span {
    font-size: 13px;
    font-weight: 500;
    color: var(--shop-subtle);
    margin-left: 3px
}
.shop-wallet-copy > p {
    font-size: 11px;
    line-height: 1.8;
    color: var(--shop-subtle);
    margin: 8px 0 0
}
.shop-wallet-guest {
    display: block;
    font-size: 19px;
    line-height: 1.5
}
.shop-wallet-copy > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 600;
    color: var(--shop-gold);
    margin-top: 12px
}
.shop-wallet-copy > a .shop-icon {
    width: 14px;
    height: 14px
}
.shop-wallet-art {
    flex: none;
    width: 115px;
    position: relative
}
.shop-coin-art {
    display: block;
    width: 100%;
    height: auto
}
.shop-wallet-art:before {
    content: "";
    position: absolute;
    inset: 20%;
    border-radius: 50%;
    background: rgba(255, 200, 87, .13);
    filter: blur(22px);
    z-index: -1
}
.shop-packs-section {
    scroll-margin-top: 115px
}
.shop-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px
}
.shop-section-heading h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 750;
    line-height: 1.5;
    margin: 0
}
.shop-section-heading h2 > .shop-icon {
    width: 25px;
    height: 25px;
    border: 1px solid rgba(var(--jade-glow-rgb), 0.2);
    border-radius: 9px;
    color: var(--jade-accent);
    padding: 5px;
    box-sizing: content-box;
    background: rgba(var(--jade-glow-rgb), 0.05)
}
.shop-section-heading p {
    font-size: 11px;
    color: var(--shop-subtle);
    margin: 4px 0 0 47px
}
.shop-pack-caption {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    color: var(--shop-subtle)
}
.shop-pack-caption .shop-icon {
    width: 14px;
    height: 14px;
    color: var(--jade-accent)
}
.shop-packs {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 18px
}
.shop-pack {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--shop-line);
    background: linear-gradient(145deg, var(--shop-raised), var(--shop-panel) 65%);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .1);
    transition: border-color .2s, transform .2s, box-shadow .2s
}
.shop-pack:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 200, 87, .25);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .15)
}
.shop-pack.is-featured {
    border-color: rgba(var(--jade-glow-rgb), 0.55);
    background: linear-gradient(145deg, rgba(var(--jade-glow-rgb), 0.09), var(--shop-panel) 55%);
    box-shadow: 0 12px 30px rgba(var(--jade-glow-rgb), 0.055)
}
.shop-pack.is-featured:before {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    top: -1px;
    height: 2px;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--shop-red), transparent)
}
.shop-pack.is-featured:hover {
    border-color: var(--jade-accent)
}
.shop-pack-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 38px;
    margin-bottom: 17px
}
.shop-pack-symbol {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 200, 87, .15);
    border-radius: 12px;
    background: rgba(255, 200, 87, .06);
    color: var(--shop-gold)
}
.shop-pack.is-featured .shop-pack-symbol {
    color: var(--jade-accent);
    border-color: rgba(var(--jade-glow-rgb), 0.2);
    background: rgba(var(--jade-glow-rgb), 0.07)
}
.shop-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    font-weight: 650;
    color: var(--jade-accent);
    border: 1px solid rgba(var(--jade-glow-rgb), 0.2);
    border-radius: 7px;
    padding: 4px 7px;
    background: rgba(var(--jade-glow-rgb), 0.06)
}
.shop-featured-badge .shop-icon {
    width: 12px;
    height: 12px
}
.shop-pack h3 {
    font-size: 19px;
    line-height: 1.4;
    font-weight: 700;
    margin: 0
}
.shop-pack-description {
    font-size: 10px;
    color: var(--shop-subtle);
    margin: 5px 0 0;
    line-height: 1.6
}
.shop-pack-coins {
    display: flex;
    align-items: baseline;
    gap: 8px;
    position: relative;
    min-height: 82px;
    padding: 23px 0 13px;
    margin-bottom: 12px
}
.shop-pack-coins strong {
    font-size: 42px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0
}
.shop-pack-coins > span {
    font-size: 12px;
    color: var(--shop-subtle)
}
.shop-pack-coins .shop-coin-art {
    position: absolute;
    right: 0;
    top: 14px;
    width: 64px;
    opacity: .95
}
.shop-pack-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 18px;
    border-top: 1px solid var(--shop-line)
}
.shop-pack-price > span {
    font-size: 10px;
    font-weight: 600;
    color: var(--shop-subtle)
}
.shop-pack-price strong {
    font-size: 26px;
    line-height: 1.3;
    font-weight: 750
}
.shop-pack-price small {
    font-size: 10px;
    color: var(--shop-subtle);
    margin-left: 3px
}
.shop-pack-detail {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    line-height: 1.7;
    color: var(--shop-subtle);
    font-size: 10px;
    margin: 15px 0 22px
}
.shop-pack-detail > .shop-icon {
    width: 15px;
    height: 15px;
    color: #69cda5;
    margin-top: 1px
}
.shop-checkout {
    margin: 0;
    margin-top: auto
}
.shop-buy-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    width: 100%;
    min-height: 44px;
    padding: 11px 14px;
    background: var(--shop-raised);
    border: 1px solid var(--shop-line);
    border-radius: 11px;
    color: var(--shop-copy);
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
    margin-top: auto;
    transition: background .2s, border-color .2s
}
.shop-buy-button .shop-icon {
    width: 17px;
    height: 17px;
    color: var(--jade-accent)
}
.shop-buy-button:hover {
    background: rgba(var(--jade-glow-rgb), 0.06);
    border-color: rgba(var(--jade-glow-rgb), 0.4)
}
.is-featured .shop-buy-button {
    background: linear-gradient(120deg, var(--jade-primary), var(--jade-primary-hover));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 5px 14px rgba(var(--jade-glow-rgb), 0.15)
}
.is-featured .shop-buy-button .shop-icon {
    color: #fff
}
.is-featured .shop-buy-button:hover {
    background: linear-gradient(120deg, var(--jade-primary), var(--jade-primary))
}
.shop-how {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 22px;
    margin-top: 24px;
    border: 1px solid var(--shop-line);
    border-radius: 16px;
    background: var(--shop-panel)
}
.shop-how-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    background: var(--shop-raised);
    border-radius: 12px;
    color: var(--jade-accent)
}
.shop-how h2 {
    font-size: 13px;
    font-weight: 650;
    margin: 0 0 4px
}
.shop-how p {
    font-size: 11px;
    line-height: 1.8;
    color: var(--shop-subtle);
    margin: 0;
    max-width: 700px
}
.shop-how > a {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    flex: none;
    font-size: 11px;
    color: var(--shop-copy)
}
.shop-how > a .shop-icon {
    width: 15px;
    height: 15px;
    color: var(--jade-accent)
}
.shop-notice {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 17px 20px;
    margin-bottom: 24px;
    border: 1px solid var(--shop-line);
    border-radius: 13px;
    background: var(--shop-panel)
}
.shop-notice > .shop-icon {
    width: 18px;
    height: 18px;
    margin-top: 2px
}
.shop-notice strong {
    font-size: 12px;
    line-height: 1.7
}
.shop-notice p {
    font-size: 11px;
    line-height: 1.8;
    color: var(--shop-subtle);
    margin: 2px 0 0
}
.shop-notice-success {
    border-color: rgba(105, 205, 165, .25)
}
.shop-notice-success > .shop-icon {
    color: #69cda5
}
.shop-notice-error {
    border-color: rgba(255, 82, 103, .3)
}
.shop-notice-error > .shop-icon {
    color: var(--jade-accent)
}
.shop-admin-notice {
    align-items: center;
    margin: 20px 0 0;
    border-color: rgba(255, 200, 87, .2)
}
.shop-admin-notice > .shop-icon {
    color: var(--shop-gold)
}
.shop-admin-notice > a {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: none;
    margin-left: auto;
    font-size: 10px;
    color: var(--shop-gold)
}
.shop-admin-notice > a .shop-icon {
    width: 14px;
    height: 14px
}
.shop-empty {
    padding: 24px;
    border: 1px dashed var(--shop-line);
    border-radius: 14px;
    color: var(--shop-subtle);
    font-size: 13px
}
.jd-shop :focus-visible {
    outline: 2px solid var(--shop-red);
    outline-offset: 4px
}
.jd-shop-page .bottom-nav {
    direction: ltr
}
@media (max-width: 1050px) {
    .shop-hero-grid {
        gap: 28px
    }

    .shop-wallet {
        padding: 22px
    }

    .shop-wallet-art {
        width: 94px
    }

    .shop-pack {
        padding: 20px
    }

    .shop-pack-coins .shop-coin-art {
        width: 54px
    }

    .shop-pack-coins strong {
        font-size: 38px
    }

    .shop-how > a {
        display: none
    }
}
@media (max-width: 800px) {
    .shop-container {
        width: calc(100% - 32px)
    }

    .shop-hero-grid {
        grid-template-columns:1fr;
        gap: 25px;
        margin-bottom: 32px
    }

    .shop-wallet {
        min-height: 156px;
        padding: 22px
    }

    .shop-wallet-art {
        width: 106px
    }

    .shop-heading h1 br {
        display: none
    }

    .shop-heading h1 {
        font-size: 32px
    }

    .shop-section-heading {
        align-items: start;
        gap: 12px
    }

    .shop-pack-caption {
        display: none
    }

    .shop-packs {
        gap: 12px
    }

    .shop-pack {
        padding: 16px;
        border-radius: 16px
    }

    .shop-pack-coins .shop-coin-art {
        display: none
    }

    .shop-pack-coins {
        min-height: 72px
    }

    .shop-pack-coins strong {
        font-size: 36px
    }

    .shop-featured-badge {
        font-size: 8px;
        padding: 4px 5px;
        gap: 3px
    }

    .shop-featured-badge > .shop-icon {
        display: none
    }

    .shop-pack-price strong {
        font-size: 23px
    }

    .shop-pack-price small {
        margin-left: 0
    }

    .shop-buy-button {
        font-size: 11px;
        padding: 10px
    }

    .shop-pack-detail {
        font-size: 9px
    }

    .shop-pack-top {
        gap: 4px
    }
}
@media (max-width: 600px) {
    .jd-shop {
        padding: 18px 0 90px
    }

    .shop-breadcrumb {
        margin-bottom: 24px;
        font-size: 10px
    }

    .shop-hero-grid {
        gap: 22px
    }

    .shop-eyebrow {
        font-size: 10px
    }

    .shop-heading h1 {
        font-size: 30px;
        margin-bottom: 12px
    }

    .shop-heading p {
        font-size: 12px
    }

    .shop-heading p br {
        display: none
    }

    .shop-pack-link {
        font-size: 11px;
        margin-top: 14px
    }

    .shop-wallet {
        padding: 18px;
        border-radius: 16px;
        min-height: 156px
    }

    .shop-wallet-amount {
        font-size: 34px
    }

    .shop-wallet-art {
        width: 94px
    }

    .shop-wallet-guest {
        font-size: 17px
    }

    .shop-wallet-copy > p {
        font-size: 10px
    }

    .shop-section-heading h2 {
        font-size: 17px;
        gap: 8px
    }

    .shop-section-heading h2 > .shop-icon {
        width: 20px;
        height: 20px;
        padding: 5px;
        border-radius: 8px
    }

    .shop-section-heading p {
        font-size: 10px;
        margin-left: 40px
    }

    .shop-section-heading {
        margin-bottom: 18px
    }

    .shop-packs {
        grid-template-columns:1fr;
        gap: 16px
    }

    .shop-pack {
        padding: 20px;
        border-radius: 18px
    }

    .shop-pack-top {
        margin-bottom: 13px
    }

    .shop-pack-symbol {
        width: 34px;
        height: 34px
    }

    .shop-featured-badge {
        font-size: 10px;
        padding: 5px 8px;
        gap: 5px
    }

    .shop-featured-badge > .shop-icon {
        display: block
    }

    .shop-pack h3 {
        font-size: 19px
    }

    .shop-pack-description {
        font-size: 11px
    }

    .shop-pack-coins {
        padding-top: 19px;
        min-height: 76px;
        margin-bottom: 12px
    }

    .shop-pack-coins strong {
        font-size: 40px
    }

    .shop-pack-coins .shop-coin-art {
        display: block;
        width: 70px;
        top: 0
    }

    .shop-pack-price strong {
        font-size: 25px
    }

    .shop-pack-price small {
        margin-left: 3px
    }

    .shop-pack-detail {
        font-size: 11px;
        margin: 14px 0 18px
    }

    .shop-buy-button {
        font-size: 12px;
        min-height: 44px;
        padding: 11px 14px
    }

    .shop-how {
        align-items: start;
        padding: 17px;
        gap: 12px;
        margin-top: 20px
    }

    .shop-how-icon {
        width: 32px;
        height: 32px;
        border-radius: 9px
    }

    .shop-how-icon .shop-icon {
        width: 18px;
        height: 18px
    }

    .shop-how p {
        font-size: 10px
    }

    .shop-how h2 {
        font-size: 12px
    }

    .shop-notice {
        padding: 15px;
        gap: 9px
    }

    .shop-admin-notice {
        flex-wrap: wrap
    }

    .shop-admin-notice > div {
        flex: 1;
        min-width: 0
    }

    .shop-admin-notice > a {
        margin-left: 27px
    }

    .shop-notice strong {
        font-size: 11px
    }

    .shop-notice p {
        font-size: 10px
    }
}
html[data-theme="light"] body.jd-shop-page {
    background: #f3f5f9;
    --surface: #fff;
    --surface2: #f0f3f8;
    --muted: #657086;
    --shop-panel: #fff;
    --shop-raised: #f2f5fa;
    --shop-line: rgba(40, 55, 85, .12);
    --shop-red: var(--jade-primary-hover);
    --shop-gold: #956000;
    --shop-copy: #252a37;
    --shop-subtle: #657086
}
html[data-theme="light"] .shop-pack {
    box-shadow: 0 7px 24px rgba(30, 45, 75, .04)
}
html[data-theme="light"] .shop-pack.is-featured {
    background: linear-gradient(145deg, var(--jade-accent), #fff 65%);
    border-color: rgba(var(--jade-glow-rgb), 0.4)
}
html[data-theme="light"] .shop-wallet {
    background: linear-gradient(120deg, #fff, #fff8e9);
    border-color: rgba(149, 96, 0, .2)
}
html[data-theme="light"] .shop-pack-symbol {
    background: #fff5da;
    border-color: #eeddb6
}
html[data-theme="light"] .shop-pack.is-featured .shop-pack-symbol {
    background: var(--jade-accent);
    border-color: var(--jade-accent)
}
html[data-theme="light"] .shop-featured-badge {
    background: var(--jade-accent);
    border-color: var(--jade-accent)
}
html[data-theme="light"] .shop-pack-detail > .shop-icon, html[data-theme="light"] .shop-notice-success > .shop-icon {
    color: #167952
}
@media (hover: none) {
    .shop-pack:hover {
        transform: none
    }
}
@media (prefers-reduced-motion: reduce) {
    .jd-shop *, .jd-shop *:before, .jd-shop *:after {
        transition: none !important
    }

    .shop-pack:hover, .shop-pack-link:hover .shop-icon {
        transform: none
    }
}
