/* ==================== PRIME ROYALE v6.3 - SHOP STYLES ==================== */

/* --- SHOP SCREEN (CYBER THEME) --- */
.shop-screen {
    background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #0f172a 60%, #020617 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.shop-screen::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(500px) rotateX(60deg);
    animation: cyberGridMove 20s linear infinite;
    pointer-events: none;
    opacity: 0.4;
    z-index: 0;
}

@keyframes cyberGridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(60px); }
}

/* --- SHOP HEADER --- */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
    position: relative;
    z-index: 10;
}

.shop-header h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    color: #a5b4fc;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.shop-back-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.shop-back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-2px);
}

.shop-prime-display {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(217, 119, 6, 0.2));
    border: 2px solid #fbbf24;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 800;
    color: #fbbf24;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

/* --- SHOP TABS --- */
.shop-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 25px;
    position: relative;
    z-index: 2;
}

.shop-tab {
    padding: 14px 32px;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #94a3b8;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shop-tab:hover {
    border-color: rgba(99, 102, 241, 0.5);
    color: #c7d2fe;
}

.shop-tab.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
    border-color: #6366f1;
    color: #e0e7ff;
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.4), inset 0 0 20px rgba(99, 102, 241, 0.1);
}

/* --- PITY SYSTEM BANNER --- */
.pity-banner {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.15), rgba(239, 68, 68, 0.15), rgba(168, 85, 247, 0.15));
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 16px;
    padding: 16px 24px;
    margin: 0 auto 30px auto;
    max-width: 700px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.pity-icon {
    font-size: 32px;
    animation: pityGlow 2s ease-in-out infinite;
}

@keyframes pityGlow {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.5)); }
    50% { filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.8)); }
}

.pity-text {
    font-size: 14px;
    color: #fbbf24;
    font-weight: 600;
    flex: 1;
}

.pity-count {
    color: white;
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pity-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.pity-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #ef4444);
    box-shadow: 0 0 10px #fbbf24;
    transition: width 0.5s ease;
}

/* --- DAILY REWARD BUTTON --- */
.daily-claim-btn {
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.daily-claim-btn.ready {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.6);
    animation: dailyPulse 2s infinite;
}

.daily-claim-btn.ready:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.8);
}

.daily-claim-btn.cooldown {
    background: rgba(255, 255, 255, 0.1);
    color: #6b7280;
    cursor: not-allowed;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes dailyPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* --- SHOP CONTENT --- */
.shop-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 40px 40px;
    position: relative;
    z-index: 2;
}

/* --- SHOP GRID --- */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- SHOP ITEM CARD --- */
.shop-item {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.shop-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.shop-item:hover::before {
    left: 100%;
}

.shop-item:hover:not(.disabled) {
    transform: translateY(-10px);
    border-color: #6366f1;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(99, 102, 241, 0.3),
        inset 0 0 30px rgba(99, 102, 241, 0.05);
}

.shop-item.disabled {
    opacity: 0.4;
    filter: grayscale(0.8);
    cursor: not-allowed;
}

.shop-item.featured {
    border-color: #fbbf24;
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.2);
}

.shop-item.featured::after {
    content: '⭐ BEST VALUE';
    position: absolute;
    top: 15px;
    right: -30px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 5px 35px;
    transform: rotate(45deg);
}

.shop-item-icon {
    font-size: 64px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
    transition: transform 0.3s;
}

.shop-item:hover .shop-item-icon {
    transform: scale(1.1) rotate(-5deg);
}

.shop-item-name {
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shop-item-desc {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 15px;
    min-height: 40px;
    line-height: 1.4;
}

.shop-item-rates {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.rate-badge {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
}

.rate-badge.legendary { background: rgba(168, 85, 247, 0.3); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.5); }
.rate-badge.gold { background: rgba(251, 191, 36, 0.3); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.5); }
.rate-badge.silver { background: rgba(156, 163, 175, 0.3); color: #d1d5db; border: 1px solid rgba(156, 163, 175, 0.5); }
.rate-badge.bronze { background: rgba(217, 119, 6, 0.3); color: #fbbf24; border: 1px solid rgba(217, 119, 6, 0.5); }

.shop-item-price {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.8));
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    transition: all 0.3s;
}

.shop-item:hover .shop-item-price {
    border-color: #fbbf24;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.2);
}

.price-val {
    color: #fbbf24;
    font-weight: 900;
    font-size: 20px;
}

.price-curr {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

/* --- PACK OPENING MODAL --- */
.pack-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: modalFadeIn 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pack-modal-content {
    background: linear-gradient(135deg, #1e1b4b, #312e81, #1e1b4b);
    padding: 40px 50px;
    border-radius: 30px;
    border: 3px solid #fbbf24;
    text-align: center;
    box-shadow: 
        0 0 60px rgba(251, 191, 36, 0.4),
        0 0 100px rgba(99, 102, 241, 0.2),
        inset 0 0 60px rgba(99, 102, 241, 0.1);
    max-width: 800px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalSlideUp 0.4s ease;
    margin: auto;
}

@keyframes modalSlideUp {
    from { transform: translateY(30px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.pack-modal-title {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    color: #fbbf24;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.pack-modal-subtitle {
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 20px;
}

/* --- REWARD CARDS --- */
.pack-rewards-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    perspective: 1000px;
}

.reward-card {
    width: 120px;
    height: 160px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid #334155;
    animation: cardReveal 0.6s ease-out backwards;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.reward-card:hover {
    transform: translateY(-10px) rotateY(5deg);
}

.reward-card:nth-child(1) { animation-delay: 0.1s; }
.reward-card:nth-child(2) { animation-delay: 0.25s; }
.reward-card:nth-child(3) { animation-delay: 0.4s; }
.reward-card:nth-child(4) { animation-delay: 0.55s; }
.reward-card:nth-child(5) { animation-delay: 0.7s; }

@keyframes cardReveal {
    from { transform: translateY(50px) rotateY(180deg) scale(0.5); opacity: 0; }
    to { transform: translateY(0) rotateY(0) scale(1); opacity: 1; }
}

.reward-card.rarity-LEGENDARY {
    border-color: #a855f7;
    box-shadow: 
        0 0 30px rgba(168, 85, 247, 0.6),
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 0 30px rgba(168, 85, 247, 0.2);
    animation: cardReveal 0.6s ease-out backwards, legendaryGlow 2s ease-in-out infinite;
}

@keyframes legendaryGlow {
    0%, 100% { box-shadow: 0 0 30px rgba(168, 85, 247, 0.6), 0 10px 30px rgba(0, 0, 0, 0.5); }
    50% { box-shadow: 0 0 50px rgba(168, 85, 247, 0.8), 0 10px 30px rgba(0, 0, 0, 0.5); }
}

.reward-card.rarity-GOLD {
    border-color: #fbbf24;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.5), 0 10px 30px rgba(0, 0, 0, 0.5);
}

.reward-card.rarity-SILVER {
    border-color: #9ca3af;
    box-shadow: 0 0 15px rgba(156, 163, 175, 0.4), 0 10px 30px rgba(0, 0, 0, 0.5);
}

.reward-card.rarity-BRONZE {
    border-color: #d97706;
}

.reward-card-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.reward-card-name {
    font-size: 14px;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reward-card-rarity {
    font-size: 10px;
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
}

.reward-card.rarity-LEGENDARY .reward-card-rarity { background: rgba(168, 85, 247, 0.3); color: #c084fc; }
.reward-card.rarity-GOLD .reward-card-rarity { background: rgba(251, 191, 36, 0.3); color: #fbbf24; }
.reward-card.rarity-SILVER .reward-card-rarity { background: rgba(156, 163, 175, 0.3); color: #d1d5db; }
.reward-card.rarity-BRONZE .reward-card-rarity { background: rgba(217, 119, 6, 0.3); color: #fbbf24; }

.reward-card-new {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #22c55e;
    color: white;
    font-size: 8px;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 4px;
}

.reward-card-dupe {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #6366f1;
    color: white;
    font-size: 8px;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 4px;
}

/* --- MODAL BUTTONS --- */
.pack-modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.pack-close-btn {
    padding: 15px 50px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pack-close-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
}

.pack-another-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.pack-another-btn:hover {
    transform: scale(1.05);
}

.pack-another-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- SHOP TOAST --- */
.shop-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    color: white;
    padding: 18px 40px;
    border-radius: 30px;
    border: 2px solid #6366f1;
    font-weight: 700;
    z-index: 3000;
    animation: toastSlideUp 0.3s ease-out;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.3);
    backdrop-filter: blur(10px);
}

@keyframes toastSlideUp {
    from { transform: translate(-50%, 30px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

/* --- CATALYST ITEMS --- */
.shop-item.catalyst .shop-item-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    padding: 20px;
    border-radius: 50%;
    border: 2px solid rgba(99, 102, 241, 0.3);
}

/* --- COSMETIC ITEMS --- */
.shop-item.cosmetic {
    border-style: dashed;
}

.shop-item.cosmetic.owned {
    border-color: #22c55e;
    opacity: 0.7;
}

.shop-item.cosmetic.owned::after {
    content: '✓ OWNED';
    position: absolute;
    top: 15px;
    right: 15px;
    background: #22c55e;
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
}

/* --- DUPLICATE REWARD DISPLAY --- */
.dupe-reward {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    padding: 12px 20px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
}

.dupe-reward-text {
    color: #fbbf24;
    font-weight: 700;
}

.dupe-reward-amount {
    color: white;
    font-weight: 900;
    font-size: 18px;
}

/* --- FLIP CARD ANIMATION --- */
.reward-card-wrapper {
    width: 120px;
    height: 160px;
    perspective: 1000px;
    cursor: pointer;
}

.reward-card-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.reward-card-wrapper.flipped .reward-card-flipper {
    transform: rotateY(180deg);
}

.reward-card-back,
.reward-card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.reward-card-back {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 3px solid #6366f1;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8), 0 0 20px rgba(99, 102, 241, 0.3);
    z-index: 10;
}

.reward-card-back::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 2px dashed rgba(99, 102, 241, 0.4);
    border-radius: 10px;
}

.reward-card-back-icon {
    font-size: 36px;
    margin-bottom: 8px;
    animation: cardBackPulse 2s ease-in-out infinite;
}

@keyframes cardBackPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

.reward-card-back-text {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.reward-card-front {
    transform: rotateY(180deg);
    z-index: 1;
}

.reward-card-wrapper:not(.flipped) .reward-card-front {
    opacity: 0;
    visibility: hidden;
}

.reward-card-wrapper.flipped .reward-card-front {
    opacity: 1;
    visibility: visible;
}

/* Legendary Glow Effect */
.reward-card-wrapper.legendary-reveal .reward-card-flipper {
    animation: legendaryShake 0.5s ease-in-out;
}

.reward-card-wrapper.legendary-reveal .reward-card-front {
    animation: legendaryGlow 1.5s ease-in-out infinite;
}

@keyframes legendaryShake {
    0%, 100% { transform: rotateY(180deg) translateX(0); }
    25% { transform: rotateY(180deg) translateX(-8px) rotate(-2deg); }
    75% { transform: rotateY(180deg) translateX(8px) rotate(2deg); }
}

@keyframes legendaryGlow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.6), 0 10px 30px rgba(0, 0, 0, 0.5);
        filter: brightness(1);
    }
    50% { 
        box-shadow: 0 0 40px rgba(168, 85, 247, 1), 0 0 60px rgba(168, 85, 247, 0.5), 0 10px 30px rgba(0, 0, 0, 0.5);
        filter: brightness(1.2);
    }
}

/* Gold Glow */
.reward-card-wrapper.gold-reveal .reward-card-front {
    animation: goldGlow 1.5s ease-in-out infinite;
}

@keyframes goldGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(251, 191, 36, 0.5), 0 10px 30px rgba(0, 0, 0, 0.5); }
    50% { box-shadow: 0 0 30px rgba(251, 191, 36, 0.8), 0 10px 30px rgba(0, 0, 0, 0.5); }
}

/* Reveal All Button */
.reveal-all-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: 2px solid #fbbf24;
    border-radius: 12px;
    color: white;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.reveal-all-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.7);
}

/* --- PITY BADGE (Item Card İçinde) --- */
.pity-badge {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.15), rgba(239, 68, 68, 0.15), rgba(168, 85, 247, 0.15));
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.pity-badge-icon {
    font-size: 16px;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.8));
    animation: pityIconPulse 2s ease-in-out infinite;
}

@keyframes pityIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.pity-badge-text {
    font-size: 10px;
    color: #fbbf24;
    font-weight: 700;
    flex: 1;
    line-height: 1.3;
}

.pity-badge-count {
    font-size: 14px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pity-badge-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.pity-badge-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #ef4444);
    box-shadow: 0 0 8px #fbbf24;
    transition: width 0.5s ease;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .shop-header {
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .shop-header h1 {
        font-size: 24px;
        order: 1;
        width: 100%;
        text-align: center;
    }
    
    .shop-tabs {
        flex-wrap: wrap;
    }
    
    .shop-tab {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .shop-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .pack-modal-content {
        padding: 25px 15px;
    }
    
    .reward-card-wrapper {
        width: 90px;
        height: 120px;
    }
    
    .reward-card-back-icon {
        font-size: 28px;
    }
    
    .reward-card-back-text {
        font-size: 9px;
    }
}

/* ==================== ACHIEVEMENT UNLOCK ANIMATION ==================== */
@keyframes achievementUnlock {
    0% {
        transform: scale(0.8) rotate(-5deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(2deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.achievement-new {
    animation: achievementUnlock 0.5s ease-out forwards;
}

/* Achievement Toast */
.achievement-toast {
    position: fixed;
    top: 100px;
    right: 30px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.9), rgba(124, 58, 237, 0.9));
    border: 2px solid #c084fc;
    border-radius: 16px;
    padding: 20px 30px;
    color: white;
    z-index: 3000;
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.5);
    animation: achievementToastSlide 0.5s ease-out;
    backdrop-filter: blur(10px);
}

@keyframes achievementToastSlide {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.achievement-toast-icon {
    font-size: 32px;
    margin-right: 15px;
}

.achievement-toast-content {
    display: flex;
    flex-direction: column;
}

.achievement-toast-title {
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 4px;
}

.achievement-toast-desc {
    font-size: 12px;
    opacity: 0.8;
}

.achievement-toast-reward {
    margin-top: 8px;
    font-size: 14px;
    color: #fbbf24;
    font-weight: 700;
}

/* ==================== TACTICAL UI ADDITIONS v7.2 ==================== */

:root {
    --tactical-bg-dark: #050814;
    --tactical-accent-blue: #00aaff;
    --tactical-accent-gold: #E5B80B;
    --tactical-gold-gradient: linear-gradient(to bottom, #f7e379, #E5B80B, #b48811);
}

/* --- TACTICAL SHOP SCREEN --- */
.shop-screen-tactical {
    background: var(--tactical-bg-dark) !important;
    position: relative;
}

/* --- NETWORK BACKGROUND --- */
.shop-network-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cdefs%3E%3CradialGradient id='grad1' cx='50%25' cy='50%25' r='50%25'%3E%3Cstop offset='0%25' style='stop-color:%2300aaff;stop-opacity:0.15' /%3E%3Cstop offset='100%25' style='stop-opacity:0' /%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23grad1)'/%3E%3Cg stroke='%2300aaff' stroke-width='0.5' fill='none' opacity='0.1'%3E%3Cpath d='M100 0 L100 200 M0 100 L200 100'/%3E%3Ccircle cx='100' cy='100' r='50'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 300px 300px;
    z-index: 0;
    animation: tactical-bg-pan 30s linear infinite;
    pointer-events: none;
}

@keyframes tactical-bg-pan {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* --- SCANLINES --- */
.shop-scanlines {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0.3) 0px, rgba(0,0,0,0.3) 1px, transparent 1px, transparent 4px);
    pointer-events: none;
    z-index: 5;
    opacity: 0.5;
}

/* --- TACTICAL HEADER --- */
.shop-header-tactical {
    background: #010101 !important;
    border-bottom: 4px solid var(--tactical-accent-gold) !important;
    position: relative;
    z-index: 10;
}

.shop-title-tactical {
    font-family: 'Audiowide', sans-serif !important;
    background: var(--tactical-gold-gradient) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: none !important;
}

.shop-back-btn-tactical {
    background: transparent !important;
    color: var(--tactical-accent-blue) !important;
    border: 2px solid var(--tactical-accent-blue) !important;
    font-family: 'Audiowide', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
}

.shop-back-btn-tactical:hover {
    background: rgba(0, 170, 255, 0.2) !important;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.5) !important;
    transform: none !important;
}

/* --- TACTICAL TABS --- */
.shop-screen-tactical .shop-tabs {
    background: rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.shop-screen-tactical .shop-tab {
    font-family: 'Audiowide', sans-serif;
    border: 1px solid rgba(100, 130, 180, 0.3);
    background: transparent;
}

.shop-screen-tactical .shop-tab.active {
    background: linear-gradient(180deg, rgba(0, 170, 255, 0.3) 0%, rgba(0, 100, 180, 0.4) 100%);
    border-color: var(--tactical-accent-blue);
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* --- TACTICAL CONTENT --- */
.shop-screen-tactical .shop-content {
    position: relative;
    z-index: 2;
}

/* --- TACTICAL SHOP ITEMS --- */
.shop-screen-tactical .shop-item {
    background: rgba(10, 20, 40, 0.7) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 170, 255, 0.3) !important;
    clip-path: polygon(20px 0%, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0% 20px);
}

.shop-screen-tactical .shop-item:hover:not(.disabled) {
    border-color: var(--tactical-accent-blue) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 170, 255, 0.3) !important;
}

.shop-screen-tactical .shop-item-name {
    font-family: 'Audiowide', sans-serif;
}

.shop-screen-tactical .shop-item-price {
    background: linear-gradient(135deg, #00aaff, #0066cc) !important;
    border-color: var(--tactical-accent-blue) !important;
    clip-path: polygon(5% 0%, 100% 0, 95% 100%, 0 100%);
}

.shop-screen-tactical .price-val {
    color: white !important;
}

.shop-screen-tactical .price-curr {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* --- TACTICAL DAILY BUTTON --- */
.shop-screen-tactical .daily-claim-btn {
    font-family: 'Audiowide', sans-serif;
}

.shop-screen-tactical .daily-claim-btn.ready {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.6), 0 0 40px rgba(34, 197, 94, 0.3);
}

/* --- TACTICAL PRIME DISPLAY --- */
.shop-screen-tactical .shop-prime-display {
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
}

/* --- TACTICAL MODAL --- */
.shop-screen-tactical .pack-modal-content {
    background: linear-gradient(135deg, rgba(15, 25, 50, 0.98), rgba(5, 15, 35, 0.98)) !important;
    border: 2px solid var(--tactical-accent-blue) !important;
    box-shadow: 0 0 50px rgba(0, 170, 255, 0.3) !important;
}

.shop-screen-tactical .pack-modal-title {
    font-family: 'Audiowide', sans-serif !important;
    background: var(--tactical-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none !important;
}

.shop-screen-tactical .pack-close-btn {
    background: linear-gradient(135deg, #00aaff, #0066cc) !important;
    font-family: 'Audiowide', sans-serif;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.5);
}

.shop-screen-tactical .pack-close-btn:hover {
    box-shadow: 0 0 25px rgba(0, 170, 255, 0.8);
}

.shop-screen-tactical .pack-another-btn {
    font-family: 'Audiowide', sans-serif;
    border: 2px solid var(--tactical-accent-gold);
    color: var(--tactical-accent-gold);
}

/* --- TACTICAL TOAST --- */
.shop-screen-tactical .shop-toast {
    background: rgba(0, 170, 255, 0.95) !important;
    font-family: 'Audiowide', sans-serif;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* --- TACTICAL PITY BADGE --- */
.shop-screen-tactical .pity-badge {
    border: 1px solid rgba(0, 170, 255, 0.4);
}

/* --- TACTICAL REWARD CARDS --- */
.shop-screen-tactical .reward-card-back {
    border-color: var(--tactical-accent-blue) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 170, 255, 0.3) !important;
}

.shop-screen-tactical .reward-card-back::before {
    border-color: rgba(0, 170, 255, 0.4) !important;
}

/* --- TACTICAL REVEAL BUTTON --- */
.shop-screen-tactical .reveal-all-btn {
    font-family: 'Audiowide', sans-serif;
}

/* --- Z-INDEX FIX --- */
.shop-screen-tactical .shop-header,
.shop-screen-tactical .shop-tabs,
.shop-screen-tactical .shop-content,
.shop-screen-tactical .pack-modal-overlay {
    position: relative;
    z-index: 2;
}

.shop-screen-tactical .pack-modal-overlay {
    z-index: 99999 !important;
}
