/* ============================================
   SHOP SYSTEM CSS v1.0
   ============================================ */

/* Rarità colori */
:root {
    --rarity-common: #b0bec5;
    --rarity-rare: #2979ff;
    --rarity-epic: #aa00ff;
    --rarity-legendary: #ff6d00;
    --shop-bg: #0a0a1a;
    --shop-card-bg: #111128;
    --shop-border: rgba(0,200,255,0.2);
    --shop-accent: #00c8ff;
}

/* ===== SHOP PANEL ===== */
.shop-panel { position: fixed; inset: 0; z-index: 9999; animation: shopFadeIn 0.3s ease; }
.shop-panel.closing { animation: shopFadeOut 0.35s ease forwards; }

@keyframes shopFadeIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
@keyframes shopFadeOut { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(0.96); } }

.shop-overlay {
    position: fixed; inset: 0;
    background: rgba(5,5,20,0.94);
    backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    touch-action: manipulation;
}

.shop-container {
    background: linear-gradient(160deg, #0d0d22 0%, #0a0a1a 100%);
    border: 1.5px solid rgba(0,200,255,0.3);
    border-radius: 18px;
    width: 100%; max-width: 1100px;
    max-height: min(92vh, calc(var(--goregrid-vvh, 100dvh) - 32px));
    display: flex; flex-direction: column;
    box-shadow: 0 0 60px rgba(0,100,255,0.15), 0 0 120px rgba(100,0,255,0.08), inset 0 0 30px rgba(0,200,255,0.03);
    overflow: hidden;
    box-sizing: border-box;
}

/* ===== HEADER ===== */
.shop-header {
    display: flex; align-items: center; gap: 16px;
    padding: 18px 24px;
    border-bottom: 1.5px solid rgba(0,200,255,0.15);
    background: linear-gradient(90deg, rgba(0,50,100,0.18) 0%, transparent 100%);
    flex-shrink: 0;
}

.shop-title {
    font-size: 1.5rem; font-weight: 900; letter-spacing: 2px;
    color: #00e8ff;
    text-shadow: 0 0 20px rgba(0,200,255,0.7);
    display: flex; align-items: center; gap: 10px;
    flex: 1;
}
.shop-title-icon { font-size: 1.6rem; }

.shop-currency-display {
    display: flex; align-items: center; gap: 10px;
}

.currency-amount {
    display: flex; align-items: center; gap: 6px;
    background: rgba(0,200,255,0.08);
    border: 1px solid rgba(0,200,255,0.3);
    border-radius: 30px;
    padding: 6px 14px;
    font-weight: 700; font-size: 1.1rem; color: #ffe040;
}
.currency-icon { font-size: 1.2rem; }

.buy-credits-btn {
    background: linear-gradient(135deg, #00aa55, #00cc66);
    border: none; border-radius: 20px;
    color: #fff; font-weight: 700; font-size: 0.85rem;
    padding: 7px 16px; cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 12px rgba(0,200,100,0.4);
}
.buy-credits-btn:hover { transform: translateY(-2px); box-shadow: 0 0 20px rgba(0,200,100,0.6); }

.shop-close-btn {
    background: rgba(255,50,50,0.15);
    border: 1.5px solid rgba(255,50,50,0.4);
    color: #ff6060; width: 36px; height: 36px;
    border-radius: 50%; font-size: 1rem; cursor: pointer;
    transition: all 0.2s; flex-shrink: 0;
}
.shop-close-btn:hover { background: rgba(255,50,50,0.35); transform: rotate(90deg); }

/* ===== TABS ===== */
.shop-tabs {
    display: flex; gap: 4px; padding: 10px 16px 0;
    border-bottom: 1.5px solid rgba(0,200,255,0.1);
    flex-shrink: 0; overflow-x: auto;
    touch-action: pan-x;
    scrollbar-width: none;
}
.shop-tabs::-webkit-scrollbar { display: none; }

.shop-tab {
    background: transparent;
    border: none; border-bottom: 2.5px solid transparent;
    color: rgba(180,200,220,0.55);
    font-size: 0.88rem; font-weight: 600;
    padding: 8px 16px 10px; cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s; border-radius: 6px 6px 0 0;
}
.shop-tab:hover { color: #00e8ff; background: rgba(0,200,255,0.06); }
.shop-tab.active {
    color: #00e8ff;
    border-bottom-color: #00e8ff;
    background: rgba(0,200,255,0.08);
    text-shadow: 0 0 10px rgba(0,200,255,0.5);
}

/* ===== CONTENT ===== */
.shop-content {
    flex: 1;
    overflow-y: auto;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,200,255,0.3) transparent;
}
.shop-content::-webkit-scrollbar { width: 6px; }
.shop-content::-webkit-scrollbar-thumb { background: rgba(0,200,255,0.3); border-radius: 3px; }

/* ===== RARITÀ ===== */
.rarity-common { --rc: var(--rarity-common); }
.rarity-rare { --rc: var(--rarity-rare); }
.rarity-epic { --rc: var(--rarity-epic); }
.rarity-legendary { --rc: var(--rarity-legendary); }

/* ===== FEATURED ===== */
.featured-section { display: flex; flex-direction: column; gap: 20px; }

.featured-header {
    display: flex; justify-content: space-between; align-items: center;
}
.featured-header h2 { font-size: 1.3rem; color: #ffe040; margin: 0; }

.featured-timer { color: rgba(200,220,240,0.6); font-size: 0.85rem; }
.countdown { color: #ff8040; font-weight: 700; }

.featured-highlight {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px;
}
.featured-daily {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px;
}

.featured-card {
    background: var(--shop-card-bg);
    border: 1.5px solid var(--rc, rgba(0,200,255,0.2));
    border-radius: 14px; padding: 16px;
    display: flex; flex-direction: column; gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative; overflow: hidden;
}
.featured-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--rc, transparent), transparent 60%);
    opacity: 0.06; pointer-events: none;
}
.featured-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.4), 0 0 20px color-mix(in srgb, var(--rc, #00c8ff) 30%, transparent); }
.featured-card.owned { opacity: 0.65; }

.shop-fairness-note {
    border-color: rgba(0, 232, 255, 0.36);
    background:
        linear-gradient(135deg, rgba(0, 232, 255, 0.08), transparent 54%),
        rgba(8, 12, 24, 0.9);
}

.featured-highlight-card { padding: 20px; }
.featured-highlight-card .featured-emoji { font-size: 3.5rem; }

.featured-rarity-badge {
    display: inline-block; font-size: 0.7rem; font-weight: 700;
    padding: 2px 10px; border-radius: 20px;
    color: var(--rc); border: 1px solid var(--rc);
    background: color-mix(in srgb, var(--rc) 10%, transparent);
    text-transform: uppercase; letter-spacing: 1px;
    align-self: flex-start;
}

.featured-emoji { font-size: 2.5rem; text-align: center; }
.featured-name { font-size: 1rem; font-weight: 700; color: #e8f4ff; text-align: center; }
.featured-category { font-size: 0.75rem; color: rgba(180,200,220,0.5); text-align: center; }
.featured-desc { font-size: 0.78rem; color: rgba(180,200,220,0.65); text-align: center; line-height: 1.4; }

.featured-buy-btn {
    margin-top: auto;
    background: color-mix(in srgb, var(--rc) 20%, transparent);
    border: 1.5px solid var(--rc);
    color: var(--rc); font-weight: 700; font-size: 0.9rem;
    padding: 8px; border-radius: 8px; cursor: pointer;
    transition: all 0.2s; width: 100%;
}
.featured-buy-btn:hover {
    background: color-mix(in srgb, var(--rc) 35%, transparent);
    box-shadow: 0 0 15px color-mix(in srgb, var(--rc) 40%, transparent);
}

.featured-preview-btn {
    width: 100%;
    margin-top: auto;
    background: rgba(255,255,255,0.05);
    border: 1px solid color-mix(in srgb, var(--rc, #00c8ff) 55%, rgba(255,255,255,0.12));
    color: #e8f7ff;
    font-weight: 800;
    font-size: 0.78rem;
    padding: 7px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.featured-preview-btn:hover,
.featured-preview-btn.is-previewing {
    background: color-mix(in srgb, var(--rc, #00c8ff) 18%, transparent);
    color: #ffffff;
    box-shadow: 0 0 14px color-mix(in srgb, var(--rc, #00c8ff) 30%, transparent);
}

.featured-owned-badge {
    text-align: center; color: #00cc66; font-weight: 700;
    font-size: 0.85rem; padding: 8px;
    background: rgba(0,200,100,0.1); border-radius: 8px;
}

.pvp-economy-advisor {
    border: 1px solid rgba(255, 214, 96, 0.32);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(255, 214, 96, 0.08), transparent 48%),
        rgba(8, 12, 24, 0.86);
    padding: 14px 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.pvp-economy-advisor__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ffd660;
    font-weight: 800;
    margin-bottom: 10px;
}

.pvp-economy-advisor__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.pvp-economy-advisor__grid div {
    min-width: 0;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background: rgba(0,0,0,0.18);
    padding: 9px 10px;
}

.pvp-economy-advisor__grid span {
    display: block;
    font-size: 0.68rem;
    color: rgba(200,220,240,0.56);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 4px;
}

.pvp-economy-advisor__grid strong {
    display: block;
    color: #eaf7ff;
    font-size: 0.84rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

/* ===== BUNDLES ===== */
.bundles-section { display: flex; flex-direction: column; gap: 16px; }
.bundles-header h2 { font-size: 1.3rem; color: #ffe040; margin: 0 0 4px; }
.bundles-header p { color: rgba(180,200,220,0.6); font-size: 0.9rem; margin: 0; }

.bundles-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}

.bundle-card {
    background: var(--shop-card-bg);
    border: 1.5px solid var(--rc, rgba(0,200,255,0.2));
    border-radius: 14px; padding: 0;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex; flex-direction: column;
}
.bundle-card:hover { transform: translateY(-4px); box-shadow: 0 10px 35px rgba(0,0,0,0.5); }
.bundle-card.owned { opacity: 0.65; }

.bundle-rarity-bar { height: 4px; background: var(--rc); }

.bundle-head {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px 8px;
}
.bundle-icon { font-size: 2rem; }
.bundle-info { flex: 1; }
.bundle-name { font-size: 1rem; font-weight: 700; color: #e8f4ff; }
.bundle-rarity-label {
    font-size: 0.72rem; font-weight: 700; color: var(--rc);
    text-transform: uppercase; letter-spacing: 1px;
}
.bundle-discount {
    background: #ff6d00; color: #fff;
    font-weight: 900; font-size: 0.9rem;
    padding: 4px 10px; border-radius: 20px;
}

.bundle-desc { padding: 0 16px 10px; font-size: 0.8rem; color: rgba(180,200,220,0.6); line-height: 1.4; }

.bundle-items-preview {
    display: flex; gap: 6px; flex-wrap: wrap; padding: 0 16px 10px;
}
.bundle-item-preview { font-size: 1.4rem; }

.bundle-pricing {
    padding: 8px 16px;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.05);
}
.bundle-original { font-size: 0.78rem; color: rgba(180,200,220,0.4); }
.bundle-price { font-size: 1rem; color: #ffe040; }
.bundle-price strong { font-size: 1.2rem; }

.bundle-buy-btn {
    margin: 12px;
    background: color-mix(in srgb, var(--rc) 20%, transparent);
    border: 1.5px solid var(--rc); color: var(--rc);
    font-weight: 700; font-size: 0.9rem;
    padding: 10px; border-radius: 8px; cursor: pointer;
    transition: all 0.2s;
}
.bundle-buy-btn:hover { background: color-mix(in srgb, var(--rc) 35%, transparent); transform: none; }

.bundle-owned {
    text-align: center; color: #00cc66; font-weight: 700;
    padding: 12px; background: rgba(0,200,100,0.1);
    border-radius: 0 0 12px 12px;
}

/* ===== COSMETICS ===== */
.cosmetics-section { display: flex; flex-direction: column; gap: 14px; }

.cosmetics-cat-tabs {
    display: flex; gap: 6px; flex-wrap: wrap;
}
.cosm-cat-tab {
    background: rgba(0,200,255,0.06);
    border: 1px solid rgba(0,200,255,0.2);
    color: rgba(180,200,220,0.6); font-size: 0.82rem;
    padding: 6px 14px; border-radius: 20px; cursor: pointer;
    transition: all 0.2s;
}
.cosm-cat-tab:hover, .cosm-cat-tab.active {
    background: rgba(0,200,255,0.2);
    border-color: #00e8ff; color: #00e8ff;
}

.cosmetics-filter-bar {
    display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.filter-btn, .rarity-filter-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(180,200,220,0.55); font-size: 0.78rem;
    padding: 4px 12px; border-radius: 20px; cursor: pointer;
    transition: all 0.2s;
}
.filter-btn.active, .rarity-filter-btn.active,
.filter-btn:hover, .rarity-filter-btn:hover {
    background: rgba(0,200,255,0.15);
    border-color: rgba(0,200,255,0.5); color: #00e8ff;
}
.rarity-filters { display: flex; gap: 4px; margin-left: auto; }

.cosmetics-items-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px;
}

.cosmetic-shop-item {
    background: var(--shop-card-bg);
    border: 1.5px solid var(--rc, rgba(0,200,255,0.15));
    border-radius: 12px; overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}
.cosmetic-shop-item:hover { transform: translateY(-3px); box-shadow: 0 6px 25px rgba(0,0,0,0.4); }
.cosmetic-shop-item.owned { border-color: rgba(0,200,100,0.4); }
.cosmetic-shop-item.cant-afford { opacity: 0.6; }

.csitem-rarity-stripe { height: 3px; background: var(--rc); }
.csitem-rarity-label {
    font-size: 0.65rem; font-weight: 700; color: var(--rc);
    padding: 4px 8px; text-transform: uppercase; letter-spacing: 0.5px;
    background: color-mix(in srgb, var(--rc) 8%, transparent);
}
.csitem-emoji { font-size: 2.2rem; text-align: center; padding: 10px 8px 4px; }
.csitem-name { font-size: 0.82rem; font-weight: 700; color: #e8f4ff; text-align: center; padding: 0 8px 4px; }
.csitem-desc { font-size: 0.72rem; color: rgba(180,200,220,0.55); text-align: center; padding: 0 8px 6px; line-height: 1.3; flex: 1; }

.earn-badge {
    font-size: 0.65rem; font-weight: 600; text-align: center;
    background: rgba(0,180,60,0.15); color: #40cc80;
    padding: 2px 6px; border-radius: 20px; margin: 0 8px 6px;
    border: 1px solid rgba(0,200,80,0.25);
}

.csitem-footer {
    display: flex; flex-direction: column; gap: 4px;
    padding: 6px 8px 10px; margin-top: auto;
}
.csitem-owned { text-align: center; font-size: 0.72rem; color: #00cc66; font-weight: 600; }
.csitem-free { text-align: center; font-size: 0.8rem; color: #00cc66; font-weight: 700; }
.csitem-price { text-align: center; font-size: 0.82rem; font-weight: 700; }
.csitem-price.can-afford { color: #ffe040; }
.csitem-price.cant-afford-price { color: rgba(200,150,100,0.6); }

.csitem-buy-btn, .csitem-equip-btn, .csitem-preview-btn {
    width: 100%; padding: 6px;
    border-radius: 6px; font-size: 0.75rem; font-weight: 700;
    cursor: pointer; transition: all 0.2s;
}
.csitem-preview-btn {
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(210,235,255,0.22);
    color: #dcefff;
}
.csitem-preview-btn:hover,
.csitem-preview-btn.is-previewing {
    background: rgba(0,200,255,0.18);
    border-color: rgba(0,232,255,0.5);
    color: #ffffff;
}
.csitem-buy-btn {
    background: rgba(0,200,255,0.15); border: 1px solid rgba(0,200,255,0.4);
    color: #00e8ff;
}
.csitem-buy-btn:hover:not(.disabled) { background: rgba(0,200,255,0.3); }
.csitem-buy-btn.disabled { opacity: 0.4; cursor: not-allowed; }
.csitem-equip-btn {
    background: rgba(0,200,100,0.15); border: 1px solid rgba(0,200,100,0.4);
    color: #40cc80;
}
.csitem-equip-btn:hover { background: rgba(0,200,100,0.3); }

.no-items { text-align: center; color: rgba(180,200,220,0.4); padding: 40px; font-size: 0.9rem; }

/* ===== CHALLENGES ===== */
.challenges-section { display: flex; flex-direction: column; gap: 20px; }
.challenges-header h2 { font-size: 1.3rem; color: #ffe040; margin: 0 0 4px; }
.challenges-header p { color: rgba(180,200,220,0.6); font-size: 0.9rem; margin: 0; }

.challenges-group { display: flex; flex-direction: column; gap: 10px; }
.challenges-group-title {
    font-size: 1rem; font-weight: 700; color: #00e8ff;
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; border-bottom: 1px solid rgba(0,200,255,0.15);
}
.challenges-total-reward { color: #ffe040; font-size: 0.9rem; }

.challenges-list { display: flex; flex-direction: column; gap: 8px; }

.challenge-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px; padding: 12px 16px;
    transition: border-color 0.2s;
}
.challenge-card.completed { border-color: rgba(0,200,100,0.4); background: rgba(0,200,100,0.04); }
.challenge-card.expired { opacity: 0.45; }

.challenge-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.challenge-name { font-size: 0.9rem; font-weight: 700; color: #e8f4ff; }
.challenge-reward { font-size: 0.85rem; font-weight: 700; color: #ffe040; }
.challenge-desc { font-size: 0.78rem; color: rgba(180,200,220,0.6); margin-bottom: 8px; }

.challenge-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.challenge-progress-bar {
    flex: 1; height: 6px; background: rgba(255,255,255,0.1);
    border-radius: 3px; overflow: hidden;
}
.challenge-progress-fill {
    height: 100%; background: linear-gradient(90deg, #00c8ff, #00ffa0);
    border-radius: 3px; transition: width 0.4s;
}
.challenge-progress-fill.completed { background: linear-gradient(90deg, #00cc66, #00ff88); }
.challenge-progress-text { font-size: 0.72rem; color: rgba(180,200,220,0.5); white-space: nowrap; }

.challenge-status { font-size: 0.75rem; font-weight: 600; }
.challenge-status.completed { color: #00cc66; }
.challenge-status.expired { color: rgba(200,150,100,0.6); }
.challenge-status.active { color: rgba(180,200,220,0.55); }

/* ===== CREDITS ===== */
.credits-section { display: flex; flex-direction: column; gap: 20px; }
.credits-header h2 { font-size: 1.3rem; color: #ffe040; margin: 0 0 4px; }
.credits-header p { color: rgba(180,200,220,0.6); font-size: 0.9rem; margin: 0; }

.credits-fairness-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background:
        linear-gradient(135deg, rgba(0, 232, 255, 0.08), transparent 52%),
        rgba(8, 12, 24, 0.88);
    border: 1px solid rgba(0, 232, 255, 0.3);
    border-radius: 10px;
    padding: 12px 14px;
}
.credits-fairness-note strong {
    color: #7df7ff;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    flex: 0 0 auto;
}
.credits-fairness-note span {
    color: rgba(218, 238, 248, 0.74);
    font-size: 0.8rem;
    line-height: 1.45;
}

.current-credits-display {
    background: rgba(0,200,255,0.05);
    border: 1px solid rgba(0,200,255,0.2);
    border-radius: 12px; padding: 16px; text-align: center;
}
.credits-balance { display: flex; align-items: center; justify-content: center; gap: 10px; }
.credits-balance-icon { font-size: 2rem; }
.credits-balance-amount { font-size: 2.2rem; font-weight: 900; color: #ffe040; }
.credits-balance-label { font-size: 0.8rem; color: rgba(180,200,220,0.6); }

.credits-packages-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px;
}

.credit-package {
    background: var(--shop-card-bg);
    border: 1.5px solid rgba(0,200,255,0.18);
    border-radius: 14px; padding: 16px;
    text-align: center;
    display: flex; flex-direction: column; gap: 8px;
    position: relative; overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.credit-package.highlight {
    border-color: #ffd700;
    background: linear-gradient(160deg, #1a1500 0%, #111128 100%);
    box-shadow: 0 0 25px rgba(255,215,0,0.15);
}
.credit-package:hover { transform: translateY(-3px); }

.package-tag {
    position: absolute; top: 8px; right: 0;
    background: #ff6d00; color: #fff;
    font-size: 0.62rem; font-weight: 700;
    padding: 2px 8px 2px 6px;
    border-radius: 4px 0 0 4px;
    letter-spacing: 0.5px;
}
.credit-package.highlight .package-tag { background: #ffd700; color: #000; }

.package-icon { font-size: 2.2rem; }
.package-name { font-size: 0.85rem; font-weight: 700; color: #e8f4ff; }
.package-credits { display: flex; flex-direction: column; align-items: center; }
.package-main-credits { font-size: 1.6rem; font-weight: 900; color: #ffe040; }
.package-bonus-credits {
    font-size: 0.72rem; font-weight: 700; color: #40ff80;
    background: rgba(0,255,80,0.1); padding: 2px 8px; border-radius: 10px;
}
.package-total { font-size: 0.72rem; color: rgba(180,200,220,0.5); }

.package-buy-btn {
    background: rgba(0,200,255,0.15);
    border: 1.5px solid rgba(0,200,255,0.4);
    color: #00e8ff; font-weight: 700; font-size: 0.9rem;
    padding: 8px; border-radius: 8px; cursor: pointer;
    transition: all 0.2s;
}
.package-buy-btn.highlight {
    background: rgba(255,215,0,0.2);
    border-color: #ffd700; color: #ffd700;
}
.package-buy-btn:hover { transform: none; filter: brightness(1.2); }

.credits-earn-section h3 { font-size: 1rem; color: #00e8ff; margin: 0 0 12px; }
.earn-methods { display: flex; flex-direction: column; gap: 10px; }
.earn-method {
    display: flex; align-items: flex-start; gap: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px; padding: 12px 14px;
}
.earn-icon { font-size: 1.5rem; flex-shrink: 0; }
.earn-method strong { display: block; color: #e8f4ff; font-size: 0.88rem; margin-bottom: 2px; }
.earn-method p { margin: 0; font-size: 0.78rem; color: rgba(180,200,220,0.55); }

.credits-footer-note {
    background: rgba(255,200,0,0.05);
    border: 1px solid rgba(255,200,0,0.15);
    border-radius: 8px; padding: 10px 14px;
}
.credits-footer-note p { margin: 0; font-size: 0.76rem; color: rgba(220,200,100,0.65); }

/* ===== NOTIFICATIONS ===== */
.purchase-notif, .challenge-complete-notif, .credit-purchase-notif,
.shop-error-notif, .equip-notif {
    position: fixed; bottom: 24px; right: 24px;
    z-index: 99999;
    animation: notifSlideIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.purchase-notif, .challenge-complete-notif, .credit-purchase-notif,
.equip-notif {
    pointer-events: none;
}

.challenge-complete-notif--actionable {
    pointer-events: auto;
}

@keyframes notifSlideIn {
    from { transform: translateX(130%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.fade-out { animation: notifSlideOut 0.5s ease forwards; }
@keyframes notifSlideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(130%); opacity: 0; }
}

.purchase-notif-inner, .challenge-notif-inner, .credit-notif-inner,
.error-notif-inner, .equip-notif-inner {
    display: flex; align-items: center; gap: 14px;
    background: linear-gradient(135deg, #0d1a2a, #0a1220);
    border: 1.5px solid rgba(0,200,255,0.4);
    border-radius: 14px; padding: 14px 18px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    min-width: 250px;
}

.purchase-notif-inner, .challenge-notif-inner, .credit-notif-inner,
.equip-notif-inner {
    pointer-events: none;
}

.challenge-complete-notif--actionable .challenge-notif-inner {
    pointer-events: auto;
}

.challenge-notif-inner--stacked {
    align-items: stretch;
    min-width: min(340px, calc(100vw - 32px));
}

.purchase-notif-inner.rarity-rare { border-color: var(--rarity-rare); }
.purchase-notif-inner.rarity-epic { border-color: var(--rarity-epic); }
.purchase-notif-inner.rarity-legendary { border-color: var(--rarity-legendary); box-shadow: 0 8px 30px rgba(255,109,0,0.3); }

.purchase-icon, .challenge-notif-icon, .credit-notif-icon, .error-icon, .equip-icon { font-size: 2rem; }
.purchase-title, .challenge-notif-title, .credit-notif-title {
    font-size: 0.7rem; font-weight: 700; color: rgba(180,200,220,0.6);
    text-transform: uppercase; letter-spacing: 1px;
}
.purchase-name, .challenge-notif-name, .credit-notif-amount { font-size: 1rem; font-weight: 700; color: #e8f4ff; }
.challenge-notif-reward, .credit-notif-bonus { font-size: 0.85rem; color: #ffe040; font-weight: 700; }
.purchase-sub { font-size: 0.78rem; color: rgba(180,200,220,0.55); }

.challenge-notif-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 2px;
}

.challenge-notif-actions button {
    min-height: 44px;
    border-radius: 8px;
    border: 1px solid rgba(255, 224, 64, 0.36);
    background: rgba(255, 224, 64, 0.12);
    color: #fff4b0;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.challenge-notif-actions button:last-child {
    border-color: rgba(255, 99, 120, 0.42);
    background: linear-gradient(135deg, rgba(255, 240, 242, 0.9), rgba(255, 99, 120, 0.84));
    color: #21080c;
}

.error-notif-inner { border-color: rgba(255,80,80,0.5); }
.error-notif-inner strong { display: block; color: #ff8080; margin-bottom: 4px; }
.error-notif-inner p { margin: 0 0 8px; font-size: 0.8rem; color: rgba(180,200,220,0.6); }
.shop-status-notif .error-notif-inner { border-color: rgba(0,220,255,0.55); }
.shop-status-notif .error-icon,
.shop-status-notif .error-notif-inner strong { color: #7df7ff; }
.shop-status-notif .error-notif-inner p { margin-bottom: 0; color: rgba(210,245,255,0.8); }
.goto-credits-btn {
    background: rgba(0,200,255,0.2); border: 1px solid rgba(0,200,255,0.4);
    color: #00e8ff; font-size: 0.78rem; font-weight: 700;
    padding: 4px 12px; border-radius: 6px; cursor: pointer;
}

.equip-notif-inner { border-color: rgba(0,200,100,0.4); }
.equip-text strong { color: #40cc80; display: block; font-size: 0.78rem; }
.equip-text div { color: #e8f4ff; font-size: 0.9rem; font-weight: 600; }

.pvp-contract-buy-btn {
    min-height: 30px;
}

@media (pointer: coarse) {
    .buy-credits-btn,
    .featured-buy-btn,
    .bundle-buy-btn,
    .filter-btn,
    .rarity-filter-btn,
    .cosm-cat-tab,
    .csitem-buy-btn,
    .csitem-equip-btn,
    .csitem-preview-btn,
    .featured-preview-btn,
    .package-buy-btn,
    .pvp-contract-buy-btn,
    .goto-credits-btn {
        min-height: 38px;
    }

    .shop-tab {
        min-height: 40px;
    }

    .shop-close-btn {
        width: 40px;
        height: 40px;
    }
}

/* ===== SHOP BUTTON IN-GAME ===== */
.shop-btn-game {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: linear-gradient(135deg, rgba(0,50,100,0.85), rgba(0,20,60,0.9));
    border: 1.5px solid rgba(0,200,255,0.5);
    color: #00e8ff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    z-index: 500;
    transition: all 0.25s;
    box-shadow: 0 0 15px rgba(0,100,255,0.3);
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}
.shop-btn-game:hover {
    background: linear-gradient(135deg, rgba(0,100,200,0.9), rgba(0,40,120,0.95));
    box-shadow: 0 0 25px rgba(0,150,255,0.5);
    transform: translateY(-2px) scale(1.05);
}
.shop-btn-game:active { transform: scale(0.97); }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .shop-overlay {
        padding: max(7px, env(safe-area-inset-top, 0px)) max(7px, env(safe-area-inset-right, 0px)) max(7px, env(safe-area-inset-bottom, 0px)) max(7px, env(safe-area-inset-left, 0px));
    }

    .shop-container {
        width: min(100%, calc(var(--goregrid-vvw, 100vw) - 14px));
        max-height: calc(var(--goregrid-vvh, 100dvh) - 14px);
        border-radius: 12px;
    }

    .shop-header {
        position: relative;
        flex-wrap: wrap;
        gap: 8px;
        padding: 11px 12px;
    }

    .shop-title {
        flex: 1 1 100%;
        justify-content: center;
        font-size: 1rem;
        letter-spacing: 0.12em;
    }

    .shop-currency-display {
        flex: 1 1 auto;
        min-width: 0;
        gap: 7px;
    }

    .currency-amount {
        min-width: 0;
        padding: 6px 10px;
        font-size: 0.92rem;
    }

    .buy-credits-btn {
        padding: 7px 11px;
        font-size: 0.76rem;
        white-space: nowrap;
    }

    .shop-close-btn {
        width: 40px;
        height: 40px;
    }

    .shop-content { padding: 14px; }
    .pvp-economy-advisor__grid { grid-template-columns: 1fr; }
    .credits-fairness-note {
        flex-direction: column;
        gap: 5px;
    }
    .featured-highlight, .featured-daily,
    .bundles-grid, .cosmetics-items-grid, .credits-packages-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    .cosmetics-cat-tabs { gap: 4px; }
    .cosm-cat-tab { font-size: 0.75rem; padding: 5px 10px; }
}

@media (pointer: coarse) and (max-height: 420px) {
    .shop-overlay {
        align-items: stretch;
        padding: max(4px, env(safe-area-inset-top, 0px)) max(6px, env(safe-area-inset-right, 0px)) max(4px, env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px));
    }

    .shop-container {
        max-height: calc(var(--goregrid-vvh, 100dvh) - 8px);
        border-radius: 10px;
    }

    .shop-header {
        padding: 7px 9px;
        gap: 6px;
    }

    .shop-title {
        display: none;
    }

    .shop-tabs {
        padding: 6px 8px 0;
    }

    .shop-tab {
        padding: 7px 10px 8px;
        font-size: 0.72rem;
    }

    .shop-content {
        padding: 10px;
    }

    .featured-header h2,
    .credits-header h2 {
        font-size: 1rem;
        margin: 0 0 6px;
    }
}
