.fi-gem-market-strip {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    margin: 28px 0 14px;
}

.fi-gem-market-strip span {
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 190, 86, 0.92), rgba(255, 112, 65, 0.68), transparent);
    box-shadow: 0 0 24px rgba(255, 174, 52, 0.55);
}

.fi-gem-market-strip strong {
    color: #fff8d7;
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-shadow: 0 0 18px rgba(255, 174, 52, 0.55);
}

.fi-gem-count,
.fi-gem-wallet strong,
.fi-gem-card-footer strong {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

.fi-gem-count i,
.fi-gem-wallet strong::before,
.fi-gem-card-footer strong i {
    width: 18px;
    height: 18px;
    display: inline-block;
    border-radius: 6px 6px 10px 10px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.85), transparent 34%),
        linear-gradient(135deg, #69e2ff, #805cff 50%, #ff72d2);
    transform: rotate(45deg);
    box-shadow: 0 0 18px rgba(105, 226, 255, 0.7), inset 0 0 10px rgba(255, 255, 255, 0.35);
    animation: fi-gem-pulse 1.9s ease-in-out infinite;
}

.fi-gem-count i:last-child {
    width: 12px;
    height: 12px;
    opacity: 0.72;
    animation-delay: 0.45s;
}

.fi-gem-heading {
    overflow: hidden;
    position: relative;
}

.fi-gem-heading::after {
    content: "";
    position: absolute;
    inset: auto -10% 0 auto;
    width: 34%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 174, 52, 0.24), transparent 64%);
    pointer-events: none;
}

.fi-gem-wallet {
    min-width: 170px;
    border: 1px solid rgba(255, 190, 86, 0.38);
    border-radius: 22px;
    padding: 16px 20px;
    background: rgba(12, 16, 38, 0.72);
    box-shadow: inset 0 0 24px rgba(255, 174, 52, 0.08), 0 14px 34px rgba(0, 0, 0, 0.24);
}

.fi-gem-wallet span,
.fi-gem-wallet strong {
    display: block;
}

.fi-gem-wallet span {
    color: var(--fi-muted);
    font-size: 0.82rem;
}

.fi-gem-wallet strong {
    margin-top: 4px;
    color: #ffcf73;
    font-size: 2rem;
}

.fi-gem-shop-hero {
    min-height: 230px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.52fr);
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 190, 86, 0.24);
    border-radius: 28px;
    padding: 28px;
    overflow: hidden;
    position: relative;
    background: radial-gradient(circle at 82% 60%, rgb(105 67 30), #00000000 28%), linear-gradient(135deg, rgb(41 26 11), rgb(8 5 1));
}

.fi-gem-shop-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.08) 46%, transparent 58%);
    transform: translateX(-110%);
    animation: fi-shop-sweep 4s ease-in-out infinite;
}

.fi-gem-shop-chip {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 8px 13px;
    background: linear-gradient(135deg, #ff9f32, #ff6b7b);
    color: #fff;
    font-weight: 900;
    margin-bottom: 14px;
}

.fi-gem-shop-hero h2 {
    max-width: 720px;
    margin: 0;
    color: #fff;
    font-size: clamp(1.35rem, 2.6vw, 2.3rem);
    line-height: 1.08;
}

.fi-gem-shop-hero p {
    margin: 12px 0 0;
    color: #d9e3ff;
}

.fi-gem-shop-stage {
    min-height: 180px;
    display: grid;
    place-items: center;
    position: relative;
    isolation: isolate;
}

.fi-gem-shop-stage::before {
    content: "";
    width: 210px;
    height: 210px;
    border-radius: 50%;
    position: absolute;
    background: radial-gradient(circle, rgba(255, 190, 86, 0.34), transparent 67%);
    filter: blur(2px);
}

.fi-bunny,
.fi-donut {
    position: absolute;
    font-size: 4.2rem;
    filter: drop-shadow(0 18px 22px rgba(0,0,0,0.36));
}

.fi-bunny--left {
    left: 12%;
    bottom: 14%;
    animation: fi-bunny-wave 2.4s ease-in-out infinite;
}

.fi-bunny--right {
    right: 10%;
    bottom: 12%;
    animation: fi-bunny-wave 2.4s ease-in-out infinite 0.4s;
}

.fi-donut {
    font-size: 5rem;
    top: 18%;
    animation: fi-donut-spin 5.5s linear infinite;
}

.fi-gem-shop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.fi-gem-shop-card {
    min-height: 340px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border: 5px solid rgb(37 18 4);
    border-radius: 44px;
    background: radial-gradient(circle at 80% 18%, rgb(255 190 86 / 39%), #00000000 30%), rgb(73 49 19);
    box-shadow: 0 2px 12px rgb(147 86 40);
}


.fi-gem-card-glow {
    position: absolute;
    inset: -30% -10% auto auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 190, 86, 0.24);
    filter: blur(28px);
}

.fi-gem-shop-card.rarity-violet .fi-gem-card-glow,
.fi-gem-shop-card.rarity-red .fi-gem-card-glow,
.fi-gem-shop-card.rarity-mythic_red .fi-gem-card-glow {
    background: rgba(188, 99, 255, 0.25);
}

.fi-gem-card-media {
    height: 130px;
    display: grid;
    place-items: center;
    padding-top: 18px;
}

.fi-gem-card-media img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    filter: drop-shadow(0 28px 20px rgba(0, 0, 0, 0.52));
    animation: fi-card-float 3.2s ease-in-out infinite;
}

.fi-gem-card-copy {
    position: relative;
    z-index: 1;
    padding: 0 20px 16px;
    flex: 1;
}

.fi-gem-card-copy span {
    color: #ffcf73;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.fi-gem-card-copy h3 {
    margin: 8px 0;
    color: #fff;
    font-size: 1.18rem;
}

.fi-gem-card-copy p {
    color: #bfc9ee;
    line-height: 1.45;
    min-height: 58px;
}

.fi-gem-card-copy small {
    color: #7f91c5;
}

.fi-gem-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(146, 164, 228, 0.14);
    padding: 16px 20px 20px;
}

.fi-gem-card-footer strong {
    color: #ffcf73;
    font-size: 1.18rem;
}

.fi-gem-card-footer button {
    border: 0;
    border-radius: 999px;
    padding: 11px 17px;
    color: #1d1206;
    font-weight: 900;
    cursor: pointer;
    background: linear-gradient(135deg, #ffd575, #ff8f32);
    box-shadow: 0 12px 26px rgba(255, 143, 50, 0.28);
}

.fi-gem-card-footer button:disabled {
    opacity: 0.65;
    cursor: wait;
}

@keyframes fi-gem-pulse {
    0%, 100% { transform: rotate(45deg) scale(1); }
    50% { transform: rotate(45deg) scale(1.18); }
}

@keyframes fi-shop-sweep {
    0%, 45% { transform: translateX(-110%); }
    70%, 100% { transform: translateX(110%); }
}

@keyframes fi-bunny-wave {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50% { transform: translateY(-12px) rotate(5deg); }
}

@keyframes fi-donut-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fi-card-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

@media (max-width: 980px) {
    .fi-gem-shop-hero,
    .fi-gem-shop-grid {
        grid-template-columns: 1fr;
    }
}
