﻿/* VOID GACHA · 官方旗艦商店 */
.shop-view {
    padding: 0 0 100px;
    min-height: 100%;
}

#shop-panel {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 10px;
}

#void-shop-overlay.shop-glass,
.void-shop-overlay {
    position: relative;
    padding: 20px 18px 28px;
    border-radius: 20px;
    background:
        linear-gradient(
            155deg,
            rgba(52, 18, 96, 0.82) 0%,
            rgba(22, 36, 108, 0.78) 38%,
            rgba(14, 58, 98, 0.74) 68%,
            rgba(56, 20, 88, 0.8) 100%
        );
    border: 1px solid rgba(0, 255, 255, 0.48);
    backdrop-filter: blur(18px) saturate(1.35) brightness(1.12);
    -webkit-backdrop-filter: blur(18px) saturate(1.35) brightness(1.12);
    box-shadow:
        0 0 56px rgba(127, 0, 255, 0.38),
        0 0 72px rgba(0, 240, 255, 0.22),
        0 12px 40px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 0 60px rgba(255, 0, 200, 0.1);
    overflow-x: hidden;
    overflow-y: visible;
    text-align: center;
}

#void-shop-overlay.shop-glass::before,
.void-shop-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(ellipse 95% 55% at 50% -8%, rgba(0, 255, 255, 0.28), transparent 58%),
        radial-gradient(ellipse 65% 45% at 0% 100%, rgba(255, 80, 200, 0.18), transparent 52%),
        radial-gradient(ellipse 65% 45% at 100% 100%, rgba(255, 215, 0, 0.16), transparent 52%),
        radial-gradient(ellipse 80% 40% at 50% 50%, rgba(127, 0, 255, 0.12), transparent 70%);
    animation: shop-panel-glow 6s ease-in-out infinite alternate;
}

@keyframes shop-panel-glow {
    0% {
        opacity: 0.85;
    }
    100% {
        opacity: 1;
    }
}

.shop-header {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    text-align: center;
}

.shop-header__titles {
    width: 100%;
    text-align: center;
}

.shop-header__eyebrow {
    margin: 0 0 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.28em;
    color: rgba(0, 240, 255, 0.75);
}

.glow-title {
    margin: 0;
    font-family: Orbitron, 'Noto Sans TC', sans-serif;
    font-size: clamp(1.2rem, 3.2vw, 1.65rem);
    font-weight: 900;
    letter-spacing: 0.06em;
    background: linear-gradient(90deg, #00f0ff, #ffd700, #ff00cc, #00f0ff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shop-title-flow 5s linear infinite;
    filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.35));
}

@keyframes shop-title-flow {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

.currency-display {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.currency-display > div {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.coin-gold {
    color: #ffe566;
    border-color: rgba(255, 215, 0, 0.45) !important;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.2);
}

.coin-silver {
    color: #c8e8ff;
    border-color: rgba(0, 240, 255, 0.35) !important;
}

.coin-stamina {
    color: #9dffb8;
    border-color: rgba(100, 255, 160, 0.35) !important;
}

.shop-tabs {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.shop-tab {
    flex: 1;
    min-width: 100px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(0, 240, 255, 0.38);
    background: rgba(30, 12, 60, 0.45);
    color: rgba(200, 230, 255, 0.85);
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
    text-align: center;
}

.shop-tab:hover {
    border-color: rgba(255, 215, 0, 0.5);
    color: #fff;
}

.shop-tab.active {
    color: #0a0514;
    border-color: rgba(255, 215, 0, 0.8);
    background: linear-gradient(135deg, #00f0ff, #ffd700);
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.45);
}

.content-grid {
    position: relative;
    z-index: 1;
}

.shop-section-head {
    margin-bottom: 14px;
    text-align: center;
}

.shop-section-head--spaced {
    margin-top: 28px;
}

.shop-section-head h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    color: #fff8ec;
}

.shop-section-head p {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(200, 220, 255, 0.75);
}

/* ── 儲值卡片 ── */
.recharge-monthly-hint {
    margin: 0 0 14px;
    padding: 10px 14px;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(220, 235, 255, 0.92);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.35);
    background: rgba(255, 200, 0, 0.08);
}

.recharge-monthly-hint strong {
    color: #ffd700;
}

.recharge-panel {
    position: relative;
    width: 100%;
    padding-bottom: 40px;
}

.recharge-panel__toolbar {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 14px;
    padding: 0 2px;
}

.recharge-currency-select-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(12, 20, 48, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.25);
}

.recharge-currency-select-wrap__label {
    font-size: 1rem;
    line-height: 1;
    opacity: 0.9;
}

.recharge-currency-select {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    color: #fff8ec;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 4px 28px 4px 2px;
    cursor: pointer;
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23b8f4ff' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 2px center;
}

.recharge-currency-select:focus-visible {
    outline: 2px solid rgba(0, 240, 255, 0.55);
    outline-offset: 2px;
    border-radius: 6px;
}

.recharge-currency-select option {
    color: #0a1028;
    background: #f4f8ff;
}

.recharge-card__tag {
    position: absolute;
    top: -8px;
    left: -6px;
    z-index: 2;
    max-width: 88px;
    font-size: 0.62rem;
    line-height: 1.2;
    padding: 4px 7px;
    pointer-events: none;
}

.recharge-double-refresh-note {
    position: absolute;
    right: 4px;
    bottom: 0;
    margin: 0;
    max-width: min(100%, 420px);
    padding: 8px 12px;
    text-align: right;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #b8f4ff;
    border-radius: 8px;
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.22);
    text-shadow: none;
    white-space: nowrap;
}

.recharge-double-refresh-note--used {
    color: rgba(220, 215, 235, 0.92);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    text-shadow: none;
    font-weight: 600;
}

.recharge-grid,
.recharge-options-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.recharge-card {
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 14px 14px;
    border: none;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    font-family: inherit;
    color: #fff8ec;
    width: 100%;
}

.recharge-card__usd {
    font-size: 1.35rem;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

.recharge-card__row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.82rem;
    width: 100%;
    text-align: center;
}

.recharge-card__row--sub {
    font-size: 0.75rem;
    color: rgba(200, 225, 255, 0.8);
    justify-content: center;
}

.recharge-card__row strong {
    font-size: 0.95rem;
    color: #fff;
}

.glow-card {
    background: linear-gradient(145deg, rgba(36, 14, 72, 0.75), rgba(14, 32, 72, 0.7));
    border: 1px solid rgba(0, 240, 255, 0.42);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 24px rgba(0, 240, 255, 0.15);
    transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}

.glow-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 215, 0, 0.55);
    box-shadow: 0 0 28px rgba(255, 215, 0, 0.25);
}

.bonus-tag-spin {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 2;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    animation: bonus-tag-orbit 4s linear infinite;
}

.bonus-tag-spin__inner {
    display: block;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #1a0800;
    background: linear-gradient(135deg, #ffe566, #ff6688);
    box-shadow: 0 0 14px rgba(255, 200, 80, 0.8);
    animation: bonus-tag-counter 4s linear infinite;
    white-space: nowrap;
}

@keyframes bonus-tag-orbit {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes bonus-tag-counter {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}

.bundle-panel__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 14px;
}

.bundle-panel__stripe-note {
    margin: 0;
    font-size: 12px;
    color: rgba(180, 220, 255, 0.82);
    letter-spacing: 0.02em;
}

.bundle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.bundle-grid--wide {
    margin-bottom: 16px;
    grid-template-columns: 1fr;
}

.premium-bundle {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    min-height: 228px;
}

.premium-bundle.bundle-card--mr {
    grid-column: 1 / -1;
    min-height: 268px;
    border: 2px solid transparent;
    background:
        linear-gradient(#1a0838, #120828) padding-box,
        linear-gradient(45deg, #ffd700, #ff00ff, #00f0ff, #ffd700) border-box;
    animation: border-flow 3s infinite linear;
    box-shadow: 0 0 36px rgba(255, 0, 200, 0.22);
}

@keyframes border-flow {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

.premium-bundle.bundle-card--starter {
    border: 1px solid rgba(255, 215, 0, 0.55);
    background: linear-gradient(145deg, rgba(40, 16, 72, 0.82), rgba(20, 28, 88, 0.78));
    box-shadow: 0 0 36px rgba(255, 180, 0, 0.28);
    animation: bundle-breathe 2.8s ease-in-out infinite;
}

.premium-bundle.bundle-card--threeday.bundle-card--starter {
    animation: bundle-breathe 2.8s ease-in-out infinite;
}

.bundle-card__subnote {
    margin: 0 0 8px;
    font-size: 0.72rem;
    color: rgba(0, 240, 255, 0.85);
    letter-spacing: 0.03em;
}

.bundle-card__loot .bundle-loot-line--done {
    opacity: 0.55;
    color: rgba(180, 220, 180, 0.9);
}

.bundle-card__loot .bundle-loot-line--active {
    color: #fff8c0;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.35);
}

.item-card__stock--once strong {
    color: #ff9ae0;
}

@keyframes bundle-breathe {
    0%,
    100% {
        box-shadow: 0 0 24px rgba(255, 180, 0, 0.12);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 120, 0, 0.35);
    }
}

.bundle-card.is-sold {
    opacity: 0.55;
    filter: grayscale(0.35);
    pointer-events: none;
}

.bundle-card__war-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(30, 10, 56, 0.45) 0%, rgba(20, 16, 48, 0.15) 45%, rgba(24, 8, 40, 0.55) 100%),
        radial-gradient(ellipse 80% 100% at 70% 50%, rgba(255, 0, 120, 0.48), transparent 55%),
        radial-gradient(ellipse 60% 80% at 30% 60%, rgba(0, 200, 255, 0.42), transparent 50%),
        linear-gradient(160deg, #3a1068 0%, #1a0848 40%, #401028 100%);
    background-size: cover;
}

.bundle-card__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 18px 16px;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bundle-card__copy {
    flex: 1;
    min-width: 160px;
    text-align: center;
}

.bundle-card__inner--wide {
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    gap: 18px;
    max-width: 100%;
    margin-left: 0;
    padding-left: 20px;
    padding-right: 20px;
}

.bundle-card__inner--wide .bundle-card__copy {
    text-align: center;
    flex: 1;
    min-width: 0;
}

.bundle-card--mr .bundle-card__inner--wide .bundle-card__copy h3 {
    text-align: center;
}

.bundle-card__thumb {
    position: relative;
    flex-shrink: 0;
    width: 138px;
    height: 194px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 215, 0, 0.55);
    box-shadow:
        0 0 24px rgba(255, 180, 0, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.45);
    background: linear-gradient(165deg, rgba(12, 8, 28, 0.95), rgba(0, 0, 0, 0.88));
}

.bundle-card__thumb--mr-wide {
    width: 168px;
    height: 236px;
    margin-left: 92px;
    border-color: rgba(255, 120, 220, 0.75);
    box-shadow:
        0 0 28px rgba(255, 0, 180, 0.45),
        0 0 48px rgba(0, 240, 255, 0.18),
        0 4px 20px rgba(0, 0, 0, 0.5);
}

.bundle-card--mr .bundle-card__inner--wide {
    padding-left: 100px;
    gap: 32px;
}

.bundle-card--starter .bundle-card__inner:not(.bundle-card__inner--wide) {
    justify-content: flex-start;
    padding-left: 30px;
    gap: 16px;
}

.bundle-card--starter .bundle-card__thumb:not(.bundle-card__thumb--mr-wide) {
    margin-left: 18px;
}

.bundle-card__rarity-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: #1a0510;
    background: linear-gradient(135deg, #ffd700, #ff6eb4);
    box-shadow: 0 0 10px rgba(255, 120, 200, 0.55);
    pointer-events: none;
}

.bundle-card__thumb--mr-wide .bundle-card__rarity-tag {
    background: linear-gradient(135deg, #ff9f57, #ff00cc, #00f0ff);
    color: #120818;
}

.bundle-card__thumb-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.bundle-card__thumb-img.is-swapping {
    opacity: 0.15;
    transform: scale(0.96);
}

.bundle-card__thumb--hero {
    overflow: hidden;
}

.bundle-card__thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2.4rem;
    font-weight: 900;
    color: #ffd700;
}

.bundle-card__copy h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    color: #fff8ec;
}

.bundle-card__badge {
    display: inline-block;
    margin-bottom: 6px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: #0a0514;
    background: linear-gradient(90deg, #ff00cc, #00f0ff);
}

.bundle-card__loot {
    margin: 0 auto 12px;
    padding: 0 0 0 1.15em;
    width: fit-content;
    max-width: 100%;
    list-style-type: disc;
    list-style-position: outside;
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(220, 235, 255, 0.9);
    text-align: left;
}

.bundle-card__loot li {
    margin-bottom: 2px;
    padding-left: 0.2em;
}

.bundle-card__price {
    margin: 0 0 12px;
    font-size: 1.1rem;
    font-weight: 900;
    color: #ffd700;
}

.bundle-card__desc {
    margin: 0 0 10px;
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(200, 220, 255, 0.82);
}

/* ── 精選禮包卡片 ── */
.bundle-grid--featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.premium-bundle.bundle-card--featured {
    display: flex;
    flex-direction: column;
    min-height: 340px;
    border: 1px solid rgba(0, 220, 255, 0.38);
    background:
        linear-gradient(165deg, rgba(14, 28, 62, 0.94) 0%, rgba(22, 10, 44, 0.92) 55%, rgba(10, 18, 48, 0.96) 100%);
    box-shadow:
        0 0 0 1px rgba(255, 215, 0, 0.1) inset,
        0 10px 28px rgba(0, 0, 0, 0.42),
        0 0 22px rgba(0, 180, 255, 0.12);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.premium-bundle.bundle-card--featured:hover:not(.is-sold) {
    border-color: rgba(0, 240, 255, 0.62);
    box-shadow:
        0 0 0 1px rgba(255, 215, 0, 0.18) inset,
        0 14px 36px rgba(0, 0, 0, 0.5),
        0 0 32px rgba(0, 220, 255, 0.22);
    transform: translateY(-2px);
}

.premium-bundle.bundle-card--featured .bundle-card__featured-rim {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35);
    z-index: 2;
}

.premium-bundle.bundle-card--featured .bundle-card__inner--featured {
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 18px 16px 16px;
    min-height: 0;
}

.premium-bundle.bundle-card--featured .bundle-card__copy {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    width: 100%;
    align-items: center;
    text-align: center;
}

.premium-bundle.bundle-card--featured .bundle-card__copy h3 {
    margin: 0 0 8px;
    padding: 24px 8px 0;
    width: 100%;
    font-size: 1.02rem;
    line-height: 1.35;
    color: #fff8e8;
    text-align: center;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.25);
}

.premium-bundle.bundle-card--featured .bundle-card__desc {
    text-align: center;
}

.premium-bundle.bundle-card--featured .bundle-card__loot {
    margin: 0 0 10px;
    padding: 0;
    width: 100%;
    list-style: none;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.55;
}

.premium-bundle.bundle-card--featured .bundle-card__loot li {
    padding-left: 0;
}

.premium-bundle.bundle-card--featured .bundle-card__stock {
    margin: 0 0 4px;
    font-size: 0.72rem;
    color: rgba(0, 240, 255, 0.88);
    text-align: center;
    width: 100%;
}

.premium-bundle.bundle-card--featured .bundle-card__footer {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(0, 220, 255, 0.14);
}

.premium-bundle.bundle-card--featured .bundle-card__price {
    margin: 0;
    width: 100%;
    text-align: center;
    font-size: 1.05rem;
}

.premium-bundle.bundle-card--featured .hot-tag.hot-tag--rainbow {
    top: 8px;
    left: 50%;
    right: auto;
    transform: translateX(-50%) rotate(0deg);
    font-size: 0.66rem;
    padding: 5px 12px;
    max-width: calc(100% - 16px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-cta--featured {
    width: auto;
    min-width: 148px;
    max-width: 100%;
    margin-top: 0;
    padding: 10px 26px;
    border-radius: 999px;
    color: #061018;
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, #00f0ff 0%, #7bffcf 45%, #ffd700 100%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.25) inset,
        0 4px 18px rgba(0, 220, 255, 0.35);
}

.shop-cta--featured:hover:not(:disabled) {
    transform: scale(1.03);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.35) inset,
        0 6px 24px rgba(0, 240, 255, 0.5);
}

.shop-sold-stamp--featured {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 0.8rem;
    border: 1px dashed rgba(255, 120, 120, 0.45);
}

.premium-bundle.bundle-card--featured.is-sold {
    border-color: rgba(120, 120, 140, 0.35);
    box-shadow: none;
}

@media (max-width: 1080px) {
    .bundle-grid--featured {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.hot-tag {
    position: absolute;
    top: 12px;
    right: -4px;
    z-index: 3;
    background: #ff0000;
    color: #fff;
    padding: 6px 16px;
    transform: rotate(12deg);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    box-shadow: 0 0 18px #ff0000;
    border-radius: 4px;
}

.hot-tag--gold {
    background: linear-gradient(90deg, #ff8800, #ff0000);
}

/* 彩虹標籤（雙倍獲得 / 全服限購一次 等） */
.hot-tag.hot-tag--rainbow {
    overflow: hidden;
    isolation: isolate;
    z-index: 5;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: linear-gradient(
        92deg,
        #e60026 0%,
        #ff6a00 12%,
        #ffd000 25%,
        #39ff14 38%,
        #00e5ff 52%,
        #7b61ff 66%,
        #ff3cac 80%,
        #e60026 100%
    );
    background-size: 300% 100%;
    animation: hot-tag-rainbow-flow 2.6s linear infinite;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.65),
        0 1px 3px rgba(0, 0, 0, 0.85);
    box-shadow:
        0 0 12px rgba(255, 80, 160, 0.7),
        0 0 20px rgba(0, 220, 255, 0.5),
        0 0 28px rgba(255, 220, 0, 0.4);
}

.hot-tag.hot-tag--rainbow::before {
    content: '';
    position: absolute;
    top: -25%;
    left: 0;
    width: 48%;
    height: 150%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 28%,
        rgba(255, 255, 255, 1) 50%,
        rgba(255, 255, 255, 0.15) 72%,
        transparent 100%
    );
    transform: skewX(-22deg) translateX(-200%);
    animation: hot-tag-rainbow-sweep 2.1s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.recharge-card .hot-tag.hot-tag--rainbow {
    top: 8px;
    right: -6px;
    font-size: 0.65rem;
    padding: 5px 12px;
}

.hot-tag.hot-tag--rainbow.hot-tag--used {
    animation: none;
    opacity: 1;
    color: rgba(210, 205, 225, 0.95);
    border-color: rgba(255, 255, 255, 0.22);
    background: linear-gradient(92deg, #5c5668 0%, #6e6878 50%, #5c5668 100%);
    background-size: 100% 100%;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: none;
    filter: grayscale(0.35) brightness(0.95);
}

.hot-tag.hot-tag--rainbow.hot-tag--used::before {
    display: none;
}

.premium-bundle .hot-tag.hot-tag--rainbow {
    top: 12px;
    right: -4px;
}

@keyframes hot-tag-rainbow-flow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 300% 50%;
    }
}

@keyframes hot-tag-rainbow-sweep {
    0%,
    100% {
        transform: skewX(-22deg) translateX(-200%);
    }
    45%,
    55% {
        transform: skewX(-22deg) translateX(320%);
    }
}

.shop-sold-stamp {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.5);
    border: 1px dashed rgba(255, 255, 255, 0.25);
}

/* ── 珍品雜貨 ── */
.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.item-grid--extended {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 960px) {
    .item-grid--extended {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .item-grid--extended {
        grid-template-columns: 1fr;
    }
}

.treasure-card__name {
    margin: 10px 0 6px;
    font-size: 0.92rem;
    line-height: 1.35;
    color: #fff8ec;
}

.treasure-pool-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin: 0 0 10px;
    max-width: 100%;
}

.treasure-pool-chip {
    font-size: 0.62rem;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 6px;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    color: rgba(220, 235, 255, 0.92);
}

.treasure-pool-chip--ur,
.treasure-pool-chip--mr {
    border-color: rgba(255, 215, 0, 0.45);
    color: #ffe08a;
}

.treasure-pool-chip--sec {
    border-color: rgba(255, 0, 200, 0.55);
    color: #ff9ae8;
    box-shadow: 0 0 10px rgba(255, 0, 200, 0.25);
}

.treasure-card.item-card--chest:hover {
    border-color: rgba(0, 240, 255, 0.35);
    box-shadow: 0 0 28px rgba(160, 32, 240, 0.25);
}

.item-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 14px 16px;
    border-radius: 16px;
}

.item-card h4 {
    margin: 12px 0 6px;
    font-size: 0.95rem;
    color: #fff8ec;
}

.item-card__desc {
    margin: 0 0 4px;
    font-size: 0.8rem;
    color: rgba(200, 220, 255, 0.85);
}

.item-card__detail {
    margin: 0 0 8px;
    font-size: 0.72rem;
    color: rgba(160, 190, 255, 0.7);
    line-height: 1.4;
}

.item-card__stock {
    margin: 0 0 10px;
    font-size: 0.75rem;
    color: rgba(0, 240, 255, 0.85);
}

.item-card__stock strong {
    color: #ffd700;
}

.item-card__price {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.item-card.is-sold-out {
    opacity: 0.5;
}

/* 紫晶寶箱道具圖 · 強效去方框（透明外殼 + color-dodge + 圓形裁切） */
.item-card--chest .gacha-chest-wrap,
.gacha-chest-wrap,
.gacha-chest-wrap--confirm {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    min-height: 0;
    max-width: 100%;
    margin: 0 auto 4px;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    overflow: visible;
    isolation: auto;
}

.gacha-chest-wrap::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 118px;
    height: 118px;
    margin: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(160, 32, 240, 0.35) 0%, transparent 72%);
    pointer-events: none;
    z-index: 0;
    animation: chest-glow-pad 3s ease-in-out infinite;
    box-shadow: none !important;
}

.gacha-chest-img,
.item-card--chest img.gacha-chest-img,
#void-shop-overlay .gacha-chest-img {
    position: relative;
    z-index: 1;
    display: block;
    width: 140px;
    height: 140px;
    max-width: 100%;
    margin: 10px auto;
    padding: 0 !important;
    border: none !important;
    border-radius: 50%;
    object-fit: contain;
    object-position: center;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    mix-blend-mode: color-dodge !important;
    filter: contrast(1.1) brightness(1.2) drop-shadow(0 0 15px rgba(160, 32, 240, 0.6));
    -webkit-mask-image: radial-gradient(circle, #000 62%, transparent 78%);
    mask-image: radial-gradient(circle, #000 62%, transparent 78%);
    transition: transform 0.3s ease, filter 0.3s ease;
    animation: chest-neon-breathe 3s ease-in-out infinite;
}

.item-card--chest:hover .gacha-chest-img,
.premium-bundle:hover .gacha-chest-img {
    transform: scale(1.08) translateY(-5px);
    filter: contrast(1.12) brightness(1.28) drop-shadow(0 0 22px rgba(0, 240, 255, 0.85))
        drop-shadow(0 0 32px rgba(160, 32, 240, 0.55));
}

.gacha-chest-wrap:has(.gacha-chest-img--mr_mythic)::before {
    background: radial-gradient(ellipse at center, rgba(0, 200, 255, 0.35), transparent 68%);
}

.gacha-chest-wrap:has(.gacha-chest-img--god_slayer)::before {
    background: radial-gradient(ellipse at center, rgba(255, 160, 0, 0.32), transparent 68%);
}

.gacha-chest-wrap:has(.gacha-chest-img--bronze_causal)::before {
    background: radial-gradient(ellipse at center, rgba(180, 120, 60, 0.32), transparent 68%);
}

.gacha-chest-wrap:has(.gacha-chest-img--iron_advance)::before {
    background: radial-gradient(ellipse at center, rgba(160, 190, 230, 0.28), transparent 68%);
}

.gacha-chest-wrap:has(.gacha-chest-img--unlucky_obsidian)::before {
    background: radial-gradient(ellipse at center, rgba(90, 50, 140, 0.4), transparent 68%);
}

.gacha-chest-img--mr_mythic,
.treasure-chest-img--mr_mythic {
    filter: contrast(1.1) brightness(1.22) drop-shadow(0 0 16px rgba(0, 200, 255, 0.75)) saturate(1.12);
}

.gacha-chest-img--god_slayer,
.treasure-chest-img--god_slayer {
    filter: contrast(1.1) brightness(1.2) drop-shadow(0 0 16px rgba(255, 180, 0, 0.8)) saturate(1.12);
}

.gacha-chest-img--bronze_causal,
.treasure-chest-img--bronze_causal {
    filter: contrast(1.08) brightness(1.18) drop-shadow(0 0 14px rgba(200, 140, 70, 0.75));
}

.gacha-chest-img--iron_advance,
.treasure-chest-img--iron_advance {
    filter: contrast(1.1) brightness(1.2) drop-shadow(0 0 14px rgba(170, 190, 230, 0.7));
}

.gacha-chest-img--unlucky_obsidian,
.treasure-chest-img--unlucky_obsidian {
    filter: contrast(1.12) brightness(1.15) drop-shadow(0 0 16px rgba(100, 60, 160, 0.8));
}

.gacha-chest-img--ur_luxury,
.treasure-chest-img--ur_luxury {
    filter: contrast(1.1) brightness(1.22) drop-shadow(0 0 16px rgba(160, 32, 240, 0.7));
}

@keyframes chest-glow-pad {
    0%,
    100% {
        opacity: 0.55;
        transform: translate(-50%, -50%) scale(0.94);
    }
    50% {
        opacity: 0.95;
        transform: translate(-50%, -50%) scale(1.06);
    }
}

@keyframes chest-neon-breathe {
    0%,
    100% {
        filter: contrast(1.08) brightness(1.16) drop-shadow(0 0 12px rgba(160, 32, 240, 0.55))
            drop-shadow(0 0 20px rgba(120, 40, 200, 0.35));
    }
    50% {
        filter: contrast(1.12) brightness(1.28) drop-shadow(0 0 18px rgba(0, 240, 255, 0.85))
            drop-shadow(0 0 28px rgba(160, 32, 240, 0.6));
    }
}

/* ── 按鈕 ── */
.shop-cta {
    width: 100%;
    margin-top: auto;
    padding: 12px 14px;
    border: none;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s;
}

.shop-cta--gold {
    color: #1a1000;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.35);
}

.shop-cta--silver {
    color: #061018;
    background: linear-gradient(135deg, #a8e8ff, #4eb5ff);
}

.shop-cta--legend {
    color: #0a0514;
    background: linear-gradient(135deg, #ff00cc, #00f0ff, #ffd700);
    background-size: 200% auto;
    animation: cta-legend-shift 3s linear infinite;
    box-shadow: 0 0 24px rgba(255, 0, 200, 0.4);
}

@keyframes cta-legend-shift {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

.shop-cta:hover:not(:disabled) {
    transform: scale(1.04);
    box-shadow: 0 0 28px rgba(255, 215, 0, 0.55);
}

.shop-cta--pulse {
    transform: scale(0.92);
}

.shop-cta:active:not(:disabled) {
    transform: scale(0.96);
}

.shop-cta:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

/* ── 金幣粒子 ── */
.shop-particle {
    position: absolute;
    z-index: 50;
    font-size: 1rem;
    pointer-events: none;
    animation: shop-particle-burst 0.85s ease-out forwards;
}

.shop-particle .void-coin-icon {
    display: block;
}

@keyframes shop-particle-burst {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0.3);
    }
}

@media (max-width: 720px) {
    .bundle-grid {
        grid-template-columns: 1fr;
    }

    .bundle-grid--featured {
        grid-template-columns: 1fr;
    }

    .premium-bundle.bundle-card--featured {
        min-height: 0;
    }

    .premium-bundle.bundle-card--featured .bundle-card__copy h3 {
        padding: 28px 8px 0;
    }

    .premium-bundle.bundle-card--featured .hot-tag.hot-tag--rainbow {
        top: 8px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .shop-cta--featured {
        width: 100%;
        min-width: 0;
    }

    .premium-bundle.bundle-card--mr {
        grid-column: 1;
        min-height: 0;
    }

    .bundle-card--mr .bundle-card__inner--wide {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 16px 14px 18px;
        gap: 12px;
    }

    .bundle-card--mr .bundle-card__inner--wide .bundle-card__copy {
        width: 100%;
        max-width: 360px;
    }

    .bundle-card--mr .bundle-card__inner--wide .bundle-card__copy h3 {
        font-size: 1.15rem;
    }

    .bundle-card__thumb--mr-wide {
        margin-left: 0;
        width: min(68vw, 176px);
        height: min(94vw, 248px);
    }

    .premium-bundle.bundle-card--mr .hot-tag.hot-tag--rainbow {
        top: 8px;
        right: 8px;
        left: auto;
        transform: none;
    }

    .premium-bundle.bundle-card--mr .shop-cta--legend {
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .bundle-card__inner--wide {
        max-width: 100%;
        margin-left: 0;
    }

    .bundle-card__inner {
        flex-direction: column;
        text-align: center;
    }

    .bundle-card__thumb {
        width: 152px;
        height: 214px;
    }

    .bundle-card__thumb--mr-wide {
        width: min(72vw, 188px);
        height: min(98vw, 264px);
    }

    .bundle-card__loot {
        margin-left: auto;
        margin-right: auto;
    }

    .recharge-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 420px) {
    .currency-display {
        width: 100%;
    }

    .currency-display > div {
        flex: 1;
        justify-content: center;
        min-width: 0;
    }
}

/* 商店 · 華麗契約確認 */
#void-shop-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 980;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#void-shop-confirm-modal.hidden {
    display: none;
}

.void-shop-confirm__veil {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(127, 0, 255, 0.22), transparent 70%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(255, 60, 80, 0.18), transparent 65%),
        rgba(2, 0, 10, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.void-shop-confirm__panel {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    padding: 28px 24px 22px;
    text-align: center;
    border-radius: 22px;
    background: linear-gradient(165deg, rgba(28, 6, 48, 0.98) 0%, rgba(8, 4, 22, 0.99) 55%, rgba(18, 2, 12, 0.98) 100%);
    border: 1px solid rgba(255, 120, 60, 0.45);
    box-shadow:
        0 0 0 1px rgba(0, 240, 255, 0.12) inset,
        0 0 60px rgba(255, 50, 80, 0.35),
        0 0 100px rgba(127, 0, 255, 0.25),
        0 24px 48px rgba(0, 0, 0, 0.65);
    overflow: visible;
    animation: voidShopConfirmIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.void-shop-confirm--legend .void-shop-confirm__panel {
    border-color: rgba(255, 200, 80, 0.55);
    box-shadow:
        0 0 0 1px rgba(255, 220, 120, 0.15) inset,
        0 0 70px rgba(255, 180, 40, 0.4),
        0 0 90px rgba(127, 0, 255, 0.3),
        0 24px 48px rgba(0, 0, 0, 0.65);
}

/* 通訊錄 · 好友操作確認 */
.void-shop-confirm--friends .void-shop-confirm__panel {
    border-color: rgba(255, 110, 199, 0.5);
    box-shadow:
        0 0 0 1px rgba(255, 180, 230, 0.12) inset,
        0 0 60px rgba(255, 80, 160, 0.35),
        0 0 90px rgba(127, 0, 255, 0.28),
        0 24px 48px rgba(0, 0, 0, 0.65);
}

.void-shop-confirm--friends .void-shop-confirm__eyebrow {
    color: #ffb8e8;
}

.void-shop-confirm--friends .void-shop-confirm__title {
    color: #ffe0f0;
}

.void-shop-confirm--friends .void-shop-confirm__btn--fire {
    background: linear-gradient(135deg, #ff5a9a, #c41e6a);
    border-color: rgba(255, 150, 200, 0.55);
}

.void-shop-confirm__lead {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 230, 245, 0.92);
}

.void-shop-confirm__lead strong {
    color: #ffd080;
    font-weight: 800;
}

.void-shop-confirm__rim {
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(
        135deg,
        rgba(255, 80, 40, 0.9),
        rgba(255, 200, 60, 0.7),
        rgba(0, 240, 255, 0.6),
        rgba(200, 60, 255, 0.8),
        rgba(255, 60, 80, 0.9)
    );
  background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: voidShopConfirmRim 3s linear infinite;
    opacity: 0.85;
}

.void-shop-confirm__flare {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    opacity: 0.55;
    animation: voidShopConfirmPulse 2.2s ease-in-out infinite;
}

.void-shop-confirm__flare--l {
    top: -30px;
    left: -20px;
    background: rgba(255, 60, 80, 0.7);
}

.void-shop-confirm__flare--r {
    bottom: -20px;
    right: -10px;
    background: rgba(0, 240, 255, 0.55);
    animation-delay: 0.6s;
}

.void-shop-confirm__eyebrow {
    margin: 0 0 8px;
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 180, 100, 0.85);
    text-shadow: 0 0 12px rgba(255, 100, 40, 0.6);
}

.void-shop-confirm__hero {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    width: 100%;
    min-height: 132px;
    overflow: visible;
}

.void-shop-confirm__hero .gacha-chest-wrap {
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0;
    transform: none;
    flex-shrink: 0;
    background: transparent;
}

.void-shop-confirm__hero .gacha-chest-img {
    width: 120px;
    height: 120px;
    max-width: 120px;
    margin: 0 auto;
}

.void-shop-confirm__title {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.25;
    background: linear-gradient(90deg, #fff5e0, #ff8844, #ff3366, #ffd700);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 14px rgba(255, 80, 40, 0.5));
}

.void-shop-confirm__body {
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 230, 245, 0.9);
    text-align: center;
}

.void-shop-confirm__cost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px 0 14px;
    padding: 10px 18px;
    border-radius: 12px;
    background: rgba(255, 60, 80, 0.12);
    border: 1px solid rgba(255, 100, 60, 0.35);
    font-size: 16px;
    font-weight: 800;
    color: #ffe8c8;
    box-shadow: 0 0 24px rgba(255, 60, 40, 0.2);
}

.void-shop-confirm__pool {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.void-shop-confirm__hint {
    margin: 12px 0 0;
    font-size: 12px;
    color: rgba(255, 200, 120, 0.75);
}

.void-shop-confirm__hint--warn {
    color: #ff99aa;
    font-weight: 700;
}

.void-shop-confirm__loot {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

.void-shop-confirm__loot li {
    margin: 4px 0;
    color: rgba(255, 220, 180, 0.9);
}

.void-shop-confirm__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.void-shop-confirm__btn {
    flex: 1;
    max-width: 160px;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.void-shop-confirm__btn:active {
    transform: scale(0.97);
}

.void-shop-confirm__btn--ghost {
    border: 1px solid rgba(160, 180, 220, 0.35);
    background: rgba(20, 16, 36, 0.85);
    color: rgba(220, 225, 255, 0.85);
}

.void-shop-confirm__btn--ghost:hover {
    border-color: rgba(0, 240, 255, 0.45);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.void-shop-confirm__btn--fire {
    border: none;
    color: #1a0508;
    background: linear-gradient(135deg, #ffcc44 0%, #ff5522 45%, #ff1144 100%);
    box-shadow:
        0 0 28px rgba(255, 80, 40, 0.55),
        0 4px 0 rgba(120, 20, 0, 0.5);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
    animation: voidShopConfirmBtnGlow 1.8s ease-in-out infinite;
}

.void-shop-confirm__btn--fire:hover {
    filter: brightness(1.08);
    box-shadow:
        0 0 36px rgba(255, 100, 50, 0.7),
        0 4px 0 rgba(120, 20, 0, 0.5);
}

@keyframes voidShopConfirmIn {
    from {
        opacity: 0;
        transform: scale(0.88) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes voidShopConfirmRim {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 300% 50%;
    }
}

@keyframes voidShopConfirmPulse {
    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes voidShopConfirmBtnGlow {
    0%,
    100% {
        box-shadow:
            0 0 22px rgba(255, 80, 40, 0.45),
            0 4px 0 rgba(120, 20, 0, 0.5);
    }
    50% {
        box-shadow:
            0 0 36px rgba(255, 140, 60, 0.75),
            0 4px 0 rgba(120, 20, 0, 0.5);
    }
}

@media (prefers-reduced-motion: reduce) {
    .glow-title,
    .bonus-tag-spin,
    .bonus-tag-spin__inner,
    .premium-bundle.bundle-card--mr,
    .premium-bundle.bundle-card--starter,
    .gacha-chest-img,
    .gacha-chest-wrap::before,
    .shop-cta--legend,
    .shop-cta--featured,
    .hot-tag.hot-tag--rainbow,
    .hot-tag.hot-tag--rainbow::before,
    .void-shop-confirm__panel,
    .void-shop-confirm__rim,
    .void-shop-confirm__flare,
    .void-shop-confirm__btn--fire,
    .recharge-payment__frame,
    .recharge-payment__panel,
    .recharge-payment__shimmer,
    .recharge-payment__temple-rim,
    .recharge-payment__halo,
    .recharge-payment-method--featured,
    .recharge-payment__loader-ring,
    .recharge-payment__loader-core,
    .recharge-payment__loading-text,
    .recharge-payment__loading-warn,
    .recharge-payment__success-burst,
    .recharge-payment__success-msg {
        animation: none;
    }
}

/* ═══════════════════════════════════════════════════════════
   儲值中心 · 安全支付結算視窗（霓虹毛玻璃 · 聖殿金流光）
   別名：.shop-modal = #recharge-payment-modal
         .shop-modal-content = .recharge-payment__panel
         .recharge-options-container = .recharge-payment__methods / .recharge-grid
   ═══════════════════════════════════════════════════════════ */
.shop-modal,
#recharge-payment-modal {
    position: fixed;
    inset: 0;
    z-index: 990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.shop-modal.hidden,
#recharge-payment-modal.hidden {
    display: none;
}

.recharge-payment__veil {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(2, 0, 8, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: auto;
}

/* 彈窗外框（等同 shop-modal-container / recharge-modal-container） */
.shop-modal-container,
.recharge-payment__frame,
.recharge-modal-container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 550px;
    max-height: 85vh;
    height: auto;
    margin: auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex-shrink: 0;
    overflow: hidden;
    pointer-events: auto;
    box-sizing: border-box;
    animation: rechargePaymentIn 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.recharge-payment__halo {
    position: absolute;
    inset: -24px;
    border-radius: 32px;
    background: radial-gradient(ellipse at 50% 40%, rgba(255, 200, 80, 0.18), transparent 68%);
    filter: blur(20px);
    pointer-events: none;
    animation: rechargePaymentHalo 3s ease-in-out infinite;
}

.shop-modal-content,
.recharge-payment__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 85vh;
    width: 100%;
    padding: 44px 24px 22px;
    border-radius: 22px;
    background: rgba(10, 5, 20, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 215, 120, 0.12);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 24px 80px rgba(0, 0, 0, 0.65),
        0 0 60px rgba(120, 60, 200, 0.15);
    overflow: hidden;
    box-sizing: border-box;
}

/* 聖殿金 · 四周流光邊框 */
.recharge-payment__temple-rim {
    position: absolute;
    inset: 0;
    border-radius: 22px;
    padding: 2px;
    background: linear-gradient(
        135deg,
        rgba(255, 220, 120, 0.15) 0%,
        rgba(255, 200, 60, 0.85) 18%,
        rgba(255, 240, 180, 0.4) 35%,
        rgba(200, 140, 255, 0.35) 50%,
        rgba(255, 200, 60, 0.85) 72%,
        rgba(255, 220, 120, 0.2) 100%
    );
    background-size: 400% 400%;
    animation: rechargeTempleRim 5s linear infinite;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
    opacity: 0.75;
}

.recharge-payment__temple-corners {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.recharge-payment__temple-corners span {
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: rgba(255, 215, 100, 0.55);
    border-style: solid;
    filter: drop-shadow(0 0 8px rgba(255, 200, 80, 0.6));
}

.recharge-payment__temple-corners span:nth-child(1) {
    top: 10px;
    left: 10px;
    border-width: 2px 0 0 2px;
    border-radius: 6px 0 0 0;
}

.recharge-payment__temple-corners span:nth-child(2) {
    top: 10px;
    right: 10px;
    border-width: 2px 2px 0 0;
    border-radius: 0 6px 0 0;
}

.recharge-payment__temple-corners span:nth-child(3) {
    bottom: 10px;
    left: 10px;
    border-width: 0 0 2px 2px;
    border-radius: 0 0 0 6px;
}

.recharge-payment__temple-corners span:nth-child(4) {
    bottom: 10px;
    right: 10px;
    border-width: 0 2px 2px 0;
    border-radius: 0 0 6px 0;
}

.recharge-payment__shimmer {
    position: absolute;
    top: -50%;
    left: -80%;
    width: 70%;
    height: 200%;
    background: linear-gradient(
        105deg,
        transparent 42%,
        rgba(255, 230, 160, 0.07) 50%,
        rgba(255, 255, 255, 0.12) 52%,
        transparent 58%
    );
    animation: rechargePaymentShimmer 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.recharge-payment__close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 20;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border: 1px solid rgba(255, 215, 120, 0.25);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 240, 220, 0.92);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition:
        background 0.2s,
        box-shadow 0.2s,
        border-color 0.2s;
}

.recharge-payment__close:hover {
    background: rgba(255, 200, 80, 0.15);
    border-color: rgba(255, 215, 100, 0.55);
    box-shadow: 0 0 20px rgba(255, 200, 80, 0.35);
}

.recharge-payment__head,
.recharge-payment__summary,
.recharge-payment__hint,
.recharge-payment__methods,
.recharge-payment__secure {
    position: relative;
    z-index: 2;
}

.recharge-payment__head {
    text-align: center;
    margin-bottom: 18px;
}

.recharge-payment__eyebrow {
    margin: 0 0 8px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: rgba(255, 215, 130, 0.75);
    text-transform: uppercase;
}

.recharge-payment__title {
    margin: 0 0 10px;
    font-size: 1.28rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #fff8ec;
    text-shadow: 0 0 24px rgba(255, 200, 100, 0.25);
}

.recharge-payment__region-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 240, 210, 0.95);
    background: rgba(255, 200, 80, 0.1);
    border: 1px solid rgba(255, 215, 120, 0.35);
    box-shadow: 0 0 16px rgba(255, 200, 80, 0.12);
}

.recharge-payment__summary {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px 14px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 215, 120, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.recharge-payment__price-block,
.recharge-payment__gold-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.recharge-payment__price-label,
.recharge-payment__gold-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(200, 190, 230, 0.7);
}

.recharge-payment__price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    line-height: 1;
}

.recharge-payment__symbol {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffd86a;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.recharge-payment__value {
    font-size: 2.1rem;
    font-weight: 900;
    color: #ffe566;
    letter-spacing: -0.02em;
    text-shadow:
        0 0 20px rgba(255, 215, 0, 0.55),
        0 0 40px rgba(255, 160, 40, 0.25);
}

.recharge-payment__tier {
    margin-top: 2px;
    font-size: 0.68rem;
    color: rgba(180, 200, 255, 0.65);
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recharge-payment__divider {
    width: 1px;
    height: 52px;
    background: linear-gradient(
        180deg,
        transparent,
        rgba(255, 215, 120, 0.45),
        transparent
    );
}

.recharge-payment__gold-value {
    font-size: 1.65rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 16px rgba(255, 220, 100, 0.35);
}

.recharge-payment__gold-suffix {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: rgba(255, 200, 80, 0.65);
}

/* 結算摘要置中修正：避免左右欄位視覺偏移 */
.recharge-payment__summary {
    justify-items: center;
    text-align: center;
}

.recharge-payment__price-block,
.recharge-payment__gold-block {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.recharge-payment__hint {
    margin: 0 0 14px;
    font-size: 0.76rem;
    line-height: 1.45;
    text-align: center;
    color: rgba(190, 200, 240, 0.72);
}

.recharge-payment__methods,
.recharge-options-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 11px;
    width: 100%;
    max-width: 100%;
}

/* ── 支付按鈕 · 通用 ── */
.recharge-payment-method {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 48px 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: inherit;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    transition:
        transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.22s,
        box-shadow 0.22s;
}

.recharge-payment-method__glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
}

.recharge-payment-method__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
}

.recharge-payment-method__copy {
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}

.recharge-payment-method__name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff8ec;
    text-align: center;
}

.recharge-payment-method__sub {
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.72;
    text-align: center;
}

.recharge-payment-method__badge {
    position: absolute;
    top: 10px;
    right: 12px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #1a0800;
    background: linear-gradient(135deg, #ffe566, #ffb830);
    box-shadow: 0 0 12px rgba(255, 200, 60, 0.45);
}

.recharge-payment-method:disabled {
    opacity: 0.5;
    cursor: wait;
    transform: none !important;
}

/* Stripe · 深邃黑底 · 高亮藍字 */
.recharge-payment-method--stripe {
    background: linear-gradient(135deg, rgba(4, 6, 14, 0.95), rgba(12, 18, 36, 0.9));
    border-color: rgba(80, 120, 255, 0.35);
}

.recharge-payment-method--stripe .recharge-payment-method__icon {
    background: rgba(30, 80, 200, 0.2);
    box-shadow: inset 0 0 12px rgba(60, 120, 255, 0.2);
}

.recharge-payment-method--stripe .recharge-payment-method__name {
    color: #7eb8ff;
    text-shadow: 0 0 12px rgba(80, 150, 255, 0.35);
}

.recharge-payment-method--stripe .recharge-payment-method__sub {
    color: rgba(120, 170, 255, 0.85);
}

.recharge-payment-method--stripe .recharge-payment-method__glow {
    background: radial-gradient(ellipse at 20% 50%, rgba(60, 120, 255, 0.25), transparent 65%);
}

.recharge-payment-method--stripe:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.01);
    border-color: rgba(100, 160, 255, 0.75);
    box-shadow:
        0 0 32px rgba(60, 120, 255, 0.45),
        0 0 64px rgba(40, 80, 200, 0.25),
        inset 0 0 24px rgba(60, 120, 255, 0.08);
}

.recharge-payment-method--stripe:hover:not(:disabled) .recharge-payment-method__glow {
    opacity: 1;
}

/* 支付寶 · 科技藍 */
.recharge-payment-method--alipay {
    background: linear-gradient(135deg, rgba(4, 20, 48, 0.92), rgba(8, 40, 80, 0.88));
    border-color: rgba(40, 140, 255, 0.4);
}

.recharge-payment-method--alipay .recharge-payment-method__icon {
    background: rgba(20, 100, 220, 0.25);
}

.recharge-payment-method--alipay .recharge-payment-method__name {
    color: #5ec8ff;
    text-shadow: 0 0 14px rgba(40, 160, 255, 0.4);
}

.recharge-payment-method--alipay .recharge-payment-method__sub {
    color: rgba(100, 200, 255, 0.85);
}

.recharge-payment-method--alipay .recharge-payment-method__glow {
    background: radial-gradient(ellipse at 30% 50%, rgba(30, 140, 255, 0.3), transparent 65%);
}

.recharge-payment-method--alipay:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.01);
    border-color: rgba(80, 180, 255, 0.85);
    box-shadow:
        0 0 36px rgba(30, 140, 255, 0.5),
        0 0 72px rgba(20, 100, 220, 0.3),
        inset 0 0 20px rgba(60, 160, 255, 0.1);
}

.recharge-payment-method--alipay:hover:not(:disabled) .recharge-payment-method__glow {
    opacity: 1;
}

/* 便利商店 / 本地金流 */
.recharge-payment-method--convenience {
    background: linear-gradient(135deg, rgba(28, 16, 48, 0.9), rgba(20, 24, 56, 0.88));
    border-color: rgba(180, 140, 255, 0.3);
}

.recharge-payment-method--convenience .recharge-payment-method__name {
    color: #d4b8ff;
}

.recharge-payment-method--convenience:hover:not(:disabled) {
    transform: translateY(-3px);
    border-color: rgba(200, 160, 255, 0.65);
    box-shadow:
        0 0 28px rgba(160, 100, 255, 0.4),
        0 0 56px rgba(120, 60, 200, 0.2);
}

/* 推薦高亮（TWD Stripe / CNY 支付寶 / 港澳 Stripe 主通道） */
.recharge-payment-method--featured {
    border-width: 1.5px;
}

.recharge-payment-method--stripe.recharge-payment-method--featured {
    box-shadow:
        0 0 0 1px rgba(100, 160, 255, 0.25),
        0 0 24px rgba(60, 120, 255, 0.2);
}

.recharge-payment-method--alipay.recharge-payment-method--featured {
    animation: rechargeFeaturedPulse 2.4s ease-in-out infinite;
}

.recharge-payment--cny .recharge-payment-method--alipay.recharge-payment-method--featured {
    border-width: 2px;
}

.recharge-payment--twd .recharge-payment-method--stripe.recharge-payment-method--featured {
    animation: rechargeFeaturedPulse 2.4s ease-in-out infinite;
}

.recharge-payment__secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.68rem;
    color: rgba(160, 170, 200, 0.65);
    letter-spacing: 0.04em;
}

.recharge-payment__secure-icon {
    font-size: 0.85rem;
    filter: grayscale(0.2);
}

body.recharge-payment-open {
    overflow: hidden;
}

/* 結算中 / 成功 · 覆蓋層 */
.recharge-payment__content {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
    transition: opacity 0.25s;
}

.recharge-payment__content--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    height: 0;
    overflow: hidden;
}

.recharge-payment__overlay {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px 20px;
    border-radius: 20px;
    background: rgba(10, 5, 20, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.recharge-payment__overlay.hidden {
    display: none;
}

.recharge-payment--settling .recharge-payment__panel,
.recharge-payment--success .recharge-payment__panel {
    min-height: 320px;
}

.recharge-payment__loader {
    position: relative;
    width: 72px;
    height: 72px;
}

.recharge-payment__loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(255, 215, 120, 0.15);
    border-top-color: rgba(255, 220, 100, 0.95);
    border-right-color: rgba(0, 200, 255, 0.7);
    animation: rechargeLoaderSpin 0.9s linear infinite;
    box-shadow: 0 0 24px rgba(255, 200, 80, 0.25);
}

.recharge-payment__loader-core {
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 220, 100, 0.35), transparent 70%);
    animation: rechargeLoaderPulse 1.2s ease-in-out infinite;
}

.recharge-payment__loading-text {
    margin: 8px 0 0;
    font-size: 0.95rem;
    font-weight: 800;
    text-align: center;
    color: #fff8ec;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
    animation: rechargeLoadingTextPulse 1.5s ease-in-out infinite;
}

.recharge-payment__loading-warn {
    margin: 10px 0 0;
    max-width: 280px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
    color: #ffc857;
    text-shadow: 0 0 12px rgba(255, 180, 60, 0.45);
    animation: rechargeLoadingWarnPulse 1.8s ease-in-out infinite;
}

@keyframes rechargeLoadingWarnPulse {
    0%,
    100% {
        opacity: 0.88;
    }
    50% {
        opacity: 1;
    }
}

.recharge-payment__loading-sub {
    margin: 8px 0 0;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: rgba(0, 240, 255, 0.65);
}

.recharge-payment__overlay--success {
    background: rgba(8, 16, 32, 0.92);
}

.recharge-payment__success-burst {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(80, 255, 160, 0.25), transparent 68%);
    animation: rechargeSuccessBurst 1.2s ease-out infinite;
    pointer-events: none;
}

.recharge-payment__success-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.6rem;
    font-weight: 900;
    color: #0a2818;
    background: linear-gradient(135deg, #5dff9a, #2ee878);
    box-shadow:
        0 0 32px rgba(80, 255, 140, 0.55),
        0 0 64px rgba(40, 200, 100, 0.25);
    animation: rechargeSuccessPop 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.recharge-payment__success-eyebrow {
    margin: 4px 0 0;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    color: rgba(120, 255, 180, 0.85);
}

.recharge-payment__success-msg {
    margin: 0;
    max-width: 320px;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
    color: #e8fff4;
    text-shadow:
        0 0 20px rgba(80, 255, 160, 0.4),
        0 0 40px rgba(0, 200, 255, 0.15);
    animation: rechargeSuccessMsgIn 0.45s ease-out 0.1s both;
}

.recharge-payment__success-confirm {
    margin-top: 10px;
    padding: 12px 36px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    border: 1px solid transparent;
    color: #0a2818;
    background: linear-gradient(135deg, #5dff9a, #2ee878);
    box-shadow: 0 4px 20px rgba(80, 255, 140, 0.45);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    animation: rechargeSuccessMsgIn 0.45s ease-out 0.2s both;
}

.recharge-payment__success-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(80, 255, 140, 0.55);
}

.recharge-payment__success-confirm:focus-visible {
    outline: 2px solid rgba(120, 255, 180, 0.9);
    outline-offset: 2px;
}

.recharge-payment__close:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

@keyframes rechargeLoaderSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes rechargeLoaderPulse {
    0%,
    100% {
        opacity: 0.5;
        transform: scale(0.92);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes rechargeLoadingTextPulse {
    0%,
    100% {
        opacity: 0.85;
    }
    50% {
        opacity: 1;
    }
}

@keyframes rechargeSuccessPop {
    from {
        opacity: 0;
        transform: scale(0.4);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rechargeSuccessBurst {
    0%,
    100% {
        opacity: 0.5;
        transform: scale(0.95);
    }
    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

@keyframes rechargeSuccessMsgIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rechargePaymentIn {
    from {
        opacity: 0;
        transform: scale(0.88) translateY(16px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes rechargeTempleRim {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 400% 50%;
    }
}

@keyframes rechargePaymentShimmer {
    0%,
    100% {
        transform: translateX(-15%) rotate(8deg);
        opacity: 0.35;
    }
    50% {
        transform: translateX(130%) rotate(8deg);
        opacity: 0.95;
    }
}

@keyframes rechargePaymentHalo {
    0%,
    100% {
        opacity: 0.65;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.04);
    }
}

@keyframes rechargeFeaturedPulse {
    0%,
    100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.12);
    }
}

@media (max-width: 400px) {
    .recharge-payment__summary {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        text-align: center;
    }

    .recharge-payment__divider {
        width: 80%;
        height: 1px;
        margin: 0 auto;
        background: linear-gradient(
            90deg,
            transparent,
            rgba(255, 215, 120, 0.45),
            transparent
        );
    }

    .recharge-payment__value {
        font-size: 1.85rem;
    }
}

/* Stripe Payment Element · 測試刷卡區 */
.recharge-payment__stripe-panel {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 2px 8px;
    min-height: 280px;
    /* Safari：backdrop-filter / 上層 transform 會導致 Apple Pay 無法顯示 */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(8, 14, 28, 0.98);
}

.recharge-payment--stripe .recharge-payment__panel,
.recharge-payment--stripe .recharge-payment__veil {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.recharge-payment--stripe .recharge-payment__frame {
    animation: none !important;
    transform: none !important;
}

.recharge-payment--stripe .recharge-payment__halo {
    display: none;
}

.recharge-payment__stripe-panel.hidden {
    display: none;
}

.recharge-payment--stripe .recharge-payment__content {
    visibility: hidden;
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.recharge-payment__stripe-eyebrow {
    margin: 0;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-align: center;
    color: rgba(120, 200, 255, 0.9);
}

.recharge-payment__stripe-hint {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.45;
    text-align: center;
    color: rgba(220, 235, 255, 0.72);
}

.recharge-payment__stripe-hint code {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.35);
    color: #9ee8ff;
}

.recharge-payment__stripe-wallet-hint {
    margin: 0 0 8px;
    padding: 8px 10px;
    font-size: 0.72rem;
    line-height: 1.45;
    color: rgba(200, 220, 255, 0.85);
    background: rgba(40, 70, 120, 0.35);
    border: 1px solid rgba(100, 160, 255, 0.35);
    border-radius: 8px;
}

.recharge-payment__stripe-wallet-hint.hidden {
    display: none;
}

.recharge-payment__stripe-express {
    min-height: 48px;
    margin-bottom: 10px;
    padding: 4px 2px;
}

.recharge-payment__stripe-express.is-empty {
    visibility: hidden;
    height: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.recharge-payment__stripe-mount {
    min-height: 120px;
    padding: 12px 10px;
    border-radius: 12px;
    background: rgba(6, 14, 28, 0.85);
    border: 1px solid rgba(100, 180, 255, 0.35);
    box-shadow: inset 0 0 24px rgba(0, 120, 255, 0.08);
}

.recharge-payment__stripe-error {
    margin: 10px 0 0;
    padding: 10px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.45;
    text-align: left;
    color: #ffd0d0;
    background: rgba(120, 20, 30, 0.55);
    border: 1px solid rgba(255, 100, 100, 0.55);
    border-radius: 10px;
    box-shadow: 0 0 16px rgba(255, 60, 60, 0.12);
}

.recharge-payment__stripe-error.hidden {
    display: none;
}

.recharge-payment__stripe-actions {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 10px;
    margin-top: 4px;
}

.recharge-payment__stripe-back,
.recharge-payment__stripe-submit {
    padding: 12px 10px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.recharge-payment__stripe-back {
    color: rgba(220, 235, 255, 0.9);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.recharge-payment__stripe-back:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}

.recharge-payment__stripe-submit {
    color: #061018;
    background: linear-gradient(135deg, #6ec8ff, #3d8fff);
    box-shadow: 0 4px 20px rgba(60, 140, 255, 0.45);
}

.recharge-payment__stripe-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(60, 140, 255, 0.55);
}

.recharge-payment__stripe-back:disabled,
.recharge-payment__stripe-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* 禮包直購：隱藏金幣區，突出實付金額 */
.recharge-payment--bundle .recharge-payment__gold-label::after {
    content: '（禮包內容見商店）';
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    opacity: 0.65;
    margin-top: 2px;
}

.recharge-payment--bundle .recharge-payment__summary {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
}

.recharge-payment--bundle .recharge-payment__divider,
.recharge-payment--bundle .recharge-payment__gold-block {
    display: none;
}

.recharge-payment--bundle .recharge-payment__price-block {
    width: 100%;
    align-items: center;
}

/* 儲值結算彈窗 · 手機／平板 */
@media (max-width: 768px) {
    .shop-view {
        padding-bottom: max(88px, env(safe-area-inset-bottom, 0px));
        overflow-x: hidden;
    }

    #shop-panel {
        max-width: 100%;
        padding: 0 6px;
        box-sizing: border-box;
    }

    #void-shop-overlay.shop-glass,
    .void-shop-overlay {
        padding: 14px 12px 20px;
        border-radius: 16px;
        overflow-x: hidden;
        overflow-y: visible;
    }

    .shop-tabs {
        flex-wrap: wrap;
    }

    .shop-tab {
        flex: 1 1 calc(50% - 8px);
        min-width: 0;
    }

    .recharge-panel {
        padding-bottom: 24px;
    }

    .recharge-double-refresh-note {
        position: static;
        max-width: 100%;
        margin: 0 0 12px;
        padding: 8px 10px;
        text-align: center;
        white-space: normal;
    }

    .recharge-grid,
    .recharge-options-container {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        grid-template-columns: 1fr !important;
    }

    .recharge-card {
        min-width: 0;
        width: 100%;
    }

    .shop-modal,
    #recharge-payment-modal {
        align-items: flex-start;
        justify-content: flex-start;
        padding: max(10px, env(safe-area-inset-top, 0px)) 8px max(12px, env(safe-area-inset-bottom, 0px));
        min-height: 100dvh;
        min-height: 100vh;
    }

    .shop-modal-container,
    .recharge-payment__frame,
    .recharge-modal-container {
        width: 95% !important;
        max-width: none !important;
        max-height: 85vh !important;
        margin: 8px auto 0;
    }

    .shop-modal-content,
    .recharge-payment__panel {
        width: 100% !important;
        max-height: 85vh !important;
        padding: 42px 15px max(16px, env(safe-area-inset-bottom, 0px)) !important;
    }

    .recharge-payment__halo {
        inset: -8px;
    }

    .recharge-payment__close {
        top: 8px;
        right: 8px;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .recharge-payment__content {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        max-height: calc(85vh - 52px);
    }

    .recharge-payment__title {
        font-size: 1.05rem;
    }

    .recharge-payment__value {
        font-size: 1.65rem;
    }

    .recharge-payment__summary {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px 10px;
    }

    .recharge-payment__divider {
        width: 100%;
        height: 1px;
        margin: 4px 0;
        background: linear-gradient(
            90deg,
            transparent,
            rgba(255, 215, 120, 0.45),
            transparent
        );
    }

    .recharge-payment__methods,
    .recharge-options-container {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
    }

    .recharge-payment-method {
        min-height: 48px;
        padding: 12px 10px;
        flex-wrap: wrap;
    }

    .recharge-payment__secure {
        margin-top: 12px;
        padding-top: 12px;
        padding-bottom: 4px;
        font-size: 0.62rem;
        line-height: 1.35;
        text-align: center;
    }

    .recharge-payment__stripe-actions {
        grid-template-columns: 1fr;
    }

    .recharge-payment--settling .recharge-payment__panel,
    .recharge-payment--success .recharge-payment__panel {
        min-height: min(220px, 65vh);
        max-height: 85vh !important;
    }

    .recharge-payment__overlay {
        padding: 20px 14px;
    }

    #void-shop-confirm-modal {
        align-items: flex-start;
        padding: max(12px, env(safe-area-inset-top, 0px)) 10px max(16px, env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        touch-action: pan-y;
    }

    .void-shop-confirm__panel {
        width: 95% !important;
        max-width: none !important;
        max-height: 85vh !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 20px 15px 18px !important;
    }
}

/* 📱 儲值中心手機版完美自適應與滾動修正（void-shop.css 最底部） */
@media (max-width: 768px) {
    body.recharge-payment-open {
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    /* 1. 強制讓白色彈窗在手機上變成滿版（或高彈性），並開啟內部滾動 */
    .shop-modal:not(.hidden),
    #recharge-payment-modal:not(.hidden) {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 12px 8px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .shop-modal:not(.hidden) .shop-modal-content,
    .shop-modal:not(.hidden) .recharge-payment__panel,
    #recharge-payment-modal:not(.hidden) .recharge-payment__panel {
        width: 95% !important;
        height: 85vh !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 20px 15px 40px 15px !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
    }

    .shop-modal:not(.hidden) .recharge-payment__content,
    #recharge-payment-modal:not(.hidden) .recharge-payment__content {
        overflow: visible !important;
        max-height: none !important;
    }

    .shop-modal:not(.hidden) .recharge-payment__frame,
    #recharge-payment-modal:not(.hidden) .recharge-payment__frame {
        width: 100% !important;
        max-width: 100% !important;
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
    }

    .shop-modal:not(.hidden) .recharge-payment__close,
    #recharge-payment-modal:not(.hidden) .recharge-payment__close {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        z-index: 10 !important;
    }

    /* 2. 讓裡面的儲值選項在手機上變成「垂直一條龍」排列，不准橫向硬擠變形 */
    .shop-grid,
    .recharge-grid,
    .recharge-payment__methods,
    .recharge-options-container,
    .shop-modal .recharge-grid,
    .shop-modal div[class*="grid"] {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 15px !important;
    }

    /* 3. 確保每個儲值卡片在手機上是 100% 寬度 */
    .shop-item,
    .recharge-card,
    .recharge-payment-method,
    .shop-modal .recharge-card,
    .shop-modal .recharge-payment-method {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* ── 30 日賽季戰令 ── */
.content-grid:has(.bp-season-wrap) {
    display: block;
}

.bp-season-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    max-height: min(68vh, 720px);
}

.bp-season-head {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
    padding: 8px 12px 4px;
    flex-shrink: 0;
}

.bp-season-head__center {
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
}

.bp-season-eyebrow {
    margin: 0;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    color: rgba(255, 200, 120, 0.75);
}

.bp-season-title {
    margin: 0;
    font-size: 1.35rem;
    color: #ffe8c8;
}

.bp-season-sub {
    margin: 0;
    max-width: 42em;
    font-size: 0.92rem;
    color: rgba(220, 235, 255, 0.92);
    line-height: 1.5;
}

.bp-season-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 4px;
    gap: 8px;
}

.bp-season-pay-hint {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(180, 230, 255, 0.88);
}

.bp-premium-badge.is-owned {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    color: #1a1200;
    background: linear-gradient(135deg, #ffd700, #ff9f57);
}

.bp-unlock-premium {
    white-space: nowrap;
}

.bp-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    margin-bottom: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(200, 225, 255, 0.92);
    text-align: center;
    line-height: 1.45;
    flex-shrink: 0;
}

.bp-grid-head,
.bp-day-row {
    display: grid;
    grid-template-columns: 88px 1fr 1fr;
    gap: 12px;
    align-items: center;
}

.bp-grid-head {
    margin-bottom: 8px;
    padding: 0 10px;
    font-size: 0.88rem;
    font-weight: 800;
    color: rgba(255, 230, 180, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}

.bp-day-list {
    display: grid;
    gap: 10px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 2px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.bp-day-row {
    padding: 12px 10px;
    border-radius: 12px;
    border: 1px solid rgba(120, 80, 200, 0.35);
    background: rgba(0, 0, 0, 0.32);
}

.bp-day-row.is-locked {
    opacity: 0.72;
}

.bp-day-row--ultimate {
    border-color: rgba(255, 215, 0, 0.55);
    background: linear-gradient(135deg, rgba(60, 30, 8, 0.55), rgba(20, 8, 40, 0.65));
    box-shadow: 0 0 20px rgba(255, 180, 60, 0.15);
}

.bp-day-row__label {
    font-size: 1rem;
    font-weight: 800;
    color: #ffe566;
    line-height: 1.35;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

.bp-day-row__label strong {
    font-size: 1.08em;
}

.bp-track {
    display: grid;
    gap: 8px;
}

.bp-track__loot {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
    color: rgba(235, 245, 255, 0.96);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    letter-spacing: 0.02em;
}

.bp-track--premium .bp-track__loot {
    color: rgba(255, 235, 190, 0.98);
}

/* .bp-claim-btn 可領取樣式見 css/void-claim-reward.css */

.bp-claim-btn:disabled {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    opacity: 0.65;
    cursor: not-allowed;
    color: rgba(200, 225, 245, 0.9);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    font-family: inherit;
}

@media (max-width: 640px) {
    .bp-grid-head,
    .bp-day-row {
        grid-template-columns: minmax(42px, 50px) minmax(0, 1fr) minmax(0, 1fr);
        gap: 8px;
        align-items: stretch;
    }

    .bp-grid-head {
        display: grid;
        margin-bottom: 6px;
        padding: 0 6px;
        font-size: 0.68rem;
        letter-spacing: 0.03em;
    }

    .bp-grid-head span {
        text-align: center;
        line-height: 1.2;
    }

    .bp-grid-head span:first-child {
        font-size: 0.62rem;
    }

    .bp-day-row {
        padding: 10px 6px;
    }

    .bp-day-row__label {
        padding-bottom: 0;
        border-bottom: none;
        font-size: 0.74rem;
        line-height: 1.25;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .bp-day-row__label strong {
        display: block;
        font-size: 1.05em;
    }

    .bp-track {
        gap: 6px;
        min-width: 0;
    }

    .bp-track--free {
        padding-right: 4px;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }

    .bp-track--premium {
        padding-left: 4px;
    }

    .bp-track__loot {
        font-size: 0.72rem;
        line-height: 1.35;
        word-break: break-word;
    }

    .bp-claim-btn:disabled,
    .bp-claim-btn:not(:disabled) {
        width: 100%;
        padding: 7px 4px;
        font-size: 0.72rem;
        white-space: normal;
        line-height: 1.2;
        text-align: center;
    }

    .bp-legend {
        font-size: 0.78rem;
        gap: 6px 10px;
    }

    .bp-season-wrap {
        max-height: min(62vh, calc(100dvh - 280px));
    }
}
