/* ============================================
   ULTIMATE SHOP STYLES
   ============================================ */

/* Shop Grid Layout */
.shop-grid {
    padding: 40px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Shop Header */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.shop-header h1 {
    font-size: 36px;
    font-weight: 900;
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, #10b981, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shop-header p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.shop-balance {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    padding: 20px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.balance-label {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.balance-amount {
    font-size: 32px;
    font-weight: 900;
    color: #333;
}

/* Shop Categories */
.shop-categories {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    padding: 0 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.shop-categories::-webkit-scrollbar {
    display: none;
}

.shop-cat-btn {
    padding: 12px 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.shop-cat-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.shop-cat-btn.active {
    background: var(--primary-color) !important;
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Shop Sections */
.shop-section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 25px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Shop Items Grid */
.shop-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

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

/* Shop Item Card */
.shop-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.shop-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Item Badge */
.item-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.pro-badge {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.vip-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.exclusive-badge {
    background: linear-gradient(135deg, #a855f7, #9333ea);
}

.popular-badge {
    background: linear-gradient(135deg, #ec4899, #db2777);
    animation: pulse 2s ease-in-out infinite;
}

.ultimate-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    animation: shine 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

@keyframes shine {
    0%, 100% { box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(251, 191, 36, 0.8); }
}

/* Item Icon */
.item-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

/* Avatar Preview */
.avatar-preview {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 16px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.avatar-item .avatar-preview {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), rgba(0, 0, 0, 0.3));
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.avatar-item.pro-item .avatar-preview {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 
        0 8px 32px rgba(59, 130, 246, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.avatar-item.vip-item .avatar-preview {
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 
        0 8px 32px rgba(251, 191, 36, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

/* Item Text */
.shop-item h3 {
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin: 0 0 10px 0;
}

.shop-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 16px 0;
    line-height: 1.5;
}

/* Item Duration/Note */
.item-duration,
.item-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: inline-block;
}

/* Item Price */
.item-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.price-amount {
    font-size: 28px;
    font-weight: 900;
    color: white;
}

.price-currency {
    font-size: 24px;
}

.price-discount {
    font-size: 12px;
    color: #10b981;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.2);
    padding: 4px 10px;
    border-radius: 12px;
    margin-left: 8px;
}

/* Buy Buttons */
.btn-buy {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-buy:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-buy:active {
    transform: scale(0.98);
}

.pro-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.pro-btn:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.vip-btn {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.vip-btn:hover {
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

.exclusive-btn {
    background: linear-gradient(135deg, #a855f7, #9333ea);
}

.exclusive-btn:hover {
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
}

/* Item Type Styling */
.pro-item {
    border-color: rgba(59, 130, 246, 0.3);
}

.pro-item:hover {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
}

.vip-item {
    border-color: rgba(251, 191, 36, 0.3);
}

.vip-item:hover {
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 15px 40px rgba(251, 191, 36, 0.3);
}

.exclusive-item {
    border-color: rgba(168, 85, 247, 0.3);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), rgba(147, 51, 234, 0.05));
}

.exclusive-item:hover {
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.3);
}

/* Profile Actions */
.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.btn-profile-view,
.btn-profile-edit {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-profile-view {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-profile-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-profile-edit {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-profile-edit:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Tab Badge */
.tab-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-left: 6px;
    animation: pulse 2s ease-in-out infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .shop-grid {
        padding: 20px 16px;
    }

    .shop-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .shop-header h1 {
        font-size: 28px;
    }

    .shop-balance {
        width: 100%;
        padding: 16px 20px;
    }

    .balance-amount {
        font-size: 24px;
    }

    .shop-categories {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }

    .shop-cat-btn {
        white-space: nowrap;
        font-size: 14px;
        padding: 12px 20px;
    }

    .shop-items-grid,
    .avatars-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .shop-item {
        padding: 20px 16px;
    }

    .shop-item h3 {
        font-size: 16px;
    }

    .shop-item p {
        font-size: 12px;
    }

    .item-icon {
        font-size: 48px;
    }

    .avatar-preview {
        width: 100px;
        height: 100px;
    }

    .avatar-item .avatar-preview {
        width: 110px;
        height: 110px;
        padding: 12px;
    }

    .price-amount {
        font-size: 22px;
    }

    .btn-buy {
        padding: 14px 20px;
        font-size: 14px;
    }

    .section-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .shop-items-grid,
    .avatars-grid {
        grid-template-columns: 1fr;
    }
}
