.shop-container {
    max-width: 1400px;
    margin: 100px auto 0;
    padding: 0 24px 60px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

.shop-header {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 40px;
}

.shop-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff, #8b5cf6, #6d28d9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.shop-subtitle {
    color: #b0b0b0;
    font-size: 18px;
    margin-bottom: 32px;
    font-weight: 400;
}

.shop-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.shop-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(109, 40, 217, 0.15));
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.shop-timer i {
    font-size: 16px;
}

.shop-status {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(56, 142, 60, 0.15));
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.shop-filters {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #2a2a2a;
    border: 2px solid #333;
    color: #b0b0b0;
    padding: 14px 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border-color: #8b5cf6;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.shop-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.shop-section {
    background: linear-gradient(135deg, #1e1e1e, #252525);
    border: 1px solid #333;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 28px;
    color: #ffffff;
    border-bottom: 3px solid #8b5cf6;
    padding-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: "";
    width: 6px;
    height: 28px;
    background: linear-gradient(180deg, #8b5cf6, #6d28d9);
    border-radius: 3px;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 28px;
}

.shop-item {
    background: #2a2a2a;
    border: 2px solid #333;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    cursor: pointer;
}

.shop-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.shop-item:hover::before {
    opacity: 1;
}

.shop-item:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: #8b5cf6;
    box-shadow: 0 16px 40px rgba(139, 92, 246, 0.3);
}

.item-image {
    position: relative;
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.shop-item:hover .item-image img {
    transform: scale(1.1);
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.shop-item:hover .item-overlay {
    opacity: 1;
}

.item-info {
    padding: 20px;
    position: relative;
    z-index: 1;
}

.item-name {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.item-type {
    font-size: 12px;
    color: #b0b0b0;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.item-rarity {
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Rarity Colors with Gradients */
.item-rarity.Common {
    background: linear-gradient(135deg, #b0b0b0, #8a8a8a);
    color: #1a1a1a;
}

.item-rarity.Uncommon {
    background: linear-gradient(135deg, #00c800, #00a800);
    color: white;
    box-shadow: 0 2px 12px rgba(0, 200, 0, 0.4);
}

.item-rarity.Rare {
    background: linear-gradient(135deg, #0088ff, #0070dd);
    color: white;
    box-shadow: 0 2px 12px rgba(0, 112, 221, 0.4);
}

.item-rarity.Epic {
    background: linear-gradient(135deg, #b347ff, #a335ee);
    color: white;
    box-shadow: 0 2px 12px rgba(163, 53, 238, 0.4);
}

.item-rarity.Legendary {
    background: linear-gradient(135deg, #ffaa00, #ff8000);
    color: white;
    box-shadow: 0 2px 12px rgba(255, 128, 0, 0.5);
}

.shop-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: linear-gradient(135deg, #1e1e1e, #252525);
    border: 1px solid #333;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.sidebar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.2);
}

.sidebar-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    border-bottom: 2px solid #333;
    padding-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #333;
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-label {
    font-size: 14px;
    color: #b0b0b0;
    font-weight: 500;
}

.info-value {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

/* Enhanced V-Bucks Balance Display */
.vbucks-balance {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 32px;
    font-weight: 800;
    color: #ffd700;
    margin-bottom: 24px;
    padding: 28px 24px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 193, 7, 0.15));
    border-radius: 16px;
    border: 2px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.vbucks-balance::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.vbucks-balance i {
    color: #ffd700;
    font-size: 28px;
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.5));
    animation: pulse-vbucks 2s infinite;
}

@keyframes pulse-vbucks {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.vbucks-balance span {
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 12px rgba(255, 215, 0, 0.6);
}

.btn-small {
    padding: 14px 24px;
    font-size: 14px;
    width: 100%;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.loading-spinner-large {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    border-top-color: #8b5cf6;
    animation: spin 1s ease-in-out infinite;
    margin: 80px auto;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    color: #666;
    text-align: center;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 80px;
    margin-bottom: 24px;
    opacity: 0.4;
    color: #8b5cf6;
}

.empty-state p {
    font-size: 18px;
    margin-bottom: 24px;
    color: #999;
}

/* Modal improvements */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: linear-gradient(135deg, #1e1e1e, #252525);
    margin: 5% auto;
    padding: 0;
    border: 2px solid #333;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 24px;
    border-bottom: 2px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.close-modal {
    font-size: 32px;
    font-weight: 300;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: #ff6b6b;
}

.modal-body {
    padding: 24px;
}

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

.package-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #2a2a2a;
    border: 2px solid #333;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.package-option:hover {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    transform: translateX(4px);
}

.package-amount {
    font-weight: 700;
    color: #ffffff;
    font-size: 18px;
}

.package-price {
    color: #ffd700;
    font-weight: 800;
    font-size: 18px;
}

@media (max-width: 1024px) {
    .shop-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .shop-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .shop-container {
        margin-top: 80px;
        padding: 0 16px 40px;
    }
    
    .shop-title {
        font-size: 40px;
    }
    
    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
    
    .shop-info {
        flex-direction: column;
        gap: 16px;
    }
    
    .shop-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .shop-section {
        padding: 20px;
    }
    
    .item-image {
        height: 180px;
    }

    .vbucks-balance {
        font-size: 24px;
        padding: 20px 16px;
    }

    .vbucks-balance i {
        font-size: 20px;
    }
}

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