/* Mystical Emporium Shop - Ultra Premium Design */

/* =================================================================
   SHOP SCREEN BASE SETUP
   ================================================================= */

/* Shop Screen Foundation */
#screen-shop:not(.active) {
    transition: none !important;
    animation: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

#screen-shop {
    transition: opacity 0.3s ease-in !important;
}

#screen-shop.active {
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.3s ease-in !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    z-index: 20 !important;
    background: 
        radial-gradient(ellipse at 25% 75%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 25%, rgba(75, 0, 130, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(25, 25, 112, 0.06) 0%, transparent 70%),
        linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #0a0a0f 100%) !important;
    overflow-y: auto;
    overflow-x: hidden;
}

/* =================================================================
   MYSTICAL PARTICLES & ATMOSPHERE
   ================================================================= */

#screen-shop.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(2px 2px at 20px 30px, rgba(138, 43, 226, 0.3), transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(75, 0, 130, 0.2), transparent),
        radial-gradient(3px 3px at 90px 40px, rgba(147, 112, 219, 0.15), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(186, 85, 211, 0.25), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(123, 104, 238, 0.2), transparent),
        radial-gradient(1px 1px at 200px 60px, rgba(72, 61, 139, 0.15), transparent);
    background-repeat: repeat;
    background-size: 300px 200px;
    animation: mysticalParticles 180s linear infinite;
    pointer-events: none;
    opacity: 0.4;
    z-index: 1;
}

@keyframes mysticalParticles {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-10px, -20px); }
    50% { transform: translate(20px, -10px); }
    75% { transform: translate(-5px, 15px); }
    100% { transform: translate(0, 0); }
}

/* =================================================================
   SHOP CONTAINER
   ================================================================= */

.shop-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 2;
    padding: 0;
}

/* =================================================================
   SHOP HEADER - MYSTICAL EMPORIUM
   ================================================================= */

.shop-header {
    background: 
        linear-gradient(145deg, rgba(138, 43, 226, 0.15) 0%, rgba(75, 0, 130, 0.1) 50%, rgba(25, 25, 112, 0.08) 100%);
    border-bottom: 2px solid rgba(138, 43, 226, 0.3);
    backdrop-filter: blur(20px);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.shop-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(138, 43, 226, 0.1) 0%, transparent 70%),
        radial-gradient(circle at 70% 70%, rgba(75, 0, 130, 0.08) 0%, transparent 70%);
    animation: headerAura 15s ease-in-out infinite;
    z-index: -1;
}

@keyframes headerAura {
    0%, 100% { transform: rotate(0deg) scale(1); }
    33% { transform: rotate(120deg) scale(1.1); }
    66% { transform: rotate(240deg) scale(0.9); }
}

.shop-title-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.shop-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #e6e6fa 0%, #dda0dd 30%, #ba55d3 60%, #9932cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { filter: drop-shadow(0 0 5px rgba(138, 43, 226, 0.5)); }
    100% { filter: drop-shadow(0 0 15px rgba(138, 43, 226, 0.8)); }
}

.shop-subtitle {
    font-size: 1.2rem;
    color: #c8c8dc;
    margin: 0;
    font-style: italic;
    opacity: 0.9;
}

/* Player Currency Display */
.player-currency {
    display: flex;
    gap: 1.5rem;
}

.currency-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: 
        linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 25px;
    padding: 0.75rem 1.25rem;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.currency-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.6));
}

.currency-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    min-width: 3rem;
    text-align: right;
}

.currency-label {
    font-size: 0.9rem;
    color: #e6e6fa;
    font-weight: 500;
}

/* =================================================================
   SHOPKEEPER CHARACTER
   ================================================================= */

.shopkeeper-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.shopkeeper-character {
    position: relative;
    margin-bottom: 1rem;
}

.shopkeeper-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid rgba(138, 43, 226, 0.6);
    box-shadow: 
        0 0 30px rgba(138, 43, 226, 0.4),
        0 0 60px rgba(75, 0, 130, 0.2);
    animation: shopkeeperFloat 4s ease-in-out infinite;
}

@keyframes shopkeeperFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.shopkeeper-aura {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: 
        radial-gradient(circle, rgba(138, 43, 226, 0.2) 0%, transparent 70%);
    animation: auraRotate 8s linear infinite;
}

@keyframes auraRotate {
    0% { transform: rotate(0deg) scale(0.8); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(0.8); }
}

.shopkeeper-dialogue {
    max-width: 300px;
    position: relative;
}

.dialogue-bubble {
    background: 
        linear-gradient(145deg, rgba(0, 0, 0, 0.8) 0%, rgba(25, 25, 112, 0.6) 100%);
    border: 2px solid rgba(138, 43, 226, 0.4);
    border-radius: 20px;
    padding: 1rem 1.5rem;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dialogue-bubble::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid rgba(138, 43, 226, 0.4);
}

.dialogue-bubble p {
    margin: 0;
    color: #e6e6fa;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: center;
}

/* =================================================================
   SHOP NAVIGATION
   ================================================================= */

.shop-navigation {
    display: flex;
    justify-content: center;
    gap: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(138, 43, 226, 0.2);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.shop-nav-btn {
    background: transparent;
    border: none;
    color: #c8c8dc;
    padding: 1rem 2rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-bottom: 3px solid transparent;
    min-width: 120px;
}

.shop-nav-btn:hover {
    background: rgba(138, 43, 226, 0.15);
    color: #e6e6fa;
    transform: translateY(-2px);
}

.shop-nav-btn.active {
    background: rgba(138, 43, 226, 0.2);
    color: #e6e6fa;
    border-bottom-color: #8a2be2;
    box-shadow: 
        0 -2px 0 rgba(138, 43, 226, 0.5) inset,
        0 4px 15px rgba(138, 43, 226, 0.2);
}

.nav-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 5px rgba(138, 43, 226, 0.3));
}

.nav-text {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =================================================================
   SHOP CONTENT SECTIONS
   ================================================================= */

.shop-content {
    flex: 1;
    position: relative;
}

.shop-section {
    display: none;
    padding: 2rem;
}

.shop-section.active {
    display: block;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, #e6e6fa 0%, #dda0dd 50%, #ba55d3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 1rem 0;
    text-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
}

.section-header p {
    font-size: 1.1rem;
    color: #c8c8dc;
    margin: 0;
    opacity: 0.9;
}

/* =================================================================
   SHOP GRID - PACK ITEMS
   ================================================================= */

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Shop Item Base */
.shop-item {
    background: 
        linear-gradient(145deg, 
            rgba(255, 255, 255, 0.05) 0%, 
            rgba(255, 255, 255, 0.02) 50%, 
            rgba(0, 0, 0, 0.1) 100%);
    border: 2px solid rgba(138, 43, 226, 0.2);
    border-radius: 20px;
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    box-shadow: 
        0 10px 35px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.shop-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(138, 43, 226, 0.6);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(138, 43, 226, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Item Image Container */
.item-image-container {
    position: relative;
    height: 200px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    background: 
        linear-gradient(135deg, rgba(138, 43, 226, 0.1) 0%, rgba(75, 0, 130, 0.05) 100%);
}

.item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.shop-item:hover .item-image {
    transform: scale(1.1);
}

/* Glow Effects */
.item-glow-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px 20px 0 0;
}

.starter-glow {
    background: radial-gradient(circle at center, rgba(144, 238, 144, 0.3) 0%, transparent 70%);
}

.rare-glow {
    background: radial-gradient(circle at center, rgba(65, 105, 225, 0.4) 0%, transparent 70%);
}

.legendary-glow {
    background: radial-gradient(circle at center, rgba(255, 165, 0, 0.5) 0%, transparent 70%);
}

.theme-glow {
    background: radial-gradient(circle at center, rgba(186, 85, 211, 0.4) 0%, transparent 70%);
}

.shop-item:hover .item-glow-effect {
    opacity: 1;
}

/* Pack Rarity Badges */
.pack-rarity-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    border: 1px solid;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pack-rarity-badge.starter {
    background: rgba(144, 238, 144, 0.9);
    color: #006400;
    border-color: #90ee90;
}

.pack-rarity-badge.rare {
    background: rgba(65, 105, 225, 0.9);
    color: #ffffff;
    border-color: #4169e1;
}

.pack-rarity-badge.legendary {
    background: rgba(255, 165, 0, 0.9);
    color: #8b4513;
    border-color: #ffa500;
}

.pack-rarity-badge.theme {
    background: rgba(186, 85, 211, 0.9);
    color: #ffffff;
    border-color: #ba55d3;
}

/* Pack Stats Overlay */
.pack-stats-overlay {
    position: absolute;
    bottom: 10px;
    left: 15px;
    display: flex;
    gap: 0.5rem;
}

.pack-stats-overlay .stat {
    background: rgba(0, 0, 0, 0.7);
    color: #e6e6fa;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(138, 43, 226, 0.3);
}

/* Item Special Effects */
.item-special-effect {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 2rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { 
        transform: rotate(0deg) scale(1); 
        opacity: 0.8; 
    }
    25% { 
        transform: rotate(90deg) scale(1.2); 
        opacity: 1; 
    }
    50% { 
        transform: rotate(180deg) scale(0.9); 
        opacity: 0.6; 
    }
    75% { 
        transform: rotate(270deg) scale(1.1); 
        opacity: 1; 
    }
}

/* =================================================================
   ITEM CONTENT
   ================================================================= */

.item-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.item-info {
    flex: 1;
}

.item-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #e6e6fa;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

.item-description {
    color: #c8c8dc;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
    opacity: 0.9;
}

/* =================================================================
   PURCHASE SECTION
   ================================================================= */

.item-purchase {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.price-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: 
        linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.price-icon {
    font-size: 1.3rem;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.6));
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.price-currency {
    font-size: 1rem;
    font-weight: 600;
    color: #f0e68c;
}

.purchase-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* =================================================================
   QUANTITY SELECTOR
   ================================================================= */

.quantity-selector {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 25px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.pack-quantity-btn {
    background: rgba(138, 43, 226, 0.2);
    border: none;
    color: #e6e6fa;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pack-quantity-btn:hover {
    background: rgba(138, 43, 226, 0.4);
    color: #ffffff;
}

.pack-quantity-input {
    background: transparent;
    border: none;
    color: #e6e6fa;
    width: 60px;
    height: 40px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    outline: none;
}

.pack-quantity-input::-webkit-outer-spin-button,
.pack-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* =================================================================
   BUY BUTTONS
   ================================================================= */

.buy-button {
    flex: 1;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.8) 0%, rgba(75, 0, 130, 0.6) 100%);
    border: 2px solid rgba(138, 43, 226, 0.6);
    border-radius: 25px;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.buy-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.buy-button:hover::before {
    left: 100%;
}

.buy-button:hover {
    background: linear-gradient(135deg, rgba(138, 43, 226, 1) 0%, rgba(75, 0, 130, 0.8) 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(138, 43, 226, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.buy-button.rare {
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.8) 0%, rgba(25, 25, 112, 0.6) 100%);
    border-color: rgba(65, 105, 225, 0.6);
}

.buy-button.rare:hover {
    background: linear-gradient(135deg, rgba(65, 105, 225, 1) 0%, rgba(25, 25, 112, 0.8) 100%);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(65, 105, 225, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.buy-button.legendary {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.9) 0%, rgba(255, 140, 0, 0.7) 100%);
    border-color: rgba(255, 165, 0, 0.8);
    color: #8b4513;
}

.buy-button.legendary:hover {
    background: linear-gradient(135deg, rgba(255, 165, 0, 1) 0%, rgba(255, 140, 0, 0.9) 100%);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 165, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.buy-button.theme {
    background: linear-gradient(135deg, rgba(186, 85, 211, 0.8) 0%, rgba(147, 112, 219, 0.6) 100%);
    border-color: rgba(186, 85, 211, 0.6);
}

.buy-button.theme:hover {
    background: linear-gradient(135deg, rgba(186, 85, 211, 1) 0%, rgba(147, 112, 219, 0.8) 100%);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(186, 85, 211, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-text {
    font-size: 0.9rem;
}

.btn-icon {
    font-size: 1.1rem;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
}

/* =================================================================
   QUICK ACTIONS
   ================================================================= */

.quick-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(138, 43, 226, 0.2);
}

.quick-action-btn {
    background: 
        linear-gradient(145deg, rgba(138, 43, 226, 0.1) 0%, rgba(75, 0, 130, 0.05) 100%);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 15px;
    color: #e6e6fa;
    padding: 1rem 2rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 120px;
}

.quick-action-btn:hover {
    background: 
        linear-gradient(145deg, rgba(138, 43, 226, 0.2) 0%, rgba(75, 0, 130, 0.1) 100%);
    border-color: rgba(138, 43, 226, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(138, 43, 226, 0.2);
}

.quick-action-btn .icon {
    font-size: 1.5rem;
}

/* =================================================================
   LOADING SPINNERS
   ================================================================= */

.loading-spinner {
    text-align: center;
    color: #c8c8dc;
    font-size: 1.1rem;
    padding: 3rem;
    animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* =================================================================
   PROMO SECTION
   ================================================================= */

.promo-section {
    padding: 2rem;
    border-top: 1px solid rgba(138, 43, 226, 0.2);
    background: rgba(0, 0, 0, 0.2);
}

.promo-code-container {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.promo-code-container h4 {
    color: #e6e6fa;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.promo-input-group {
    display: flex;
    gap: 0.5rem;
}

#promo-code-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 25px;
    color: #e6e6fa;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

#promo-code-input:focus {
    border-color: rgba(138, 43, 226, 0.6);
}

.promo-submit-btn {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.8) 0%, rgba(75, 0, 130, 0.6) 100%);
    border: 2px solid rgba(138, 43, 226, 0.6);
    border-radius: 25px;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.promo-submit-btn:hover {
    background: linear-gradient(135deg, rgba(138, 43, 226, 1) 0%, rgba(75, 0, 130, 0.8) 100%);
}

.promo-status {
    margin-top: 1rem;
    padding: 0;
    font-size: 0.9rem;
}

/* =================================================================
   NOTIFICATIONS
   ================================================================= */

.shop-notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* =================================================================
   RESPONSIVE DESIGN
   ================================================================= */

@media (max-width: 1200px) {
    .shop-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1.5rem;
    }
    
    .shop-header {
        padding: 1.5rem;
    }
    
    .shop-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .shop-header {
        flex-direction: column;
        gap: 2rem;
        padding: 1rem;
    }
    
    .player-currency {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .shop-navigation {
        flex-wrap: wrap;
    }
    
    .shop-nav-btn {
        padding: 0.75rem 1rem;
        min-width: auto;
        flex: 1;
    }
    
    .shop-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .quick-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .shop-title {
        font-size: 2rem;
    }
    
    .shop-subtitle {
        font-size: 1rem;
    }
    
    .shopkeeper-image {
        width: 80px;
        height: 80px;
    }
    
    .shop-section {
        padding: 1rem;
    }
    
    .item-content {
        padding: 1rem;
    }
    
    .purchase-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .buy-button {
        width: 100%;
    }
}
    0% { transform: translateY(0); }
    100% { transform: translateY(-200px); }
}

.shop-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23666666" stop-opacity="0.08"/><stop offset="100%" stop-color="%23666666" stop-opacity="0"/></radialGradient></defs><circle cx="20" cy="20" r="2" fill="url(%23a)"/><circle cx="60" cy="70" r="1.5" fill="url(%23a)"/><circle cx="80" cy="40" r="1" fill="url(%23a)"/></svg>') repeat;
    animation: starfield 60s linear infinite;
    pointer-events: none;
    opacity: 0.2;
}

@keyframes starfield {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

/* Pack Statistics Section */
.pack-statistics-section {
    background: linear-gradient(135deg, 
        rgba(75, 0, 130, 0.15) 0%, 
        rgba(138, 43, 226, 0.1) 50%, 
        rgba(75, 0, 130, 0.15) 100%);
    border: 2px solid rgba(147, 112, 219, 0.3);
    border-radius: 15px;
    margin: 1.5rem 0;
    padding: 0;
    overflow: hidden;
    backdrop-filter: blur(10px);
    position: relative;
    transition: all 0.3s ease;
}

.pack-statistics-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #9370db 25%, 
        #8a2be2 50%, 
        #9370db 75%, 
        transparent 100%);
    animation: statsGlow 3s ease-in-out infinite alternate;
}

@keyframes statsGlow {
    0% { opacity: 0.5; transform: scaleX(0.8); }
    100% { opacity: 1; transform: scaleX(1.2); }
}

.pack-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(90deg, 
        rgba(75, 0, 130, 0.2) 0%, 
        rgba(138, 43, 226, 0.15) 50%, 
        rgba(75, 0, 130, 0.2) 100%);
    border-bottom: 1px solid rgba(147, 112, 219, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pack-stats-header:hover {
    background: linear-gradient(90deg, 
        rgba(75, 0, 130, 0.3) 0%, 
        rgba(138, 43, 226, 0.25) 50%, 
        rgba(75, 0, 130, 0.3) 100%);
}

.pack-stats-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #e6d5f0;
    text-shadow: 0 0 10px rgba(147, 112, 219, 0.6);
    position: relative;
}

.pack-stats-title::before {
    content: "📊";
    margin-right: 0.5rem;
    font-size: 1.1em;
    animation: statsIcon 2s ease-in-out infinite alternate;
}

@keyframes statsIcon {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.toggle-stats-btn {
    background: linear-gradient(135deg, 
        rgba(147, 112, 219, 0.3) 0%, 
        rgba(138, 43, 226, 0.4) 100%);
    border: 1px solid rgba(147, 112, 219, 0.5);
    border-radius: 25px;
    color: #e6d5f0;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.toggle-stats-btn:hover {
    background: linear-gradient(135deg, 
        rgba(147, 112, 219, 0.5) 0%, 
        rgba(138, 43, 226, 0.6) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 112, 219, 0.3);
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.pack-stats-content.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.pack-stats-content {
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.pack-stats-content.collapsed {
    max-height: 0;
    padding: 0 1.5rem;
}

.pack-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    margin-top: 1.2rem;
}

.pack-stat-card {
    background: linear-gradient(135deg, 
        rgba(75, 0, 130, 0.2) 0%, 
        rgba(138, 43, 226, 0.15) 50%, 
        rgba(75, 0, 130, 0.2) 100%);
    border: 1px solid rgba(147, 112, 219, 0.3);
    border-radius: 12px;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pack-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--pack-color, linear-gradient(90deg, #9370db, #8a2be2));
    opacity: 0.7;
}

.pack-stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(147, 112, 219, 0.6);
    box-shadow: 0 8px 25px rgba(147, 112, 219, 0.2);
}

.pack-stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.pack-stat-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #e6d5f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pack-stat-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.pack-cost {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #2c1810;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3);
}

.rarity-breakdown {
    margin-top: 0.8rem;
}

.rarity-breakdown-title {
    font-size: 0.9rem;
    color: #c8a2c8;
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.rarity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(147, 112, 219, 0.1);
}

.rarity-item:last-child {
    border-bottom: none;
}

.rarity-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #d6b8db;
}

.rarity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 6px currentColor;
}

.rarity-chance {
    font-weight: bold;
    font-size: 0.85rem;
    color: #e6d5f0;
}

.pack-cards-count {
    text-align: center;
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(147, 112, 219, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(147, 112, 219, 0.2);
}

.cards-count-text {
    font-size: 0.9rem;
    color: #c8a2c8;
    margin-bottom: 0.3rem;
}

.cards-count-number {
    font-size: 1.4rem;
    font-weight: bold;
    color: #e6d5f0;
    text-shadow: 0 0 10px rgba(147, 112, 219, 0.6);
}

/* Pack color themes */
.pack-stat-card[data-pack="starter"] {
    --pack-color: linear-gradient(90deg, #4CAF50, #8BC34A);
}

.pack-stat-card[data-pack="rare"] {
    --pack-color: linear-gradient(90deg, #2196F3, #03A9F4);
}

.pack-stat-card[data-pack="legendary"] {
    --pack-color: linear-gradient(90deg, #FF9800, #FFC107);
}

.pack-stat-card[data-pack="birdwell"] {
    --pack-color: linear-gradient(90deg, #9C27B0, #E91E63);
}

.pack-stat-card[data-pack="basement"] {
    --pack-color: linear-gradient(90deg, #795548, #8D6E63);
}

.pack-stat-card[data-pack="elemental"] {
    --pack-color: linear-gradient(90deg, #F44336, #FF5722);
}

.pack-stat-card[data-pack="fusion"] {
    --pack-color: linear-gradient(90deg, #3F51B5, #673AB7);
}

/* Rarity colors */
.rarity-dot.common { background-color: #9e9e9e; }
.rarity-dot.uncommon { background-color: #4caf50; }
.rarity-dot.rare { background-color: #2196f3; }
.rarity-dot.epic { background-color: #9c27b0; }
.rarity-dot.legendary { background-color: #ff9800; }
.rarity-dot.mythic { background-color: #f44336; }

/* Bulk Purchase Enhancements */
.bulk-discount-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, 
        rgba(75, 0, 130, 0.1) 0%, 
        rgba(138, 43, 226, 0.05) 100%);
    border: 1px solid rgba(147, 112, 219, 0.2);
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.bulk-discount-info.has-discount {
    background: linear-gradient(135deg, 
        rgba(255, 165, 0, 0.15) 0%, 
        rgba(255, 140, 0, 0.1) 100%);
    border-color: rgba(255, 165, 0, 0.3);
    animation: discountGlow 2s ease-in-out infinite alternate;
}

@keyframes discountGlow {
    0% { box-shadow: 0 0 5px rgba(255, 165, 0, 0.3); }
    100% { box-shadow: 0 0 12px rgba(255, 165, 0, 0.5); }
}

.discount-text {
    color: #c8a2c8;
    font-weight: 500;
}

.discount-text.active {
    color: #ffa500;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 165, 0, 0.6);
}

.total-cost {
    color: #e6d5f0;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.total-cost.discounted {
    color: #ffa500;
    text-shadow: 0 0 8px rgba(255, 165, 0, 0.6);
}

.original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 0.8rem;
    margin-right: 0.3rem;
}

/* Enhanced quantity selector for bulk purchases */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.pack-quantity-input {
    width: 60px;
    text-align: center;
    background: rgba(147, 112, 219, 0.1);
    border: 1px solid rgba(147, 112, 219, 0.3);
    border-radius: 6px;
    color: #e6d5f0;
    font-weight: bold;
    padding: 0.3rem 0.5rem;
    transition: all 0.3s ease;
}

.pack-quantity-input:focus {
    outline: none;
    border-color: rgba(147, 112, 219, 0.6);
    background: rgba(147, 112, 219, 0.15);
    box-shadow: 0 0 8px rgba(147, 112, 219, 0.3);
}

.pack-quantity-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(147, 112, 219, 0.3) 0%, 
        rgba(138, 43, 226, 0.4) 100%);
    border: 1px solid rgba(147, 112, 219, 0.5);
    color: #e6d5f0;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pack-quantity-btn:hover {
    background: linear-gradient(135deg, 
        rgba(147, 112, 219, 0.5) 0%, 
        rgba(138, 43, 226, 0.6) 100%);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(147, 112, 219, 0.3);
}

.pack-quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Bulk purchase quick action buttons */
.bulk-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.bulk-action-btn {
    flex: 1;
    padding: 0.4rem 0.6rem;
    border: 1px solid rgba(147, 112, 219, 0.3);
    border-radius: 6px;
    background: linear-gradient(135deg, 
        rgba(75, 0, 130, 0.2) 0%, 
        rgba(138, 43, 226, 0.15) 100%);
    color: #c8a2c8;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.bulk-action-btn:hover {
    background: linear-gradient(135deg, 
        rgba(147, 112, 219, 0.3) 0%, 
        rgba(138, 43, 226, 0.25) 100%);
    color: #e6d5f0;
    border-color: rgba(147, 112, 219, 0.5);
}

.bulk-action-btn.recommended {
    background: linear-gradient(135deg, 
        rgba(255, 165, 0, 0.2) 0%, 
        rgba(255, 140, 0, 0.15) 100%);
    border-color: rgba(255, 165, 0, 0.4);
    color: #ffa500;
}

.bulk-action-btn.recommended:hover {
    background: linear-gradient(135deg, 
        rgba(255, 165, 0, 0.3) 0%, 
        rgba(255, 140, 0, 0.25) 100%);
}

/* Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(147, 112, 219, 0.3);
    border-top: 3px solid #9370db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content {
    text-align: center;
    color: #e6d5f0;
}

.loading-text {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #c8a2c8;
    animation: loadingPulse 1.5s ease-in-out infinite alternate;
}

@keyframes loadingPulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Purchase button loading states */
.buy-button {
    position: relative;
    transition: all 0.3s ease;
}

.buy-button.loading {
    background: linear-gradient(135deg, 
        rgba(147, 112, 219, 0.3) 0%, 
        rgba(138, 43, 226, 0.4) 100%) !important;
    color: rgba(255, 255, 255, 0.6) !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.buy-button.loading .btn-text {
    opacity: 0.5;
}

.buy-button.loading .btn-icon {
    display: none;
}

.buy-button.loading::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Pack item loading states */
.pack-item {
    position: relative;
}

.pack-item.processing {
    pointer-events: none;
}

.pack-item.processing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(147, 112, 219, 0.1) 50%, 
        transparent 100%);
    background-size: 200% 200%;
    animation: shimmer 2s ease-in-out infinite;
    border-radius: 15px;
    z-index: 1;
}

@keyframes shimmer {
    0% { background-position: -200% -200%; }
    100% { background-position: 200% 200%; }
}

/* Progress bar for large purchases */
.purchase-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(147, 112, 219, 0.2);
    border-radius: 0 0 15px 15px;
    overflow: hidden;
}

.purchase-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #9370db, #8a2be2);
    border-radius: 0 0 15px 15px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.purchase-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    background-size: 200% 200%;
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% { background-position: -200% -200%; }
    100% { background-position: 200% 200%; }
}

/* Success states */
.pack-item.success {
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(76, 175, 80, 0.5); }
    100% { transform: scale(1); }
}

/* Error states */
.pack-item.error {
    animation: errorShake 0.6s ease-out;
    border-color: rgba(244, 67, 54, 0.5) !important;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Bulk purchase loading states */
.bulk-action-btn.loading {
    background: linear-gradient(135deg, 
        rgba(147, 112, 219, 0.2) 0%, 
        rgba(138, 43, 226, 0.1) 100%) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    cursor: not-allowed !important;
    position: relative;
}

.bulk-action-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Pack opening animation */
.pack-opening-sequence {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.pack-opening-sequence.active {
    opacity: 1;
    visibility: visible;
}

.pack-animation {
    text-align: center;
    color: #e6d5f0;
}

.pack-animation .pack-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    animation: packFloat 2s ease-in-out infinite alternate;
}

@keyframes packFloat {
    0% { transform: translateY(-10px) scale(1); }
    100% { transform: translateY(10px) scale(1.1); }
}

.pack-animation .opening-text {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% { text-shadow: 0 0 10px rgba(147, 112, 219, 0.6); }
    100% { text-shadow: 0 0 20px rgba(147, 112, 219, 1); }
}

/* Enhanced Error Handling & User Feedback */
.shop-notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    max-width: 350px;
    pointer-events: none;
}

.shop-notification {
    background: linear-gradient(135deg, 
        rgba(75, 0, 130, 0.95) 0%, 
        rgba(138, 43, 226, 0.9) 100%);
    color: #e6d5f0;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(147, 112, 219, 0.5);
    margin-bottom: 0.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.shop-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.shop-notification.error {
    background: linear-gradient(135deg, 
        rgba(244, 67, 54, 0.95) 0%, 
        rgba(229, 57, 53, 0.9) 100%);
    border-color: rgba(244, 67, 54, 0.6);
}

.shop-notification.success {
    background: linear-gradient(135deg, 
        rgba(76, 175, 80, 0.95) 0%, 
        rgba(67, 160, 71, 0.9) 100%);
    border-color: rgba(76, 175, 80, 0.6);
}

.shop-notification.warning {
    background: linear-gradient(135deg, 
        rgba(255, 152, 0, 0.95) 0%, 
        rgba(251, 140, 0, 0.9) 100%);
    border-color: rgba(255, 152, 0, 0.6);
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 0.9rem;
}

.notification-icon {
    font-size: 1.2rem;
    animation: notificationBounce 0.6s ease-out;
}

@keyframes notificationBounce {
    0% { transform: scale(0.3); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.notification-message {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.notification-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.notification-btn {
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.notification-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.notification-close:hover {
    color: #fff;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0 0 12px 12px;
    transform-origin: left;
    animation: notificationProgress 5s linear forwards;
}

@keyframes notificationProgress {
    0% { transform: scaleX(1); }
    100% { transform: scaleX(0); }
}

/* Enhanced error states for forms */
.form-group.error input {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.1);
    animation: inputShake 0.5s ease-out;
}

@keyframes inputShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-tooltip {
    position: absolute;
    bottom: -2rem;
    left: 0;
    right: 0;
    background: rgba(244, 67, 54, 0.95);
    color: white;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group.error .error-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Connection status indicator */
.connection-status {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.connection-status.online {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    transform: translateY(60px);
}

.connection-status.offline {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    transform: translateY(0);
}

.connection-status.reconnecting {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    transform: translateY(0);
}

.connection-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: connectionPulse 2s ease-in-out infinite;
}

@keyframes connectionPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Enhanced insufficient funds feedback */
.insufficient-funds-indicator {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 10;
    animation: insufficientFundsPulse 1s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

@keyframes insufficientFundsPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Validation feedback */
.validation-feedback {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(244, 67, 54, 0.9);
    color: white;
    border-radius: 6px;
    font-size: 0.8rem;
    z-index: 100;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.validation-feedback.show {
    opacity: 1;
    transform: translateY(0);
}

.validation-feedback.success {
    background: rgba(76, 175, 80, 0.9);
}

/* Rate limiting feedback */
.rate-limit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 152, 0, 0.1);
    border: 2px solid rgba(255, 152, 0, 0.5);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    animation: rateLimitPulse 2s ease-in-out infinite;
}

@keyframes rateLimitPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.rate-limit-message {
    text-align: center;
    color: #ff9800;
    font-weight: bold;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem;
    border-radius: 8px;
}

/* Sound Toggle Button */
.sound-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, 
        rgba(147, 112, 219, 0.3) 0%, 
        rgba(138, 43, 226, 0.4) 100%);
    border: 1px solid rgba(147, 112, 219, 0.5);
    border-radius: 20px;
    color: #e6d5f0;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.sound-toggle-btn:hover {
    background: linear-gradient(135deg, 
        rgba(147, 112, 219, 0.5) 0%, 
        rgba(138, 43, 226, 0.6) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 112, 219, 0.3);
}

.sound-icon {
    font-size: 1.1rem;
    animation: soundPulse 2s ease-in-out infinite alternate;
}

@keyframes soundPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.sound-text {
    font-weight: 500;
}

/* Sound visualization effects */
.sound-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid rgba(147, 112, 219, 0.3);
    border-radius: 50%;
    opacity: 0;
    animation: soundWave 1s ease-out;
}

@keyframes soundWave {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.5);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2);
    }
}

/* Pack Favorites & Filters */
.pack-favorite-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.pack-favorite-btn:hover {
    background: rgba(255, 215, 0, 0.8);
    border-color: rgba(255, 215, 0, 0.6);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.pack-favorite-btn.favorited {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-color: rgba(255, 215, 0, 0.8);
    color: #2c1810;
    animation: favoriteGlow 2s ease-in-out infinite alternate;
}

@keyframes favoriteGlow {
    0% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
    100% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.8); }
}

.favorite-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.pack-favorite-btn.favorited .favorite-icon {
    transform: scale(1.2);
}

/* Pack item favorited state */
.pack-item.favorited {
    position: relative;
}

.pack-item.favorited::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #ffd700 0%, 
        #ffed4e 25%, 
        #ffd700 50%, 
        #ffed4e 75%, 
        #ffd700 100%);
    background-size: 200% 200%;
    animation: favoriteBorder 3s linear infinite;
    border-radius: 17px;
    z-index: -1;
}

@keyframes favoriteBorder {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Pack Filters */
.pack-filters {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, 
        rgba(75, 0, 130, 0.3) 0%, 
        rgba(138, 43, 226, 0.2) 100%);
    border: 1px solid rgba(147, 112, 219, 0.4);
    border-radius: 25px;
    color: #c8a2c8;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn:hover {
    background: linear-gradient(135deg, 
        rgba(147, 112, 219, 0.4) 0%, 
        rgba(138, 43, 226, 0.3) 100%);
    color: #e6d5f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 112, 219, 0.3);
}

.filter-btn.active {
    background: linear-gradient(135deg, 
        rgba(147, 112, 219, 0.6) 0%, 
        rgba(138, 43, 226, 0.5) 100%);
    color: #fff;
    border-color: rgba(147, 112, 219, 0.8);
    font-weight: bold;
}

.filter-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    animation: filterShine 2s ease-in-out infinite;
}

@keyframes filterShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.filter-icon {
    font-size: 1rem;
    animation: filterIconBounce 2s ease-in-out infinite alternate;
}

@keyframes filterIconBounce {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* Favorites count badge */
#favorites-count {
    background: rgba(255, 215, 0, 0.8);
    color: #2c1810;
    padding: 0.1rem 0.3rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: bold;
    min-width: 16px;
    text-align: center;
    display: inline-block;
}

/* Pack grid filtering states */
.shop-grid.filtering .pack-item {
    transition: all 0.4s ease;
}

.shop-grid.filtering .pack-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Empty state for favorites */
.favorites-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #c8a2c8;
    display: none;
}

.favorites-empty-state.show {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.empty-state-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #e6d5f0;
}

.empty-state-message {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive design */
@media (max-width: 768px) {
    .pack-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .pack-stats-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .toggle-stats-btn {
        width: 100%;
        justify-content: center;
    }
    
    .bulk-discount-info {
        flex-direction: column;
        text-align: center;
        gap: 0.3rem;
    }
    
    .quantity-selector {
        justify-content: center;
    }
}

/* Shop Layout Enhancement - Only when active */
body #screen-shop.active .shop-layout {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    width: 100vw !important;
    max-width: none !important;
    margin: 0 !important;
    position: relative;
    z-index: 2;
    gap: 0 !important;
    padding: 0 !important;
    overflow-y: auto !important;
}

/* Shopkeeper Container - Hidden in fullscreen layout */
body #screen-shop.active #shopkeeper-container {
    display: none !important;
}

body #screen-shop.active #shopkeeper-image {
    width: 100% !important;
    max-width: 250px !important;
    height: auto !important;
    border-radius: 15px !important;
    border: 3px solid rgba(74, 144, 226, 0.5) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

/* Shop Content - Only when active */
body #screen-shop.active .shop-content-column {
    flex: 1 !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    width: 100% !important;
    padding: 2rem !important;
}

.shop-content-column h2 {
    text-align: center !important;
    font-size: 2.8rem !important;
    font-family: 'Times New Roman', serif !important;
    background: linear-gradient(45deg, #606060, #808080, #606060) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    margin-bottom: 1rem !important;
    text-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(96, 96, 96, 0.3) !important;
    position: relative;
    z-index: 3;
    font-weight: 600 !important;
    letter-spacing: 2px !important;
}

.shop-content-column h2::after {
    content: '"Welcome, traveler, to the Shadow Emporium"' !important;
    display: block !important;
    font-size: 1rem !important;
    font-style: italic !important;
    color: #666666 !important;
    font-weight: 400 !important;
    margin-top: 0.5rem !important;
    letter-spacing: 1px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
    background: none !important;
    -webkit-text-fill-color: unset !important;
}

/* Shop Header - Enhanced */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 3rem;
    background: linear-gradient(135deg, 
        rgba(74, 144, 226, 0.2) 0%, 
        rgba(144, 74, 226, 0.15) 50%, 
        rgba(226, 74, 144, 0.1) 100%);
    border-bottom: 2px solid rgba(74, 144, 226, 0.4);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(15px);
}

.shop-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.02) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.02) 100%);
    pointer-events: none;
}

.shop-title-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.shop-title {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(45deg, #4a90e2, #9064e2, #e24a90);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(74, 144, 226, 0.5);
    margin: 0;
}

.shop-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin: 0;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Shopkeeper Dialogue */
.shopkeeper-dialogue-container {
    position: relative;
}

.shopkeeper-dialogue {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    border: 2px solid rgba(74, 144, 226, 0.5);
    backdrop-filter: blur(10px);
    max-width: 400px;
    transition: all 0.3s ease;
}

.shopkeeper-dialogue.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.shopkeeper-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #4a90e2, #9064e2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.shopkeeper-avatar::before {
    content: '🧙‍♂️';
}

.dialogue-bubble {
    flex: 1;
}

.dialogue-bubble p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}

/* Shop Navigation - Enhanced */
.shop-navigation {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 3rem;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, rgba(20, 20, 40, 0.4) 100%);
    position: relative;
    z-index: 2;
    border-bottom: 1px solid rgba(74, 144, 226, 0.2);
    backdrop-filter: blur(10px);
}

.shop-nav-btn {
    padding: 1.2rem 2.5rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    overflow: hidden;
}

.shop-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.2), transparent);
    transition: left 0.5s ease;
}

.shop-nav-btn:hover::before {
    left: 100%;
}

.shop-nav-btn:hover {
    color: #ffffff;
    background: linear-gradient(145deg, rgba(74, 144, 226, 0.15) 0%, rgba(74, 144, 226, 0.08) 100%);
    border-color: rgba(74, 144, 226, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.shop-nav-btn.active {
    color: #ffffff;
    background: linear-gradient(145deg, rgba(74, 144, 226, 0.3) 0%, rgba(74, 144, 226, 0.2) 100%);
    border-color: rgba(74, 144, 226, 0.6);
    box-shadow: 
        0 0 20px rgba(74, 144, 226, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.shop-nav-btn.secret-shop-btn {
    background: linear-gradient(45deg, #e24a90, #9064e2);
    color: #ffffff;
    border-radius: 8px 8px 0 0;
    animation: secretGlow 2s ease-in-out infinite alternate;
}

@keyframes secretGlow {
    0% { box-shadow: 0 0 20px rgba(226, 74, 144, 0.5); }
    100% { box-shadow: 0 0 30px rgba(144, 100, 226, 0.8); }
}

/* Shop Content - Enhanced */
.shop-content {
    flex: 1;
    overflow-y: auto;
    padding: 3rem;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.1) 50%, 
        rgba(0, 0, 0, 0.05) 100%);
    min-height: calc(100vh - 200px);
    scroll-behavior: smooth;
}

/* Custom scrollbar for shop content */
.shop-content::-webkit-scrollbar {
    width: 8px;
}

.shop-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.shop-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(74, 144, 226, 0.6) 0%, rgba(74, 144, 226, 0.3) 100%);
    border-radius: 4px;
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.shop-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(74, 144, 226, 0.8) 0%, rgba(74, 144, 226, 0.5) 100%);
}

/* Improved content spacing and organization */
.shop-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(74, 144, 226, 0.3) 50%, 
        transparent 100%);
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Headers - Enhanced Visual Hierarchy */
.section-header {
    text-align: center;
    margin: 2rem 0 4rem 0;
    position: relative;
    padding: 2rem 0;
}

.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(74, 144, 226, 0.6) 50%, 
        transparent 100%);
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(74, 144, 226, 0.4) 50%, 
        transparent 100%);
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 1.5rem 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    letter-spacing: 1px;
    position: relative;
}

.section-header h2::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(74, 144, 226, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.section-header p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1rem 0;
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Shop Grid and Items - Enhanced Layout */
.shop-grid, .bundles-grid, .cosmetics-grid, .secret-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
    justify-items: center;
}

/* Responsive grid adjustments */
@media (min-width: 1200px) {
    .shop-grid, .bundles-grid, .cosmetics-grid, .secret-items-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .shop-grid, .bundles-grid, .cosmetics-grid, .secret-items-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 600px) and (max-width: 899px) {
    .shop-grid, .bundles-grid, .cosmetics-grid, .secret-items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 599px) {
    .shop-grid, .bundles-grid, .cosmetics-grid, .secret-items-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .shop-header {
        padding: 1.5rem 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .shop-navigation {
        padding: 0.5rem 1rem;
        gap: 0.25rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .shop-nav-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        flex: 1;
        min-width: 120px;
    }
    
    .shop-content {
        padding: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }
    
    .shop-item {
        min-height: 420px;
        max-width: none;
        padding: 1.5rem;
    }
}

.shop-item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
    border-radius: 24px;
    border: 2px solid rgba(74, 144, 226, 0.35);
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    cursor: pointer;
    width: 100%;
    max-width: 380px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.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.6s ease;
}

.shop-item:hover::before {
    left: 100%;
}

.shop-item:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: rgba(74, 144, 226, 0.7);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4), 
        0 0 40px rgba(74, 144, 226, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Item Image Container */
.item-image-container {
    position: relative;
    text-align: center;
    margin-bottom: 1.5rem;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 15px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.shop-item:hover .item-image {
    transform: scale(1.05);
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
}

.item-glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.3) 0%, transparent 70%);
    animation: pulse 2s ease-in-out infinite;
    z-index: -1;
}

.item-glow-effect.rare-glow {
    background: radial-gradient(circle, rgba(226, 156, 74, 0.4) 0%, transparent 70%);
}

.item-glow-effect.legendary-glow {
    background: radial-gradient(circle, rgba(226, 74, 144, 0.4) 0%, transparent 70%);
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* Pack Rarity Badges */
.pack-rarity-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pack-rarity-badge.starter {
    background: linear-gradient(45deg, #4a90e2, #5ba3f5);
    color: #ffffff;
}

.pack-rarity-badge.rare {
    background: linear-gradient(45deg, #e29c4a, #f5b85b);
    color: #ffffff;
}

.pack-rarity-badge.legendary {
    background: linear-gradient(45deg, #e24a90, #f55ba3);
    color: #ffffff;
    animation: legendaryShine 2s ease-in-out infinite;
}

@keyframes legendaryShine {
    0%, 100% { box-shadow: 0 0 15px rgba(226, 74, 144, 0.5); }
    50% { box-shadow: 0 0 25px rgba(226, 74, 144, 0.8); }
}

/* Item Special Effects */
.item-special-effect {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 1.5rem;
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.5; transform: scale(1) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.2) rotate(180deg); }
}

/* Item Info */
.item-info {
    margin-bottom: 1.5rem;
}

.item-name {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    text-align: center;
}

.item-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    text-align: center;
    margin: 0 0 1rem 0;
}

.item-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.stat-item {
    background: rgba(74, 144, 226, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #4a90e2;
    border: 1px solid rgba(74, 144, 226, 0.3);
}

/* Item Purchase Section */
.item-purchase {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.item-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffd700;
}

.price-amount {
    font-size: 2rem;
}

.price-currency {
    font-size: 1rem;
    color: rgba(255, 215, 0, 0.8);
}

/* Purchase Controls */
.purchase-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    align-items: center;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 25px;
    padding: 0.3rem;
    border: 2px solid rgba(74, 144, 226, 0.3);
}

.qty-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(45deg, #4a90e2, #5ba3f5);
    color: #ffffff;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

.qty-input {
    width: 50px;
    text-align: center;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
}

.qty-input:focus {
    outline: none;
}

/* Buy Buttons */
.buy-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #4a90e2, #5ba3f5);
    border: none;
    border-radius: 25px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.buy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.buy-btn:hover::before {
    left: 100%;
}

.buy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.4);
}

.buy-btn.legendary-btn {
    background: linear-gradient(45deg, #e24a90, #f55ba3);
    animation: legendaryPulse 2s ease-in-out infinite;
}

@keyframes legendaryPulse {
    0%, 100% { box-shadow: 0 5px 20px rgba(226, 74, 144, 0.3); }
    50% { box-shadow: 0 10px 30px rgba(226, 74, 144, 0.6); }
}

.btn-icon {
    font-size: 1.2rem;
}

/* Cosmetics Filters */
.cosmetics-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.cosmetics-filters select {
    padding: 0.8rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: 15px;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cosmetics-filters select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.3);
}

/* Secret Shop Styling */
.secret-shop {
    position: relative;
}

.secret-shop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(226, 74, 144, 0.1), rgba(144, 100, 226, 0.1));
    border-radius: 15px;
    animation: secretShimmer 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes secretShimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.secret-shop-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    font-size: 1.1rem;
    color: #e24a90;
    font-weight: bold;
}

/* Purchase Summary */
.purchase-summary {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.9) 0%, rgba(74, 144, 226, 0.1) 100%);
    border-radius: 20px;
    border: 2px solid rgba(74, 144, 226, 0.5);
    padding: 2rem;
    backdrop-filter: blur(15px);
    max-width: 350px;
    transform: translateY(100px);
    transition: all 0.4s ease;
    z-index: 1000;
}

.purchase-summary:not(.hidden) {
    transform: translateY(0);
}

.purchase-summary.hidden {
    opacity: 0;
    pointer-events: none;
}

.summary-content h3 {
    margin: 0 0 1rem 0;
    color: #ffffff;
    text-align: center;
}

.summary-total {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffd700;
    text-align: center;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.summary-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.confirm-btn, .cancel-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-btn {
    background: linear-gradient(45deg, #4a90e2, #5ba3f5);
    color: #ffffff;
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.confirm-btn:hover, .cancel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .shop-grid, .bundles-grid, .cosmetics-grid, .secret-items-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .shop-header {
        padding: 1.5rem 2rem;
    }
    
    .shop-content {
        padding: 1.5rem 2rem;
    }
    
    body #screen-shop.active .shop-items-container {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
        gap: 1.2rem !important;
    }
    
    body #screen-shop.active .total-cost-display {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
    
    body #screen-shop.active .featured-pack-banner {
        height: 240px !important;
        flex-direction: column !important;
    }
    
    body #screen-shop.active .featured-pack-artwork {
        flex: 1 !important;
        min-height: 120px !important;
    }
    
    body #screen-shop.active .featured-pack-info {
        flex: 1 !important;
        padding: 1.5rem !important;
    }
    
    body #screen-shop.active .shop-nav-tabs {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
    
    body #screen-shop.active .shop-tab {
        flex: 1 !important;
        min-width: 120px !important;
        padding: 0.8rem 1.5rem !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 768px) {
    body #screen-shop.active .shop-items-container {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        padding: 1rem !important;
    }
    
    body #screen-shop.active .featured-pack-banner {
        height: 200px !important;
        margin: 0 1rem 1.5rem 1rem !important;
    }
    
    body #screen-shop.active .shop-content-area {
        padding: 1rem !important;
    }
    
    body #screen-shop.active .shop-nav-tabs {
        padding: 0.5rem 1rem 0 1rem !important;
        flex-direction: column !important;
    }
    
    body #screen-shop.active .shop-tab {
        width: 100% !important;
        text-align: center !important;
        border-radius: 8px !important;
        margin-bottom: 0.5rem !important;
    }
}

@media (max-width: 768px) {
    .shop-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .shop-navigation {
        flex-wrap: wrap;
        padding: 0 1rem;
    }
    
    .shop-nav-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .shop-content {
        padding: 1rem;
    }
    
    .shop-grid, .bundles-grid, .cosmetics-grid, .secret-items-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .purchase-summary {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
    
    .cosmetics-filters {
        flex-direction: column;
        align-items: center;
    }
}

/* Animation Enhancements */
@keyframes shopEntrance {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.shop-container {
    animation: shopEntrance 0.8s ease-out;
}

/* Loading States */
.shop-item.loading {
    opacity: 0.6;
    pointer-events: none;
}

.shop-item.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(74, 144, 226, 0.3);
    border-top: 3px solid #4a90e2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Success/Error States */
.shop-item.success {
    border-color: #4caf50;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
}

.shop-item.error {
    border-color: #f44336;
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.3);
}

/* Enhanced Purchase Confirmation Animations */
.shop-item.purchase-animation {
    animation: purchaseSuccess 0.8s ease-out forwards;
    position: relative;
    overflow: visible;
}

@keyframes purchaseSuccess {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.15);
        box-shadow: 0 0 40px rgba(76, 175, 80, 0.8);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 60px rgba(76, 175, 80, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
    }
}

/* Purchase success particle effects */
.shop-item.purchase-animation::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.3) 0%, transparent 70%);
    border-radius: 15px;
    animation: purchaseGlow 0.8s ease-out;
    pointer-events: none;
    z-index: -1;
}

@keyframes purchaseGlow {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 0;
        transform: scale(1.4);
    }
}

/* Purchase success sparkles */
.shop-item.purchase-animation::after {
    content: '✨';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    animation: purchaseSparkle 0.8s ease-out;
    pointer-events: none;
    z-index: 10;
}

@keyframes purchaseSparkle {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.5) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) rotate(360deg);
    }
}

/* Coin deduction animation */
.currency-display.coins .currency-value.deducting {
    animation: coinDeduction 1s ease-out;
    color: #ff6b6b !important;
    font-weight: bold !important;
}

@keyframes coinDeduction {
    0% {
        transform: scale(1);
        color: #ffd700;
    }
    25% {
        transform: scale(1.2);
        color: #ff9500;
    }
    50% {
        transform: scale(1.1);
        color: #ff6b6b;
    }
    100% {
        transform: scale(1);
        color: #ff6b6b;
    }
}

/* Purchase confirmation modal styles */
.purchase-confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(5px);
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        backdrop-filter: blur(5px);
    }
    to {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
}

.purchase-confirmation-content {
    background: linear-gradient(145deg, rgba(30, 20, 60, 0.95), rgba(10, 5, 25, 0.98));
    border: 3px solid rgba(138, 43, 226, 0.8);
    border-radius: 15px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 40px rgba(138, 43, 226, 0.5);
    animation: modalSlideIn 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.purchase-confirmation-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(138, 43, 226, 0.1) 2px,
        rgba(138, 43, 226, 0.1) 4px
    );
    animation: modalPattern 3s linear infinite;
    pointer-events: none;
}

@keyframes modalPattern {
    0% {
        transform: translateX(-20px) translateY(-20px);
    }
    100% {
        transform: translateX(20px) translateY(20px);
    }
}

.purchase-confirmation-title {
    color: #ffd700;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: titleGlow 2s ease-in-out infinite alternate;
}

.purchase-confirmation-details {
    color: #e6e6e6;
    font-size: 1.1em;
    margin: 1rem 0;
    line-height: 1.6;
}

.purchase-confirmation-cards {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.purchase-confirmation-card {
    width: 80px;
    height: 110px;
    border-radius: 8px;
    border: 2px solid rgba(138, 43, 226, 0.6);
    background: linear-gradient(145deg, rgba(20, 15, 40, 0.8), rgba(10, 5, 25, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 0.8em;
    text-align: center;
    color: #e6e6e6;
    animation: cardReveal 0.6s ease-out;
    animation-fill-mode: both;
    position: relative;
    overflow: hidden;
}

.purchase-confirmation-card:nth-child(1) { animation-delay: 0.1s; }
.purchase-confirmation-card:nth-child(2) { animation-delay: 0.2s; }
.purchase-confirmation-card:nth-child(3) { animation-delay: 0.3s; }
.purchase-confirmation-card:nth-child(4) { animation-delay: 0.4s; }
.purchase-confirmation-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: rotateY(90deg) scale(0.8);
    }
    to {
        opacity: 1;
        transform: rotateY(0deg) scale(1);
    }
}

.purchase-confirmation-card.rarity-legendary {
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.purchase-confirmation-card.rarity-rare {
    border-color: #8a2be2;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
}

.purchase-confirmation-card.rarity-uncommon {
    border-color: #4169e1;
    box-shadow: 0 0 15px rgba(65, 105, 225, 0.5);
}

.purchase-confirmation-card.rarity-common {
    border-color: #808080;
    box-shadow: 0 0 15px rgba(128, 128, 128, 0.3);
}

.purchase-confirmation-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 1.5rem;
}

.purchase-confirmation-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.purchase-confirmation-btn.primary {
    background: linear-gradient(45deg, #4caf50, #45a049);
    color: white;
}

.purchase-confirmation-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.purchase-confirmation-btn.secondary {
    background: linear-gradient(45deg, #666, #555);
    color: white;
}

.purchase-confirmation-btn.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 100, 100, 0.4);
}

/* Bundle Offerings Section */
.bundle-item {
    background: linear-gradient(145deg, rgba(25, 15, 45, 0.95), rgba(15, 10, 30, 0.98));
    border: 3px solid rgba(138, 43, 226, 0.6);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(138, 43, 226, 0.3);
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.bundle-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(138, 43, 226, 0.9);
    box-shadow: 0 16px 48px rgba(138, 43, 226, 0.5);
}

.bundle-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 3px,
        rgba(138, 43, 226, 0.1) 3px,
        rgba(138, 43, 226, 0.1) 6px
    );
    animation: bundlePattern 4s linear infinite;
    pointer-events: none;
    opacity: 0.5;
}

@keyframes bundlePattern {
    0% {
        transform: translateX(-30px) translateY(-30px);
    }
    100% {
        transform: translateX(30px) translateY(30px);
    }
}

.bundle-header {
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
}

.bundle-discount {
    position: absolute;
    top: -1rem;
    right: -1rem;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    transform: rotate(15deg);
    animation: discountPulse 2s ease-in-out infinite alternate;
}

.bundle-title {
    color: #ffd700;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.bundle-subtitle {
    color: #e6e6e6;
    font-size: 1em;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.bundle-description {
    color: #cccccc;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.bundle-contents {
    margin-bottom: 2rem;
}

.bundle-contents-title {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bundle-contents-title::before {
    content: '📦';
    font-size: 1.2em;
}

.bundle-pack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.bundle-pack-item {
    background: rgba(138, 43, 226, 0.2);
    border: 2px solid rgba(138, 43, 226, 0.4);
    border-radius: 12px;
    padding: 0.6rem 1rem;
    font-size: 0.85em;
    color: #e6e6e6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.bundle-pack-item:hover {
    background: rgba(138, 43, 226, 0.3);
    border-color: rgba(138, 43, 226, 0.6);
    transform: scale(1.05);
}

.bundle-pack-count {
    background: rgba(255, 215, 0, 0.2);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #ffd700;
    font-size: 0.8em;
}

.bundle-cosmetics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bundle-cosmetic-item {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8em;
    color: #ffd700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.bundle-cosmetic-item::before {
    content: '✨';
    font-size: 1em;
}

.bundle-pricing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.bundle-price-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bundle-original-price {
    color: #999;
    font-size: 1.1em;
    text-decoration: line-through;
    margin-bottom: 0.2rem;
}

.bundle-discounted-price {
    color: #4caf50;
    font-size: 1.6em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.bundle-discounted-price::before {
    content: '🪙';
    font-size: 0.8em;
}

.bundle-savings {
    color: #ff6b35;
    font-weight: bold;
    font-size: 1.2em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.bundle-savings-amount {
    font-size: 1.3em;
}

.bundle-savings-percent {
    font-size: 0.9em;
    opacity: 0.9;
}

.bundle-purchase-btn {
    width: 100%;
    padding: 1.2rem 2rem;
    background: linear-gradient(145deg, #4caf50, #45a049);
    border: 3px solid rgba(76, 175, 80, 0.6);
    border-radius: 15px;
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.bundle-purchase-btn:hover {
    background: linear-gradient(145deg, #45a049, #4caf50);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    border-color: rgba(76, 175, 80, 0.8);
}

.bundle-purchase-btn:active {
    transform: translateY(0);
}

.bundle-purchase-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.bundle-purchase-btn:hover::before {
    width: 300px;
    height: 300px;
}

.bundle-item.featured {
    border-color: #ffd700;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.4);
    animation: featuredBundlePulse 3s ease-in-out infinite alternate;
}

@keyframes featuredBundlePulse {
    0% {
        box-shadow: 0 8px 32px rgba(255, 215, 0, 0.4);
    }
    100% {
        box-shadow: 0 12px 40px rgba(255, 215, 0, 0.6);
    }
}

.bundle-item.featured::after {
    content: '⭐ FEATURED';
    position: absolute;
    top: 1rem;
    left: -2rem;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    padding: 0.5rem 3rem;
    font-weight: bold;
    font-size: 0.8em;
    transform: rotate(-45deg);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.bundle-item.limited-time {
    border-color: #ff6b35;
    animation: limitedTimePulse 2s ease-in-out infinite alternate;
}

@keyframes limitedTimePulse {
    0% {
        border-color: #ff6b35;
        box-shadow: 0 8px 32px rgba(255, 107, 53, 0.3);
    }
    100% {
        border-color: #f7931e;
        box-shadow: 0 12px 40px rgba(255, 107, 53, 0.5);
    }
}

.bundle-timer {
    background: rgba(255, 107, 53, 0.2);
    border: 1px solid rgba(255, 107, 53, 0.4);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #ff6b35;
    font-weight: bold;
    animation: timerPulse 1s ease-in-out infinite alternate;
}

.bundle-timer::before {
    content: '⏰ ';
    font-size: 1.1em;
}

/* Limited Time Offers Section */
.limited-time-offers {
    background: linear-gradient(145deg, rgba(255, 107, 53, 0.1), rgba(247, 147, 30, 0.1));
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.limited-time-offers::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b35, #f7931e, #ff6b35, #f7931e);
    background-size: 400% 400%;
    animation: limitedOfferBorder 3s ease infinite;
    border-radius: 15px;
    z-index: -1;
}

@keyframes limitedOfferBorder {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.limited-time-header {
    text-align: center;
    margin-bottom: 2rem;
}

.limited-time-title {
    color: #ff6b35;
    font-size: 2.2em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: limitedTitlePulse 2s ease-in-out infinite alternate;
    margin-bottom: 0.5rem;
}

@keyframes limitedTitlePulse {
    0% {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 107, 53, 0.3);
    }
    100% {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 107, 53, 0.6);
    }
}

.limited-time-subtitle {
    color: #f7931e;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 1rem;
}

.limited-time-timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.timer-segment {
    background: linear-gradient(145deg, rgba(255, 107, 53, 0.2), rgba(247, 147, 30, 0.3));
    border: 2px solid rgba(255, 107, 53, 0.4);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    min-width: 80px;
    animation: timerSegmentPulse 1s ease-in-out infinite alternate;
}

@keyframes timerSegmentPulse {
    0% {
        border-color: rgba(255, 107, 53, 0.4);
        box-shadow: 0 0 10px rgba(255, 107, 53, 0.2);
    }
    100% {
        border-color: rgba(255, 107, 53, 0.6);
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
    }
}

.timer-number {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: #ff6b35;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    animation: timerNumberFlip 1s ease-in-out;
}

.timer-label {
    display: block;
    font-size: 0.9em;
    color: #f7931e;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

@keyframes timerNumberFlip {
    0%, 100% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(90deg);
    }
}

.timer-segment.urgent {
    animation: urgentPulse 0.5s ease-in-out infinite alternate;
}

@keyframes urgentPulse {
    0% {
        border-color: rgba(255, 0, 0, 0.6);
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
        background: linear-gradient(145deg, rgba(255, 0, 0, 0.2), rgba(255, 50, 50, 0.3));
    }
    100% {
        border-color: rgba(255, 0, 0, 0.8);
        box-shadow: 0 0 25px rgba(255, 0, 0, 0.6);
        background: linear-gradient(145deg, rgba(255, 0, 0, 0.3), rgba(255, 50, 50, 0.4));
    }
}

.timer-segment.urgent .timer-number {
    color: #ff0000;
}

.timer-segment.urgent .timer-label {
    color: #ff3333;
}

.limited-offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.limited-offer-item {
    background: linear-gradient(145deg, rgba(20, 15, 40, 0.95), rgba(10, 5, 25, 0.98));
    border: 2px solid rgba(255, 107, 53, 0.6);
    border-radius: 15px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: limitedOfferGlow 3s ease-in-out infinite alternate;
}

@keyframes limitedOfferGlow {
    0% {
        box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
    }
    100% {
        box-shadow: 0 8px 30px rgba(255, 107, 53, 0.5);
    }
}

.limited-offer-item:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(255, 107, 53, 0.8);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.6);
}

.limited-offer-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(45deg, #ff0000, #ff6b35);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(15deg);
    animation: badgePulse 2s ease-in-out infinite alternate;
    box-shadow: 0 3px 10px rgba(255, 0, 0, 0.4);
}

@keyframes badgePulse {
    0% {
        transform: rotate(15deg) scale(1);
    }
    100% {
        transform: rotate(15deg) scale(1.1);
    }
}

.limited-offer-title {
    color: #ff6b35;
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.limited-offer-description {
    color: #cccccc;
    font-size: 0.95em;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.limited-offer-pricing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.limited-offer-original-price {
    color: #999;
    font-size: 1em;
    text-decoration: line-through;
    opacity: 0.8;
}

.limited-offer-current-price {
    color: #4caf50;
    font-size: 1.4em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.limited-offer-current-price::before {
    content: '🪙';
    font-size: 0.8em;
}

.limited-offer-discount {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.9em;
}

.limited-offer-timer-small {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9em;
}

.limited-offer-timer-small .timer-small {
    background: rgba(255, 107, 53, 0.2);
    border: 1px solid rgba(255, 107, 53, 0.4);
    border-radius: 8px;
    padding: 0.3rem 0.6rem;
    color: #ff6b35;
    font-weight: bold;
}

.limited-offer-purchase-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(145deg, #ff6b35, #f7931e);
    border: 2px solid rgba(255, 107, 53, 0.6);
    border-radius: 12px;
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.limited-offer-purchase-btn:hover {
    background: linear-gradient(145deg, #f7931e, #ff6b35);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}

.limited-offer-purchase-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.limited-offer-purchase-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Expired offer styling */
.limited-offer-item.expired {
    opacity: 0.6;
    border-color: #666;
    animation: none;
}

.limited-offer-item.expired .limited-offer-purchase-btn {
    background: linear-gradient(145deg, #666, #555);
    cursor: not-allowed;
    border-color: #666;
}

.limited-offer-item.expired .limited-offer-badge {
    background: linear-gradient(45deg, #666, #555);
    animation: none;
}

/* Responsive Limited Time Offers */
@media (max-width: 768px) {
    .limited-time-timer {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .timer-segment {
        min-width: 60px;
        padding: 0.8rem;
    }
    
    .timer-number {
        font-size: 1.5em;
    }
    
    .limited-offers-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .limited-time-title {
        font-size: 1.8em;
    }
}

/* Recent Purchases Display */
.recent-purchases-section {
    background: linear-gradient(145deg, rgba(138, 43, 226, 0.1), rgba(75, 0, 130, 0.1));
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.recent-purchases-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(138, 43, 226, 0.3), rgba(75, 0, 130, 0.3), rgba(138, 43, 226, 0.3));
    background-size: 200% 200%;
    animation: recentPurchasesBorder 4s ease infinite;
    border-radius: 15px;
    z-index: -1;
}

@keyframes recentPurchasesBorder {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.recent-purchases-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.recent-purchases-title {
    color: #8a2be2;
    font-size: 1.6em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recent-purchases-title::before {
    content: '🛍️';
    font-size: 1.2em;
}

.clear-history-btn {
    background: linear-gradient(145deg, rgba(220, 20, 60, 0.8), rgba(178, 34, 34, 0.9));
    border: 2px solid rgba(220, 20, 60, 0.6);
    border-radius: 8px;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.clear-history-btn:hover {
    background: linear-gradient(145deg, rgba(178, 34, 34, 0.9), rgba(220, 20, 60, 0.8));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.4);
}

.recent-purchases-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.recent-purchases-list::-webkit-scrollbar {
    width: 8px;
}

.recent-purchases-list::-webkit-scrollbar-track {
    background: rgba(138, 43, 226, 0.1);
    border-radius: 4px;
}

.recent-purchases-list::-webkit-scrollbar-thumb {
    background: rgba(138, 43, 226, 0.4);
    border-radius: 4px;
}

.recent-purchases-list::-webkit-scrollbar-thumb:hover {
    background: rgba(138, 43, 226, 0.6);
}

.purchase-item {
    background: linear-gradient(145deg, rgba(20, 15, 40, 0.8), rgba(10, 5, 25, 0.9));
    border: 2px solid rgba(138, 43, 226, 0.4);
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.purchase-item:hover {
    border-color: rgba(138, 43, 226, 0.6);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(138, 43, 226, 0.3);
}

.purchase-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #8a2be2, #4b0082);
    transition: width 0.3s ease;
}

.purchase-item:hover::before {
    width: 8px;
}

.purchase-main-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.purchase-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(138, 43, 226, 0.3), rgba(75, 0, 130, 0.4));
    border: 2px solid rgba(138, 43, 226, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: #8a2be2;
    flex-shrink: 0;
}

.purchase-details {
    flex: 1;
}

.purchase-name {
    color: #e6e6e6;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.purchase-description {
    color: #cccccc;
    font-size: 0.9em;
    opacity: 0.8;
    margin-bottom: 0.2rem;
}

.purchase-timestamp {
    color: #8a2be2;
    font-size: 0.8em;
    font-weight: bold;
}

.purchase-cost-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}

.purchase-cost {
    color: #ff6b6b;
    font-size: 1.2em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.purchase-cost::before {
    content: '🪙';
    font-size: 0.8em;
}

.purchase-savings {
    background: linear-gradient(45deg, #4caf50, #45a049);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.purchase-type-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(138, 43, 226, 0.8);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.7em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.purchase-type-badge.pack {
    background: rgba(255, 107, 53, 0.8);
}

.purchase-type-badge.bundle {
    background: rgba(255, 215, 0, 0.8);
    color: #333;
}

.purchase-type-badge.limited {
    background: rgba(220, 20, 60, 0.8);
    animation: badgeGlow 2s ease-in-out infinite alternate;
}

@keyframes badgeGlow {
    0% {
        box-shadow: 0 0 5px rgba(220, 20, 60, 0.5);
    }
    100% {
        box-shadow: 0 0 15px rgba(220, 20, 60, 0.8);
    }
}

.no-recent-purchases {
    text-align: center;
    color: #999;
    font-size: 1.1em;
    padding: 3rem;
    background: rgba(138, 43, 226, 0.1);
    border-radius: 10px;
    border: 2px dashed rgba(138, 43, 226, 0.3);
    position: relative;
}

.no-recent-purchases::before {
    content: '🛒';
    font-size: 3em;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.purchase-items-preview {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.item-preview-chip {
    background: rgba(138, 43, 226, 0.2);
    border: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: 8px;
    padding: 0.2rem 0.5rem;
    font-size: 0.75em;
    color: #8a2be2;
    font-weight: bold;
}

/* Responsive Recent Purchases */
@media (max-width: 768px) {
    .recent-purchases-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .purchase-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .purchase-main-info {
        justify-content: center;
        text-align: center;
    }
    
    .purchase-cost-info {
        align-items: center;
    }
    
    .purchase-type-badge {
        position: static;
        align-self: center;
        margin-bottom: 0.5rem;
    }
}

/* Secret Shop Enhancements */
.secret-shop {
    background: radial-gradient(ellipse at center, rgba(75, 0, 130, 0.3) 0%, rgba(25, 0, 51, 0.8) 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.secret-shop::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: repeating-conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg 30deg,
        rgba(75, 0, 130, 0.1) 30deg 60deg,
        transparent 60deg 90deg,
        rgba(138, 43, 226, 0.1) 90deg 120deg
    );
    animation: secretShopRotate 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes secretShopRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.secret-shop .section-header {
    position: relative;
    z-index: 2;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    margin-bottom: 2rem;
    padding: 2rem;
    border: 2px solid rgba(138, 43, 226, 0.6);
}

.secret-shop .section-header h2 {
    color: #8a2be2;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 20px rgba(138, 43, 226, 0.6);
    animation: secretTitlePulse 3s ease-in-out infinite alternate;
    margin-bottom: 1rem;
}

@keyframes secretTitlePulse {
    0% {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 20px rgba(138, 43, 226, 0.6);
    }
    100% {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 30px rgba(138, 43, 226, 0.9);
    }
}

.secret-shop-timer {
    background: linear-gradient(145deg, rgba(75, 0, 130, 0.8), rgba(25, 0, 51, 0.9));
    border: 2px solid rgba(138, 43, 226, 0.6);
    border-radius: 25px;
    padding: 1rem 2rem;
    display: inline-block;
    color: #e6e6e6;
    font-size: 1.2em;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
    animation: timerGlow 2s ease-in-out infinite alternate;
}

@keyframes timerGlow {
    0% {
        box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
    }
    100% {
        box-shadow: 0 0 30px rgba(138, 43, 226, 0.7);
    }
}

.secret-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.secret-shop-item {
    background: linear-gradient(145deg, rgba(25, 15, 45, 0.95), rgba(75, 0, 130, 0.3));
    border: 3px solid transparent;
    background-clip: padding-box;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.3);
}

.secret-shop-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(138, 43, 226, 0.8) 0%,
        rgba(75, 0, 130, 0.8) 25%,
        rgba(138, 43, 226, 0.8) 50%,
        rgba(75, 0, 130, 0.8) 75%,
        rgba(138, 43, 226, 0.8) 100%
    );
    background-size: 400% 400%;
    animation: secretItemBorder 4s ease infinite;
    border-radius: 20px;
    z-index: -1;
}

@keyframes secretItemBorder {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.secret-shop-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 50px rgba(138, 43, 226, 0.5);
}

.secret-shop-item:hover::before {
    animation-duration: 1s;
}

.secret-item-rarity-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 2px;
    transform: rotate(15deg);
    animation: rarityBadgeFloat 3s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.secret-item-rarity-badge.legendary {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
}

.secret-item-rarity-badge.rare {
    background: linear-gradient(45deg, #8a2be2, #9932cc);
    color: white;
}

@keyframes rarityBadgeFloat {
    0%, 100% {
        transform: rotate(15deg) translateY(0px);
    }
    50% {
        transform: rotate(15deg) translateY(-5px);
    }
}

.secret-item-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.secret-item-icon {
    font-size: 4em;
    margin-bottom: 1rem;
    display: block;
    animation: secretIconFloat 4s ease-in-out infinite;
}

@keyframes secretIconFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(5deg);
    }
    75% {
        transform: translateY(-5px) rotate(-3deg);
    }
}

.secret-item-name {
    color: #ffd700;
    font-size: 1.6em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 0.5rem;
    animation: secretTextGlow 2s ease-in-out infinite alternate;
}

@keyframes secretTextGlow {
    0% {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 215, 0, 0.3);
    }
    100% {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.6);
    }
}

.secret-item-description {
    color: #e6e6e6;
    font-size: 1em;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    opacity: 0.9;
}

.secret-item-stats {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.secret-stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #cccccc;
    font-size: 0.95em;
}

.secret-stat-label {
    opacity: 0.8;
}

.secret-stat-value {
    color: #8a2be2;
    font-weight: bold;
}

.secret-item-pricing {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 2px solid rgba(138, 43, 226, 0.4);
}

.secret-item-cost {
    color: #ff6b6b;
    font-size: 1.8em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.secret-item-cost::before {
    content: '🪙';
    font-size: 0.7em;
}

.secret-purchase-btn {
    width: 100%;
    padding: 1.2rem 2rem;
    background: linear-gradient(145deg, #8a2be2, #4b0082);
    border: 3px solid rgba(138, 43, 226, 0.6);
    border-radius: 15px;
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.secret-purchase-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.8s ease, height 0.8s ease;
}

.secret-purchase-btn:hover {
    background: linear-gradient(145deg, #9932cc, #8a2be2);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.6);
    border-color: rgba(138, 43, 226, 0.8);
}

.secret-purchase-btn:hover::before {
    width: 400px;
    height: 400px;
}

.secret-purchase-btn:disabled {
    background: linear-gradient(145deg, #666, #444);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    border-color: #666;
}

.secret-close-btn {
    display: block;
    margin: 2rem auto;
    padding: 1rem 3rem;
    background: linear-gradient(145deg, rgba(220, 20, 60, 0.8), rgba(139, 69, 19, 0.8));
    border: 2px solid rgba(220, 20, 60, 0.6);
    border-radius: 25px;
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 10;
}

.secret-close-btn:hover {
    background: linear-gradient(145deg, rgba(139, 69, 19, 0.8), rgba(220, 20, 60, 0.8));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.4);
}

.no-secret-items {
    text-align: center;
    color: #999;
    font-size: 1.3em;
    padding: 4rem;
    background: rgba(138, 43, 226, 0.1);
    border-radius: 15px;
    border: 2px dashed rgba(138, 43, 226, 0.3);
    position: relative;
    z-index: 2;
}

.no-secret-items::before {
    content: '🔮';
    font-size: 4em;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.6;
    animation: mysticalOrb 3s ease-in-out infinite;
}

@keyframes mysticalOrb {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1) rotate(180deg);
        opacity: 0.8;
    }
}

/* Secret Shop Discovery Animation */
.secret-shop-discovered {
    animation: secretDiscovery 1s ease-out;
}

@keyframes secretDiscovery {
    0% {
        opacity: 0;
        transform: scale(0.8);
        filter: blur(10px);
    }
    50% {
        filter: blur(0px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0px);
    }
}

/* Responsive Secret Shop */
@media (max-width: 768px) {
    .secret-items-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .secret-shop-item {
        padding: 1.5rem;
    }
    
    .secret-item-name {
        font-size: 1.3em;
    }
    
    .secret-item-cost {
        font-size: 1.5em;
    }
    
    .secret-shop .section-header h2 {
        font-size: 2em;
    }
}

/* Responsive Bundle Layout */
@media (max-width: 768px) {
    .bundle-item {
        padding: 1.5rem;
        min-height: 350px;
    }
    
    .bundle-title {
        font-size: 1.5em;
    }
    
    .bundle-pricing {
        flex-direction: column;
        gap: 1rem;
    }
    
    .bundle-pack-list {
        justify-content: center;
    }
}

/* Yu-Gi-Oh Inspired Shop Layout */
body #screen-shop.active .shop-main-container {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    width: 100vw !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Shop Navigation Tabs - Yu-Gi-Oh Style */
body #screen-shop.active .shop-nav-tabs {
    display: flex !important;
    gap: 0 !important;
    padding: 1rem 2rem 0 2rem !important;
    background: rgba(0, 0, 0, 0.3) !important;
    position: relative !important;
    z-index: 10 !important;
    margin-bottom: 0 !important;
}

body #screen-shop.active .shop-tab {
    background: linear-gradient(145deg, rgba(40, 40, 40, 0.8), rgba(20, 20, 20, 0.9)) !important;
    border: 2px solid rgba(60, 60, 60, 0.6) !important;
    color: #999999 !important;
    padding: 1rem 2rem !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border-bottom: none !important;
    border-radius: 12px 12px 0 0 !important;
    position: relative !important;
    margin-bottom: -2px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

body #screen-shop.active .shop-tab.active {
    background: linear-gradient(145deg, rgba(156, 39, 176, 0.4), rgba(233, 30, 99, 0.3)) !important;
    border-color: rgba(156, 39, 176, 0.8) !important;
    color: #e1bee7 !important;
    z-index: 11 !important;
    box-shadow: 0 -4px 8px rgba(156, 39, 176, 0.4) !important;
}

body #screen-shop.active .shop-tab:hover:not(.active) {
    background: linear-gradient(145deg, rgba(60, 60, 60, 0.8), rgba(40, 40, 40, 0.9)) !important;
    border-color: rgba(80, 80, 80, 0.8) !important;
    color: #cccccc !important;
}

/* Main Shop Content Area */
body #screen-shop.active .shop-content-area {
    flex: 1 !important;
    background: linear-gradient(145deg, rgba(20, 10, 25, 0.95), rgba(30, 15, 35, 0.9)) !important;
    border: 2px solid rgba(156, 39, 176, 0.4) !important;
    border-top: none !important;
    padding: 2rem !important;
    overflow-y: auto !important;
    position: relative !important;
    z-index: 5 !important;
}

/* Featured Pack Banner System */
body #screen-shop.active .featured-pack-banner {
    background: linear-gradient(135deg, rgba(35, 15, 45, 0.95), rgba(45, 25, 55, 0.9)) !important;
    border: 3px solid rgba(156, 39, 176, 0.6) !important;
    border-radius: 16px !important;
    padding: 0 !important;
    margin-bottom: 2rem !important;
    height: 280px !important;
    display: flex !important;
    overflow: hidden !important;
    position: relative !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(156, 39, 176, 0.3) !important;
}

body #screen-shop.active .featured-pack-artwork {
    flex: 1.5 !important;
    background: linear-gradient(45deg, #9c27b0, #e91e63, #ba68c8) !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body #screen-shop.active .featured-pack-artwork::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%) !important;
    animation: artworkShimmer 3s ease-in-out infinite alternate !important;
}

@keyframes artworkShimmer {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.6; transform: scale(1.05); }
}

body #screen-shop.active .featured-pack-info {
    flex: 1 !important;
    padding: 2rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    background: linear-gradient(135deg, rgba(25, 10, 35, 0.9), rgba(35, 15, 45, 0.9)) !important;
}

/* Pack Timer/Countdown System */
body #screen-shop.active .pack-timer {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    background: linear-gradient(45deg, rgba(220, 20, 60, 0.8), rgba(255, 69, 0, 0.8)) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 20px !important;
    color: white !important;
    font-size: 0.9rem !important;
    font-weight: bold !important;
    margin-bottom: 1rem !important;
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.4) !important;
    animation: timerPulse 2s ease-in-out infinite !important;
}

@keyframes timerPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(220, 20, 60, 0.4);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 4px 12px rgba(220, 20, 60, 0.6);
    }
}

body #screen-shop.active .pack-timer-icon {
    font-size: 1rem !important;
    animation: timerTick 1s ease-in-out infinite !important;
}

@keyframes timerTick {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(10deg); }
}

body #screen-shop.active .pack-timer-text {
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

body #screen-shop.active .featured-pack-title {
    font-size: 2rem !important;
    font-weight: bold !important;
    color: #e1bee7 !important;
    margin-bottom: 1rem !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

body #screen-shop.active .featured-pack-description {
    color: #cccccc !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
    flex: 1 !important;
}

/* Featured Pack Purchase Section */
body #screen-shop.active .featured-pack-purchase {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: rgba(0, 0, 0, 0.4) !important;
    padding: 1.5rem !important;
    border-radius: 12px !important;
    border: 1px solid rgba(70, 130, 180, 0.3) !important;
    margin-top: 1rem !important;
}

body #screen-shop.active .featured-pack-price {
    display: flex !important;
    align-items: center !important;
    gap: 0.8rem !important;
    font-size: 1.8rem !important;
    font-weight: bold !important;
    color: #e1bee7 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
}

body #screen-shop.active .featured-pack-currency {
    font-size: 1.2rem !important;
    color: #ffd700 !important;
}

body #screen-shop.active .featured-pack-buy-btn {
    background: linear-gradient(45deg, #7b1fa2, #9c27b0) !important;
    border: 2px solid #e1bee7 !important;
    color: white !important;
    padding: 1rem 2.5rem !important;
    border-radius: 25px !important;
    font-size: 1.2rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.5) !important;
}

body #screen-shop.active .featured-pack-buy-btn:hover {
    background: linear-gradient(45deg, #9c27b0, #ba68c8) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 6px 16px rgba(156, 39, 176, 0.7) !important;
}

body #screen-shop.active .featured-pack-cards-preview {
    position: absolute !important;
    right: 2rem !important;
    top: 2rem !important;
    display: flex !important;
    gap: 8px !important;
    z-index: 10 !important;
}

body #screen-shop.active .preview-card {
    width: 60px !important;
    height: 84px !important;
    background: linear-gradient(145deg, rgba(60, 40, 70, 0.9), rgba(40, 20, 50, 0.9)) !important;
    border: 2px solid rgba(186, 104, 200, 0.6) !important;
    border-radius: 8px !important;
    backdrop-filter: blur(5px) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6) !important;
}

body #screen-shop.active .preview-card:hover {
    transform: translateY(-4px) scale(1.05) !important;
    border-color: rgba(186, 104, 200, 1) !important;
    box-shadow: 0 8px 20px rgba(186, 104, 200, 0.4) !important;
}

/* Pack Grid - Smaller Cards Below Featured */
body #screen-shop.active .shop-items-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 1.5rem !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative;
    z-index: 3;
    width: 100% !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    justify-items: center !important;
}

/* Smaller Pack Cards - Site Color Scheme */
body #screen-shop.active .shop-item {
    background: 
        linear-gradient(145deg, rgba(35, 15, 45, 0.9) 0%, rgba(25, 10, 35, 0.95) 100%) !important;
    border: 2px solid rgba(156, 39, 176, 0.5) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    text-align: center !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    backdrop-filter: blur(8px) !important;
    min-height: 320px !important;
    max-width: 280px !important;
    width: 100% !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10 !important;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.7),
        0 0 15px rgba(156, 39, 176, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.shop-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #4a90e2, #9046e2, #e24a90, #90e246);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shop-item:hover::before {
    opacity: 1;
    animation: borderGlow 2s ease-in-out infinite alternate;
}

body #screen-shop.active .shop-item:hover {
    transform: translateY(-8px) scale(1.02) !important;
    border-color: rgba(156, 39, 176, 0.8) !important;
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.8),
        0 0 25px rgba(156, 39, 176, 0.5),
        0 0 50px rgba(156, 39, 176, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    animation: packCardGlow 2s ease-in-out infinite alternate !important;
}

@keyframes packCardGlow {
    0% { 
        filter: brightness(1);
        box-shadow: 
            0 12px 32px rgba(0, 0, 0, 0.8),
            0 0 25px rgba(156, 39, 176, 0.5),
            0 0 50px rgba(156, 39, 176, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    100% { 
        filter: brightness(1.1);
        box-shadow: 
            0 16px 40px rgba(0, 0, 0, 0.9),
            0 0 35px rgba(156, 39, 176, 0.6),
            0 0 70px rgba(156, 39, 176, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}

body #screen-shop.active .shop-item h3 {
    color: #888888 !important;
    font-size: 1.8rem !important;
    margin-bottom: 1.5rem !important;
    font-weight: 600 !important;
    font-family: 'Times New Roman', serif !important;
    background: linear-gradient(45deg, #606060, #808080, #606060) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(96, 96, 96, 0.2) !important;
    z-index: 100 !important;
    position: relative !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.5px !important;
}

body #screen-shop.active .shop-item-description,
body #screen-shop.active .shop-item .shop-item-description,
body #screen-shop.active .shop-item p {
    color: #999999 !important;
    margin-bottom: 2rem !important;
    line-height: 1.7 !important;
    font-size: 1.1rem !important;
    font-family: 'Times New Roman', serif !important;
    z-index: 100 !important;
    position: relative !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 1 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
    font-style: italic !important;
    font-weight: 400 !important;
    padding: 0 0.5rem !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(153, 153, 153, 0.2) !important;
}

body #screen-shop.active .shop-item-cost,
body #screen-shop.active .shop-item .shop-item-cost {
    font-size: 1.6rem !important;
    color: #aaaaaa !important;
    font-weight: 800 !important;
    margin-bottom: 2rem !important;
    text-shadow: 0 2px 8px rgba(170, 170, 170, 0.4) !important;
    z-index: 100 !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 12px 20px !important;
    background: linear-gradient(45deg, rgba(60, 60, 60, 0.3), rgba(80, 80, 80, 0.3)) !important;
    border: 2px solid rgba(100, 100, 100, 0.4) !important;
    border-radius: 16px !important;
    backdrop-filter: blur(5px) !important;
}

/* Enhanced Buy Button Container */
body #screen-shop.active .buy-button-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.8rem !important;
    width: 100% !important;
    align-items: center !important;
    margin-top: 1rem !important;
}

body #screen-shop.active .buy-button {
    background: linear-gradient(45deg, #333333, #555555) !important;
    border: 2px solid #666666 !important;
    color: #cccccc !important;
    padding: 14px 32px !important;
    border-radius: 12px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    font-family: 'Times New Roman', serif !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(120, 120, 120, 0.2) !important;
    z-index: 100 !important;
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 180px !important;
    margin: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

/* Quick Buy Button */
body #screen-shop.active .quick-buy-button {
    background: linear-gradient(45deg, #7b1fa2, #9c27b0) !important;
    border: 2px solid #ba68c8 !important;
    color: #ffffff !important;
    padding: 10px 24px !important;
    border-radius: 10px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    font-family: 'Times New Roman', serif !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
    box-shadow: 
        0 4px 12px rgba(156, 39, 176, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    z-index: 100 !important;
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 140px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

body #screen-shop.active .quick-buy-button:hover {
    background: linear-gradient(45deg, #9c27b0, #ba68c8) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 
        0 6px 16px rgba(156, 39, 176, 0.5),
        0 0 15px rgba(156, 39, 176, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

body #screen-shop.active .buy-button:hover {
    background: linear-gradient(45deg, #555555, #777777) !important;
    border-color: #888888 !important;
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.7),
        0 0 15px rgba(120, 120, 120, 0.3),
        inset 0 1px 0 rgba(150, 150, 150, 0.3) !important;
}

body #screen-shop.active .buy-button::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
    transition: left 0.6s ease !important;
}

body #screen-shop.active .buy-button:hover::before {
    left: 100% !important;
}

/* Enhanced Pack Quantity Selectors - Site Colors */
body #screen-shop.active .pack-quantity-selector {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    margin: 1.5rem 0 !important;
    z-index: 10 !important;
    position: relative !important;
    background: linear-gradient(45deg, rgba(74, 20, 140, 0.4), rgba(123, 31, 162, 0.3)) !important;
    padding: 12px 20px !important;
    border-radius: 16px !important;
    border: 2px solid rgba(156, 39, 176, 0.6) !important;
    max-width: 180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(5px) !important;
}

body #screen-shop.active .pack-quantity-btn {
    background: linear-gradient(45deg, #4a148c, #6a1b9a) !important;
    border: 2px solid #ba68c8 !important;
    color: #ffffff !important;
    padding: 8px 16px !important;
    border-radius: 10px !important;
    font-size: 1.2rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    min-width: 40px !important;
    min-height: 40px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7) !important;
    box-shadow: 0 2px 8px rgba(74, 20, 140, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body #screen-shop.active .pack-quantity-btn:hover {
    background: linear-gradient(45deg, #6a1b9a, #8e24aa) !important;
    transform: scale(1.1) translateY(-2px) !important;
    border-color: #e1bee7 !important;
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.5) !important;
}

body #screen-shop.active .pack-quantity-input {
    background: rgba(25, 10, 35, 0.95) !important;
    border: 2px solid rgba(156, 39, 176, 0.7) !important;
    color: #e1bee7 !important;
    padding: 8px 12px !important;
    border-radius: 10px !important;
    font-size: 1.2rem !important;
    font-weight: bold !important;
    text-align: center !important;
    width: 60px !important;
    height: 40px !important;
    font-family: 'Times New Roman', serif !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

/* Pack Icons - Site Color Scheme */
body #screen-shop.active .shop-item-icon {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto 1.5rem auto !important;
    border-radius: 12px !important;
    background: 
        radial-gradient(circle at 30% 30%, rgba(156, 39, 176, 0.8) 0%, transparent 60%),
        linear-gradient(45deg, #4a148c, #7b1fa2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 2.2rem !important;
    color: #f3e5f5 !important;
    border: 2px solid #ba68c8 !important;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.6),
        0 0 15px rgba(156, 39, 176, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(2px) !important;
}

body #screen-shop.active .shop-item:hover .shop-item-icon {
    transform: scale(1.1) rotate(2deg) !important;
    box-shadow: 
        0 8px 20px rgba(156, 39, 176, 0.6),
        0 0 20px rgba(186, 104, 200, 0.5),
        0 0 40px rgba(186, 104, 200, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    border-color: #e1bee7 !important;
    filter: brightness(1.15) !important;
}

body #screen-shop.active .pack-icon.starter {
    background: 
        radial-gradient(circle at 30% 30%, rgba(76, 175, 80, 0.8) 0%, transparent 60%),
        linear-gradient(45deg, #388e3c, #66bb6a) !important;
    border-color: #66bb6a !important;
}

body #screen-shop.active .pack-icon.rare {
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 152, 0, 0.8) 0%, transparent 60%),
        linear-gradient(45deg, #f57c00, #ffb74d) !important;
    border-color: #ffb74d !important;
}

body #screen-shop.active .pack-icon.legendary {
    background: 
        radial-gradient(circle at 30% 30%, rgba(156, 39, 176, 0.8) 0%, transparent 60%),
        linear-gradient(45deg, #7b1fa2, #ba68c8) !important;
    border-color: #ba68c8 !important;
}

body #screen-shop.active .pack-icon.birdwell {
    background: 
        radial-gradient(circle at 30% 30%, rgba(33, 150, 243, 0.8) 0%, transparent 60%),
        linear-gradient(45deg, #1976d2, #64b5f6) !important;
    border-color: #64b5f6 !important;
}

body #screen-shop.active .pack-icon.basement {
    background: 
        radial-gradient(circle at 30% 30%, rgba(121, 85, 72, 0.8) 0%, transparent 60%),
        linear-gradient(45deg, #5d4037, #a1887f) !important;
    border-color: #a1887f !important;
}

/* NEW Badge and Promotional Indicators */
body #screen-shop.active .new-badge {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    background: linear-gradient(45deg, #ff4444, #ff6666) !important;
    color: white !important;
    padding: 0.3rem 0.8rem !important;
    border-radius: 15px !important;
    font-size: 0.7rem !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    z-index: 100 !important;
    animation: newBadgePulse 2s ease-in-out infinite !important;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4) !important;
}

@keyframes newBadgePulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(255, 68, 68, 0.6);
    }
}

body #screen-shop.active .featured-new-badge {
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    background: linear-gradient(45deg, #ff4444, #ff6666) !important;
    color: white !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 20px !important;
    font-size: 0.9rem !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    z-index: 101 !important;
    animation: featuredNewPulse 2.5s ease-in-out infinite !important;
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.5) !important;
}

@keyframes featuredNewPulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        box-shadow: 0 4px 12px rgba(255, 68, 68, 0.5);
    }
    50% { 
        transform: scale(1.08) rotate(1deg);
        box-shadow: 0 6px 16px rgba(255, 68, 68, 0.7);
    }
}

body #screen-shop.active .limited-badge {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background: linear-gradient(45deg, #9c27b0, #e91e63) !important;
    color: white !important;
    padding: 0.3rem 0.8rem !important;
    border-radius: 15px !important;
    font-size: 0.7rem !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    z-index: 100 !important;
    animation: limitedGlow 3s ease-in-out infinite !important;
    box-shadow: 0 2px 8px rgba(156, 39, 176, 0.4) !important;
}

@keyframes limitedGlow {
    0%, 100% { 
        background: linear-gradient(45deg, #9c27b0, #e91e63);
        box-shadow: 0 2px 8px rgba(156, 39, 176, 0.4);
    }
    50% { 
        background: linear-gradient(45deg, #ba68c8, #f06292);
        box-shadow: 0 4px 12px rgba(156, 39, 176, 0.6);
    }
}

body #screen-shop.active .hot-badge {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background: linear-gradient(45deg, #ff5722, #ff9800) !important;
    color: white !important;
    padding: 0.3rem 0.8rem !important;
    border-radius: 15px !important;
    font-size: 0.7rem !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    z-index: 100 !important;
    animation: hotFlame 2s ease-in-out infinite alternate !important;
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.4) !important;
}

@keyframes hotFlame {
    0% { 
        transform: scale(1);
        filter: brightness(1);
        box-shadow: 0 2px 8px rgba(255, 87, 34, 0.4);
    }
    100% { 
        transform: scale(1.05);
        filter: brightness(1.2);
        box-shadow: 0 4px 12px rgba(255, 87, 34, 0.6);
    }
}

/* Special Offer Banner for Featured Packs */
body #screen-shop.active .special-offer-banner {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    background: linear-gradient(135deg, #ff6b35, #f7931e) !important;
    color: white !important;
    padding: 0.8rem 2rem !important;
    border-radius: 0 16px 0 16px !important;
    font-size: 1rem !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    z-index: 102 !important;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.5) !important;
    animation: offerShine 4s ease-in-out infinite !important;
}

@keyframes offerShine {
    0%, 100% { 
        background: linear-gradient(135deg, #ff6b35, #f7931e);
        transform: scale(1);
    }
    50% { 
        background: linear-gradient(135deg, #ff8a65, #ffb74d);
        transform: scale(1.02);
    }
}

/* Enhanced Pack Quantity and Purchase Controls */
body #screen-shop.active .shop-item-cost,
body #screen-shop.active .shop-item .shop-item-cost {
    font-size: 1.4rem !important;
    color: #e1bee7 !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8) !important;
    z-index: 100 !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 10px 16px !important;
    background: linear-gradient(45deg, rgba(35, 15, 45, 0.8), rgba(45, 25, 55, 0.8)) !important;
    border: 2px solid rgba(186, 104, 200, 0.5) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(5px) !important;
    gap: 0.5rem !important;
}

body #screen-shop.active .shop-item h3 {
    color: #e1bee7 !important;
    font-size: 1.4rem !important;
    margin-bottom: 1rem !important;
    font-weight: 600 !important;
    font-family: 'Times New Roman', serif !important;
    background: linear-gradient(45deg, #e1bee7, #f3e5f5, #e1bee7) !important;
    background-size: 200% 200% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: none !important;
    z-index: 100 !important;
    position: relative !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.5px !important;
    animation: titleShimmer 3s ease-in-out infinite alternate !important;
}

body #screen-shop.active .shop-item-description,
body #screen-shop.active .shop-item .shop-item-description,
body #screen-shop.active .shop-item p {
    color: #d1c4e9 !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.6 !important;
    font-size: 1rem !important;
    font-family: 'Times New Roman', serif !important;
    z-index: 100 !important;
    position: relative !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 1 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
    font-style: italic !important;
    font-weight: 400 !important;
    padding: 0.8rem !important;
    background: rgba(25, 10, 35, 0.3) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(186, 104, 200, 0.3) !important;
}

/* Add pack icon content */
body #screen-shop.active .pack-icon.starter::before {
    content: "📦";
}

body #screen-shop.active .pack-icon.rare::before {
    content: "💎";
}

body #screen-shop.active .pack-icon.legendary::before {
    content: "⭐";
}

body #screen-shop.active .pack-icon.birdwell::before {
    content: "🐦";
}

body #screen-shop.active .pack-icon.basement::before {
    content: "🏠";
}

/* What's Inside Preview Tooltip */
body #screen-shop.active .whats-inside-tooltip {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, #9c27b0, #e91e63);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    color: white;
    font-weight: bold;
    z-index: 101;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

body #screen-shop.active .whats-inside-tooltip:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.4);
}

body #screen-shop.active .whats-inside-tooltip::before {
    content: "?";
}

/* Tooltip Content */
body #screen-shop.active .tooltip-content {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.95), rgba(20, 20, 20, 0.95));
    border: 2px solid rgba(156, 39, 176, 0.6);
    border-radius: 12px;
    padding: 1rem;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 102;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

body #screen-shop.active .whats-inside-tooltip:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

body #screen-shop.active .tooltip-content h4 {
    color: #e91e63;
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    font-weight: bold;
}

body #screen-shop.active .tooltip-content .rarity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

body #screen-shop.active .tooltip-content .rarity-item {
    display: flex;
    justify-content: space-between;
    margin: 0.3rem 0;
    font-size: 0.8rem;
    color: #cccccc;
}

body #screen-shop.active .tooltip-content .rarity-common {
    color: #ffffff;
}

body #screen-shop.active .tooltip-content .rarity-uncommon {
    color: #4caf50;
}

body #screen-shop.active .tooltip-content .rarity-rare {
    color: #2196f3;
}

body #screen-shop.active .tooltip-content .rarity-epic {
    color: #9c27b0;
}

body #screen-shop.active .tooltip-content .rarity-legendary {
    color: #ff9800;
}

/* Total Cost Display */
body #screen-shop.active .total-cost-display {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(145deg, rgba(25, 10, 35, 0.95), rgba(35, 15, 45, 0.9));
    border: 2px solid rgba(156, 39, 176, 0.6);
    border-radius: 16px;
    padding: 1.5rem;
    min-width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

body #screen-shop.active .total-cost-display.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

body #screen-shop.active .total-cost-display h3 {
    color: #e1bee7;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    text-align: center;
}

body #screen-shop.active .cost-breakdown {
    margin-bottom: 1rem;
}

body #screen-shop.active .cost-item {
    display: flex;
    justify-content: space-between;
    margin: 0.5rem 0;
    color: #cccccc;
    font-size: 0.95rem;
}

body #screen-shop.active .total-amount {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 2px solid rgba(156, 39, 176, 0.4);
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffd700;
}

body #screen-shop.active .checkout-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

body #screen-shop.active .checkout-btn, .clear-cart-btn {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

body #screen-shop.active .checkout-btn {
    background: linear-gradient(45deg, #4caf50, #66bb6a);
    color: white;
}

body #screen-shop.active .clear-cart-btn {
    background: linear-gradient(45deg, #f44336, #ef5350);
    color: white;
}

body #screen-shop.active .checkout-btn:hover, .clear-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Multi-Pack Discount System */
body #screen-shop.active .discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 102;
    animation: discountPulse 2s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes discountPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(231, 76, 60, 0.6);
    }
}

body #screen-shop.active .discount-info {
    background: linear-gradient(45deg, rgba(46, 125, 50, 0.2), rgba(76, 175, 80, 0.2));
    border: 1px solid rgba(76, 175, 80, 0.4);
    border-radius: 8px;
    padding: 0.5rem;
    margin: 0.5rem 0;
    font-size: 0.85rem;
    color: #81c784;
    text-align: center;
    font-style: italic;
}

/* Enhanced Shadow Emporium Atmosphere */
body #screen-shop.active {
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(15, 5, 25, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(25, 5, 15, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 40%, rgba(5, 5, 35, 0.4) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0a 0%, #111118 25%, #151520 50%, #111118 75%, #0a0a0a 100%) !important;
    position: relative;
}

body #screen-shop.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(2px 2px at 20px 30px, rgba(60, 60, 80, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(40, 40, 60, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(70, 70, 90, 0.25), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(50, 50, 70, 0.2), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(30, 30, 50, 0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: mysticalParticles 120s linear infinite;
    pointer-events: none;
    opacity: 0.4;
    z-index: 1;
}

body #screen-shop.active::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(139, 69, 19, 0.05) 60deg, transparent 120deg),
        radial-gradient(circle at 25% 75%, rgba(75, 0, 130, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 25%, rgba(139, 0, 139, 0.1) 0%, transparent 50%);
    animation: atmosphericFlow 180s linear infinite;
    pointer-events: none;
    opacity: 0.3;
    z-index: 1;
}

@keyframes atmosphericFlow {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Enhanced Mystical Particles */
@keyframes mysticalParticles {
    0% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-50px) translateX(10px); }
    50% { transform: translateY(-100px) translateX(-5px); }
    75% { transform: translateY(-150px) translateX(15px); }
    100% { transform: translateY(-200px) translateX(0); }
}

/* Shadow Emporium Title Enhancement */
body #screen-shop.active .shop-content-column h2 {
    text-align: center !important;
    font-size: 3.2rem !important;
    font-family: 'Times New Roman', serif !important;
    background: linear-gradient(45deg, #606060, #909090, #606060, #a0a0a0) !important;
    background-size: 400% 400% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    margin-bottom: 1rem !important;
    text-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.9),
        0 0 30px rgba(96, 96, 96, 0.4),
        0 0 60px rgba(160, 160, 160, 0.2) !important;
    position: relative;
    z-index: 3;
    font-weight: 700 !important;
    letter-spacing: 3px !important;
    animation: titleShimmer 4s ease-in-out infinite alternate !important;
}

@keyframes titleShimmer {
    0% { 
        background-position: 0% 50%;
        filter: brightness(1);
    }
    100% { 
        background-position: 100% 50%;
        filter: brightness(1.2);
    }
}

body #screen-shop.active .shop-content-column h2::after {
    content: '"Welcome, traveler, to the Shadow Emporium"' !important;
    display: block !important;
    font-size: 1.1rem !important;
    font-style: italic !important;
    color: #888888 !important;
    font-weight: 400 !important;
    margin-top: 0.8rem !important;
    letter-spacing: 1.5px !important;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.9) !important;
    background: none !important;
    -webkit-text-fill-color: unset !important;
    animation: subtitleGlow 3s ease-in-out infinite alternate !important;
}

@keyframes subtitleGlow {
    0% { 
        color: #888888;
        text-shadow: 0 3px 6px rgba(0, 0, 0, 0.9);
    }
    100% { 
        color: #aaaaaa;
        text-shadow: 0 3px 6px rgba(0, 0, 0, 0.9), 0 0 20px rgba(170, 170, 170, 0.3);
    }
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shopItemGlow {
    0% { 
        filter: brightness(1) contrast(1);
        box-shadow: 
            0 25px 50px rgba(218, 165, 32, 0.4),
            0 0 40px rgba(255, 215, 0, 0.3),
            0 0 80px rgba(255, 215, 0, 0.1),
            inset 0 2px 0 rgba(255, 255, 255, 0.25);
    }
    100% { 
        filter: brightness(1.1) contrast(1.1);
        box-shadow: 
            0 30px 60px rgba(218, 165, 32, 0.5),
            0 0 50px rgba(255, 215, 0, 0.4),
            0 0 100px rgba(255, 215, 0, 0.15),
            inset 0 2px 0 rgba(255, 255, 255, 0.3);
    }
}

/* Enhanced Pack Card Interactions */
body #screen-shop.active .shop-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

body #screen-shop.active .shop-item:hover::after {
    transform: translateX(100%);
}

/* ===== CORRECTED CSS FOR EXISTING HTML STRUCTURE ===== */

/* Main Shop Screen - Override all previous styles */
#screen-shop.active {
    background: linear-gradient(135deg, rgba(35, 15, 45, 0.9), rgba(25, 10, 35, 0.95)) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 20 !important;
    overflow-y: auto !important;
    border: none !important;
    border-radius: 0 !important;
    transform: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Shop Layout Container */
#screen-shop.active .shop-layout {
    display: flex !important;
    height: 100vh !important;
    background: transparent !important;
    width: 100% !important;
}

/* Hide Shopkeeper for cleaner look */
#screen-shop.active #shopkeeper-container {
    display: none !important;
}

/* Shop Content Column */
#screen-shop.active .shop-content-column {
    flex: 1 !important;
    padding: 2rem !important;
    overflow-y: auto !important;
    width: 100% !important;
    background: transparent !important;
}

/* Shop Title - Purple Theme */
#screen-shop.active .shop-content-column h2 {
    text-align: center !important;
    font-size: 3.2rem !important;
    font-family: 'Times New Roman', serif !important;
    background: linear-gradient(45deg, #e1bee7, #f3e5f5, #e1bee7, #d1c4e9) !important;
    background-size: 400% 400% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    margin-bottom: 2rem !important;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8) !important;
    animation: titleShimmer 4s ease-in-out infinite alternate !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
}

/* Shop Items Container - Grid Layout */
#screen-shop.active .shop-items-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 2rem !important;
    padding: 0 !important;
    margin: 0 auto !important;
    max-width: 1400px !important;
    justify-items: center !important;
    width: 100% !important;
}

/* Individual Shop Items - Purple Theme */
#screen-shop.active .shop-item {
    background: linear-gradient(145deg, rgba(45, 25, 55, 0.9), rgba(35, 15, 45, 0.95)) !important;
    border: 3px solid rgba(156, 39, 176, 0.6) !important;
    border-radius: 20px !important;
    padding: 2rem !important;
    text-align: center !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    backdrop-filter: blur(12px) !important;
    min-height: 450px !important;
    max-width: 340px !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.8),
        0 0 25px rgba(156, 39, 176, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.1) !important;
}

/* Shop Item Hover Effects */
#screen-shop.active .shop-item:hover {
    transform: translateY(-12px) scale(1.03) !important;
    border-color: rgba(156, 39, 176, 0.9) !important;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.9),
        0 0 40px rgba(156, 39, 176, 0.6),
        0 0 80px rgba(156, 39, 176, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.2) !important;
    animation: packCardGlow 2s ease-in-out infinite alternate !important;
}

/* Pack Icons - Enhanced Purple Theme */
#screen-shop.active .shop-item-icon {
    width: 120px !important;
    height: 120px !important;
    margin: 0 auto 2rem auto !important;
    border-radius: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 3rem !important;
    color: #f3e5f5 !important;
    border: 3px solid rgba(186, 104, 200, 0.8) !important;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.7),
        0 0 25px rgba(156, 39, 176, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.25) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(3px) !important;
}

/* Pack Icon Hover */
#screen-shop.active .shop-item:hover .shop-item-icon {
    transform: scale(1.15) rotate(3deg) !important;
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.8),
        0 0 35px rgba(186, 104, 200, 0.7),
        0 0 70px rgba(186, 104, 200, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.3) !important;
    filter: brightness(1.2) !important;
}

/* Pack Titles - Purple Theme */
#screen-shop.active .shop-item h3 {
    color: #e1bee7 !important;
    font-size: 1.6rem !important;
    margin-bottom: 1.5rem !important;
    font-weight: 600 !important;
    font-family: 'Times New Roman', serif !important;
    background: linear-gradient(45deg, #e1bee7, #f3e5f5, #e1bee7) !important;
    background-size: 200% 200% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: titleShimmer 3s ease-in-out infinite alternate !important;
    letter-spacing: 1px !important;
}

/* Pack Descriptions - Purple Theme */
#screen-shop.active .shop-item-description {
    color: #d1c4e9 !important;
    margin-bottom: 2rem !important;
    line-height: 1.7 !important;
    font-size: 1.1rem !important;
    font-family: 'Times New Roman', serif !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
    font-style: italic !important;
    padding: 1rem !important;
    background: rgba(35, 15, 45, 0.4) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(186, 104, 200, 0.3) !important;
    flex: 1 !important;
}

/* Pack Cost - Purple Theme */
#screen-shop.active .shop-item-cost {
    font-size: 1.6rem !important;
    color: #e1bee7 !important;
    font-weight: 700 !important;
    margin-bottom: 2rem !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 20px !important;
    background: linear-gradient(45deg, rgba(45, 25, 55, 0.8), rgba(55, 35, 65, 0.8)) !important;
    border: 2px solid rgba(186, 104, 200, 0.6) !important;
    border-radius: 16px !important;
    backdrop-filter: blur(8px) !important;
    gap: 0.5rem !important;
}

/* Quantity Selectors - Purple Theme */
#screen-shop.active .pack-quantity-selector {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    margin: 1.5rem 0 !important;
    background: linear-gradient(45deg, rgba(74, 20, 140, 0.5), rgba(123, 31, 162, 0.4)) !important;
    padding: 12px 20px !important;
    border-radius: 16px !important;
    border: 2px solid rgba(156, 39, 176, 0.7) !important;
    max-width: 200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(8px) !important;
}

#screen-shop.active .pack-quantity-btn {
    background: linear-gradient(45deg, #4a148c, #6a1b9a) !important;
    border: 2px solid #ba68c8 !important;
    color: #ffffff !important;
    padding: 10px 16px !important;
    border-radius: 12px !important;
    font-size: 1.3rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    min-width: 45px !important;
    min-height: 45px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7) !important;
    box-shadow: 0 3px 10px rgba(74, 20, 140, 0.5) !important;
}

#screen-shop.active .pack-quantity-btn:hover {
    background: linear-gradient(45deg, #6a1b9a, #8e24aa) !important;
    transform: scale(1.1) translateY(-2px) !important;
    border-color: #e1bee7 !important;
    box-shadow: 0 5px 15px rgba(156, 39, 176, 0.6) !important;
}

#screen-shop.active .pack-quantity-input {
    background: rgba(25, 10, 35, 0.95) !important;
    border: 2px solid rgba(156, 39, 176, 0.8) !important;
    color: #e1bee7 !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    font-size: 1.3rem !important;
    font-weight: bold !important;
    text-align: center !important;
    width: 70px !important;
    height: 45px !important;
    font-family: 'Times New Roman', serif !important;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.5) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

/* Buy Buttons - Purple Theme */
#screen-shop.active .buy-button {
    background: linear-gradient(45deg, #7b1fa2, #9c27b0) !important;
    border: 2px solid #ba68c8 !important;
    color: #ffffff !important;
    padding: 16px 36px !important;
    border-radius: 16px !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    font-family: 'Times New Roman', serif !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: 
        0 6px 16px rgba(123, 31, 162, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    width: 100% !important;
    max-width: 200px !important;
    margin: 1rem auto 0 auto !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
    position: relative !important;
    overflow: hidden !important;
}

#screen-shop.active .buy-button:hover {
    background: linear-gradient(45deg, #9c27b0, #ba68c8) !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 
        0 8px 20px rgba(123, 31, 162, 0.6),
        0 0 20px rgba(156, 39, 176, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

#screen-shop.active .buy-button::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
    transition: left 0.6s ease !important;
}

#screen-shop.active .buy-button:hover::before {
    left: 100% !important;
}

/* ===== PACK COMPARISON TOOL ===== */

/* Comparison Toggle Button */
.comparison-toggle-btn {
    background: linear-gradient(135deg, #8b5a3c 0%, #a0522d 50%, #8b5a3c 100%);
    border: 2px solid #cd853f;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 1rem;
    box-shadow: 
        0 4px 12px rgba(139, 90, 60, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.comparison-toggle-btn:hover {
    background: linear-gradient(135deg, #a0522d 0%, #cd853f 50%, #a0522d 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 16px rgba(139, 90, 60, 0.5),
        0 0 20px rgba(205, 133, 63, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.comparison-toggle-btn.active {
    background: linear-gradient(135deg, #4b0082 0%, #8a2be2 50%, #4b0082 100%);
    border-color: #9370db;
    box-shadow: 
        0 6px 16px rgba(75, 0, 130, 0.5),
        0 0 20px rgba(138, 43, 226, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.comparison-icon {
    font-size: 1.2em;
    display: inline-block;
    animation: comparisonPulse 2s ease-in-out infinite;
}

@keyframes comparisonPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.9; }
}

/* Pack Comparison Tool Container */
.pack-comparison-tool {
    background: linear-gradient(135deg, 
        rgba(75, 0, 130, 0.15) 0%, 
        rgba(138, 43, 226, 0.1) 50%, 
        rgba(75, 0, 130, 0.15) 100%);
    border: 2px solid rgba(147, 112, 219, 0.4);
    border-radius: 20px;
    margin: 2rem 0;
    padding: 0;
    overflow: hidden;
    backdrop-filter: blur(15px);
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 
        0 10px 30px rgba(75, 0, 130, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pack-comparison-tool.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.pack-comparison-tool::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #9370db 20%, 
        #8a2be2 50%, 
        #9370db 80%, 
        transparent 100%);
    animation: comparisonGlow 4s ease-in-out infinite alternate;
}

@keyframes comparisonGlow {
    0% { opacity: 0.6; transform: scaleX(0.7); }
    100% { opacity: 1; transform: scaleX(1.3); }
}

/* Comparison Header */
.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(90deg, 
        rgba(75, 0, 130, 0.2) 0%, 
        rgba(138, 43, 226, 0.15) 50%, 
        rgba(75, 0, 130, 0.2) 100%);
    border-bottom: 1px solid rgba(147, 112, 219, 0.3);
}

.comparison-header h3 {
    color: #9370db;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #9370db, #ba68c8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.comparison-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(147, 112, 219, 0.4);
    color: #9370db;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.comparison-close:hover {
    background: rgba(147, 112, 219, 0.2);
    transform: scale(1.1);
    color: #ba68c8;
}

/* Pack Selection Mode */
.shop-grid.comparison-mode .pack-item {
    position: relative;
    cursor: pointer;
}

.shop-grid.comparison-mode .pack-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px dashed rgba(147, 112, 219, 0.5);
    border-radius: 15px;
    background: rgba(75, 0, 130, 0.1);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.shop-grid.comparison-mode .pack-item:hover::after {
    opacity: 1;
}

.shop-grid.comparison-mode .pack-item.selected::after {
    border-color: #9370db;
    border-style: solid;
    background: rgba(147, 112, 219, 0.15);
    opacity: 1;
}


/* ===== RECOMMENDATION BADGES ===== */

.recommendation-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border: 2px solid #ffffff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 
        0 3px 8px rgba(255, 107, 53, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: recommendationPulse 2s ease-in-out infinite;
    cursor: help;
}

.recommendation-badge .badge-icon {
    font-size: 1rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

@keyframes recommendationPulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 
            0 3px 8px rgba(255, 107, 53, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% { 
        transform: scale(1.1); 
        box-shadow: 
            0 4px 12px rgba(255, 107, 53, 0.6),
            0 0 15px rgba(247, 147, 30, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

/* Recommendation badge for top recommendation */
.recommendation-badge:first-of-type {
    background: linear-gradient(135deg, #ff1744 0%, #ff6b35 100%);
    animation-duration: 1.5s;
}

/* Hide badges when in comparison mode */
.shop-grid.comparison-mode .recommendation-badge {
    opacity: 0;
    pointer-events: none;
}


/* ===== ACHIEVEMENT NOTIFICATIONS ===== */

.achievement-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 350px;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.95) 0%, 
        rgba(255, 140, 0, 0.95) 100%);
    border: 3px solid #ffd700;
    border-radius: 15px;
    padding: 0;
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%) scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 10px 30px rgba(255, 215, 0, 0.4),
        0 0 20px rgba(255, 140, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    overflow: hidden;
    animation: achievementGlow 3s ease-in-out infinite;
}

.achievement-notification.show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

@keyframes achievementGlow {
    0%, 100% { 
        box-shadow: 
            0 10px 30px rgba(255, 215, 0, 0.4),
            0 0 20px rgba(255, 140, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% { 
        box-shadow: 
            0 15px 40px rgba(255, 215, 0, 0.6),
            0 0 30px rgba(255, 140, 0, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

.achievement-notification::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #ffd700 25%, 
        #fff 50%, 
        #ffd700 75%, 
        transparent 100%);
    animation: achievementShine 2s ease-in-out infinite;
}

@keyframes achievementShine {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

.achievement-content {
    padding: 1.5rem;
    color: #000;
    position: relative;
}

.achievement-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.achievement-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: achievementBounce 0.6s ease-out;
}

@keyframes achievementBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.achievement-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #b8860b;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.achievement-details {
    margin-bottom: 1rem;
}

.achievement-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #8b4513;
    margin-bottom: 0.3rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.achievement-description {
    font-size: 0.95rem;
    color: #654321;
    line-height: 1.4;
}

.achievement-rewards {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(184, 134, 11, 0.3);
}

.reward-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #b8860b;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reward-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(184, 134, 11, 0.3);
    border-radius: 12px;
    padding: 0.3rem 0.8rem;
    margin: 0.2rem 0.3rem 0.2rem 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: #654321;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.reward-item.special {
    background: linear-gradient(135deg, 
        rgba(138, 43, 226, 0.2) 0%, 
        rgba(75, 0, 130, 0.2) 100%);
    border-color: #8a2be2;
    color: #4b0082;
    font-weight: 600;
}

.achievement-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #654321;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.achievement-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
    color: #8b4513;
}

/* Achievement Progress Indicator (for future use) */
.achievement-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #b8860b;
    border-radius: 0 0 12px 12px;
    animation: achievementProgress 8s linear;
}

@keyframes achievementProgress {
    0% { width: 100%; }
    100% { width: 0%; }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .achievement-notification {
        right: 10px;
        left: 10px;
        width: auto;
        top: 60px;
        transform: translateY(-100%) scale(0.9);
    }
    
    .achievement-notification.show {
        transform: translateY(0) scale(1);
    }
    
    .achievement-content {
        padding: 1rem;
    }
    
    .achievement-name {
        font-size: 1.1rem;
    }
    
    .achievement-icon {
        font-size: 1.5rem;
    }
}

/* ===================================================================
   SECRET SHOP STYLING - 6-Hour Rotation System
   ================================================================= */

/* Secret Shop Section */
.secret-shop {
    background: linear-gradient(135deg, 
        rgba(22, 33, 62, 0.95) 0%, 
        rgba(45, 25, 62, 0.95) 50%, 
        rgba(62, 22, 45, 0.95) 100%);
    border: 2px solid rgba(147, 112, 219, 0.6);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.secret-shop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="mystical" patternUnits="userSpaceOnUse" width="20" height="20"><circle cx="10" cy="10" r="1" fill="rgba(147,112,219,0.3)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23mystical)"/></svg>');
    animation: mysticalFloat 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes mysticalFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(2px, -2px) rotate(1deg); }
    50% { transform: translate(-1px, 1px) rotate(-1deg); }
    75% { transform: translate(1px, 2px) rotate(0.5deg); }
}

/* Secret Shop Header */
.secret-shop .section-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
    position: relative;
    z-index: 2;
}

.secret-shop .section-header h2 {
    color: rgba(147, 112, 219, 1);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 
        0 0 10px rgba(147, 112, 219, 0.8),
        0 0 20px rgba(147, 112, 219, 0.5),
        0 0 30px rgba(147, 112, 219, 0.3);
    animation: secretGlow 3s ease-in-out infinite alternate;
}

@keyframes secretGlow {
    0% { text-shadow: 0 0 10px rgba(147, 112, 219, 0.8), 0 0 20px rgba(147, 112, 219, 0.5), 0 0 30px rgba(147, 112, 219, 0.3); }
    100% { text-shadow: 0 0 15px rgba(147, 112, 219, 1), 0 0 25px rgba(147, 112, 219, 0.8), 0 0 35px rgba(147, 112, 219, 0.6); }
}

.secret-shop-timer {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    border: 2px solid rgba(147, 112, 219, 0.6);
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: #ffffff;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#secret-shop-countdown {
    color: rgba(255, 215, 0, 1);
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    animation: timerPulse 2s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

/* Secret Shop Grid */
.secret-items-grid,
.secret-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* Secret Shop Item */
.secret-shop-item {
    background: linear-gradient(145deg, 
        rgba(22, 33, 62, 0.9) 0%, 
        rgba(33, 22, 62, 0.9) 100%);
    border: 2px solid rgba(147, 112, 219, 0.6);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(147, 112, 219, 0.2);
}

.secret-shop-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(147, 112, 219, 1);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(147, 112, 219, 0.5),
        inset 0 0 15px rgba(147, 112, 219, 0.1);
}

/* Secret Item Header */
.secret-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(90deg, 
        rgba(147, 112, 219, 0.2) 0%, 
        rgba(147, 112, 219, 0.1) 100%);
    border-bottom: 1px solid rgba(147, 112, 219, 0.3);
}

.secret-item-rarity {
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.secret-item-rarity.common { 
    background: linear-gradient(45deg, #666666, #888888); 
    color: #ffffff; 
}
.secret-item-rarity.uncommon { 
    background: linear-gradient(45deg, #4caf50, #66bb6a); 
    color: #ffffff; 
}
.secret-item-rarity.rare { 
    background: linear-gradient(45deg, #2196f3, #42a5f5); 
    color: #ffffff; 
}
.secret-item-rarity.legendary { 
    background: linear-gradient(45deg, #ff9800, #ffb74d); 
    color: #ffffff; 
}
.secret-item-rarity.mythic { 
    background: linear-gradient(45deg, #e91e63, #f06292); 
    color: #ffffff; 
}
.secret-item-rarity.epic { 
    background: linear-gradient(45deg, #9c27b0, #ba68c8); 
    color: #ffffff; 
}

.secret-discount-badge {
    background: linear-gradient(45deg, #4caf50, #66bb6a);
    color: #ffffff;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    animation: discountPulse 2s ease-in-out infinite;
}

@keyframes discountPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Secret Item Image */
.secret-shop-item .item-image {
    position: relative;
    padding: 1rem;
    text-align: center;
}

.secret-shop-item .card-preview {
    width: 160px;
    height: 220px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(147, 112, 219, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.secret-shop-item:hover .card-preview {
    transform: scale(1.05);
    border-color: rgba(147, 112, 219, 0.8);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.secret-shimmer-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    background: linear-gradient(
        45deg,
        transparent 30%, 
        rgba(147, 112, 219, 0.2) 50%, 
        transparent 70%
    );
    border-radius: 12px;
    animation: secretShimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes secretShimmer {
    0% { transform: translateX(-100%) skewX(-15deg); }
    100% { transform: translateX(200%) skewX(-15deg); }
}

/* Secret Item Info */
.secret-shop-item .item-info {
    padding: 1rem 1.5rem;
}

.secret-shop-item .item-name {
    color: rgba(147, 112, 219, 1);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 5px rgba(147, 112, 219, 0.5);
}

.secret-shop-item .item-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.secret-shop-item .card-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.secret-shop-item .card-stats .stat,
.secret-shop-item .card-stats .cost {
    background: rgba(0, 0, 0, 0.4);
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #ffffff;
    border: 1px solid rgba(147, 112, 219, 0.3);
}

/* Secret Item Purchase */
.secret-shop-item .item-purchase {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(147, 112, 219, 0.3);
}

.secret-pricing {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.secret-pricing .original-price {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    margin-bottom: 0.3rem;
}

.secret-pricing .secret-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: rgba(255, 215, 0, 1);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.secret-shop-buy {
    width: 100%;
    background: linear-gradient(45deg, 
        rgba(147, 112, 219, 0.8) 0%, 
        rgba(147, 112, 219, 1) 100%);
    border: 2px solid rgba(147, 112, 219, 1);
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.secret-shop-buy:hover {
    background: linear-gradient(45deg, 
        rgba(147, 112, 219, 1) 0%, 
        rgba(200, 162, 255, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(147, 112, 219, 0.4),
        0 0 30px rgba(147, 112, 219, 0.3);
}

.secret-shop-buy:active {
    transform: translateY(0);
}

.secret-shop-buy::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.5s ease;
}

.secret-shop-buy:hover::before {
    left: 100%;
}

/* Secret Shop Navigation Button */
.secret-shop-btn {
    position: relative;
    overflow: hidden;
}

.secret-shop-btn::after {
    content: '✨';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.8rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1) rotate(0deg); 
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.2) rotate(180deg); 
    }
}

/* Secret Shop Close Button */
.secret-close-btn {
    display: block;
    margin: 2rem auto;
    background: linear-gradient(45deg, 
        rgba(74, 144, 226, 0.2) 0%, 
        rgba(74, 144, 226, 0.4) 100%);
    border: 2px solid rgba(74, 144, 226, 0.6);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.secret-close-btn:hover {
    background: linear-gradient(45deg, 
        rgba(74, 144, 226, 0.4) 0%, 
        rgba(74, 144, 226, 0.6) 100%);
    border-color: rgba(74, 144, 226, 1);
    color: #ffffff;
    transform: translateY(-2px);
}

/* CRITICAL FIX: Ensure shop elements only show in shop screen */
body:not(.show-shop) #screen-shop,
body:not(.show-shop) .shop-section,
body:not(.show-shop) .secret-shop,
body:not(.show-shop) .shop-item {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}
