/* ============================================
   CACTUS CLASH - Shop System Styles
   ============================================ */

/* Shop Container */
#panel-shop .shop-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Shop Header */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(50, 205, 50, 0.2);
}

.shop-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    color: #32CD32;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.shop-currency {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 20px;
    border-radius: 25px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.shop-currency .currency-amount {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: bold;
    color: #FFD700;
}

/* Category Tabs */
.shop-categories {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    flex-wrap: wrap;
}

.shop-category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #888;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.shop-category-btn:hover {
    background: rgba(50, 205, 50, 0.1);
    border-color: rgba(50, 205, 50, 0.3);
    color: #32CD32;
}

.shop-category-btn.active {
    background: linear-gradient(135deg, rgba(50, 205, 50, 0.2), rgba(34, 139, 34, 0.2));
    border-color: #32CD32;
    color: #32CD32;
}

/* Shop Sections */
.shop-section {
    margin-bottom: 32px;
}

.shop-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.shop-section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px 0;
}

.shop-section-title svg {
    color: #32CD32;
}

.shop-section-desc {
    color: #888;
    font-size: 14px;
    margin: -8px 0 16px 0;
}

.shop-timer {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
    margin-left: 12px;
}

/* Filters */
.shop-filters {
    display: flex;
    gap: 16px;
    align-items: center;
}

.shop-sort {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 8px 12px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

.shop-filter-owned {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #888;
    font-size: 13px;
    cursor: pointer;
}

/* Grids */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.shop-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.shop-bundles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

/* Shop Item Card */
.shop-item {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 30, 45, 0.9), rgba(20, 20, 30, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.shop-item:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.shop-item.featured { padding: 20px; }
.shop-item.owned { opacity: 0.7; }
.shop-item.owned:hover { opacity: 1; }

/* Rarity borders */
.shop-item.common { border-color: rgba(176, 176, 176, 0.3); }
.shop-item.uncommon { border-color: rgba(74, 222, 128, 0.3); }
.shop-item.rare { border-color: rgba(59, 130, 246, 0.4); }
.shop-item.epic { border-color: rgba(168, 85, 247, 0.4); }
.shop-item.legendary { border-color: rgba(245, 158, 11, 0.5); }
.shop-item.mythic { border-color: rgba(239, 68, 68, 0.5); }

.shop-item.uncommon:hover { box-shadow: 0 10px 30px rgba(74, 222, 128, 0.2); }
.shop-item.rare:hover { box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3); }
.shop-item.epic:hover { box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3); }
.shop-item.legendary:hover { box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4); }
.shop-item.mythic:hover { box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4); }

/* Rarity bar */
.item-rarity-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
}

/* Item Badge */
.item-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    color: #000;
}

.item-owned-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: #32CD32;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

.item-owned-badge svg { width: 14px; height: 14px; }

/* Item Preview */
.item-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    margin: 20px 0 16px 0;
}

.shop-item.featured .item-preview { height: 100px; }

.shop-preview-icon {
    width: 48px;
    height: 48px;
    color: #888;
}

.skin-preview-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    transition: transform 0.3s;
}

.shop-item:hover .skin-preview-circle { transform: scale(1.1); }
.shop-item.featured .skin-preview-circle { width: 80px; height: 80px; }

/* Item Info */
.item-info { text-align: center; }

.item-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-item.featured .item-name { font-size: 18px; }

.item-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    color: #FFD700;
}

.item-price.insufficient { color: #ff6b6b; }
.price-owned { color: #32CD32; font-weight: bold; }

/* Bundle Card */
.shop-bundle {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 30, 45, 0.95), rgba(20, 20, 30, 0.95));
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.shop-bundle:hover { transform: translateY(-6px); }
.shop-bundle.rare { border-color: rgba(59, 130, 246, 0.4); }
.shop-bundle.epic { border-color: rgba(168, 85, 247, 0.4); }
.shop-bundle.legendary { border-color: rgba(245, 158, 11, 0.5); }

.shop-bundle.rare:hover { box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3); }
.shop-bundle.epic:hover { box-shadow: 0 15px 40px rgba(168, 85, 247, 0.3); }
.shop-bundle.legendary:hover { box-shadow: 0 15px 40px rgba(245, 158, 11, 0.4); }

.bundle-discount {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #ff4757;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.bundle-header { margin-bottom: 20px; }

.bundle-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 10px;
}

.bundle-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px;
    color: #fff;
    margin: 0 0 8px 0;
}

.bundle-desc { color: #888; font-size: 14px; margin: 0; }

.bundle-contents {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.bundle-content-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #ccc;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bundle-content-item:last-child { border-bottom: none; }
.bundle-content-item svg { color: #32CD32; width: 18px; height: 18px; }

.bundle-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.bundle-price .price-old {
    color: #666;
    text-decoration: line-through;
    font-size: 16px;
}

.bundle-price .price-current {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    color: #FFD700;
}

/* Purchase Modal */
.shop-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.shop-modal.active { display: flex; }

.shop-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.shop-modal-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
    border: 1px solid rgba(50, 205, 50, 0.3);
    border-radius: 20px;
    padding: 32px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #888;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }

.modal-preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    margin-bottom: 24px;
}

.modal-preview-bg {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    filter: blur(40px);
}

.modal-preview .skin-preview-circle { width: 100px; height: 100px; z-index: 1; }
.modal-preview .shop-preview-icon { width: 80px; height: 80px; z-index: 1; }

.modal-info { text-align: center; }

.modal-rarity {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.modal-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    color: #fff;
    margin: 0 0 12px 0;
}

.modal-desc { color: #888; font-size: 15px; margin: 0 0 16px 0; }

.modal-special {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    color: #FFD700;
    font-size: 13px;
    margin-bottom: 20px;
}

.modal-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.price-icon-large svg { width: 28px; height: 28px; color: #FFD700; }

.price-value-large {
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;
    color: #FFD700;
}

.price-owned-large {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    color: #32CD32;
}

.modal-buy-btn {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #32CD32, #228B22);
    border: none;
    border-radius: 12px;
    color: #000;
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(50, 205, 50, 0.4);
}

.modal-buy-btn.disabled {
    background: linear-gradient(135deg, #666, #444);
    color: #999;
    cursor: not-allowed;
}

.modal-buy-btn.disabled:hover { transform: none; box-shadow: none; }

.modal-equip-btn {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-equip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

/* Bundle Modal */
.modal-bundle-header { text-align: center; margin-bottom: 24px; }

.bundle-discount-large {
    display: inline-block;
    background: #ff4757;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 16px;
}

.modal-bundle-contents {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.modal-bundle-contents h4 {
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    margin: 0 0 12px 0;
}

.bundle-contents-list { display: flex; flex-direction: column; gap: 12px; }

.bundle-content-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.bundle-content-row svg { color: #32CD32; }
.bundle-content-row .content-name { flex: 1; color: #fff; }
.bundle-content-row .content-value { color: #888; font-size: 13px; }

.modal-price-comparison {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.modal-price-comparison .label { color: #888; font-size: 12px; display: block; }
.modal-price-comparison .value { font-size: 16px; color: #fff; }
.modal-price-comparison .value.savings { color: #32CD32; }

/* Responsive */
@media (max-width: 768px) {
    .shop-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .shop-featured-grid { grid-template-columns: 1fr; }
    .shop-bundles-grid { grid-template-columns: 1fr; }
    .shop-categories { justify-content: center; }
    .shop-category-btn span { display: none; }
    .shop-header { flex-direction: column; gap: 16px; }
}

/* ============================================
   DAILY OFFERS SPECIAL STYLES
   ============================================ */
.shop-item.daily-offer {
    position: relative;
    border: 2px solid rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(30, 30, 45, 0.9));
}

.shop-item.daily-offer:hover {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.daily-discount-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 12px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
    animation: pulse-discount 2s infinite;
}

@keyframes pulse-discount {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.daily-price {
    flex-direction: column;
    gap: 4px;
}

.daily-price .price-old {
    font-size: 12px;
    color: #888;
    text-decoration: line-through;
}

.daily-price .price-value {
    color: #32CD32;
    font-size: 16px;
}

/* Modal Daily Badge */
.modal-daily-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 20px;
}

.modal-daily-badge svg {
    width: 18px;
    height: 18px;
}

.modal-price-daily {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.modal-price-old {
    font-size: 20px;
    color: #666;
    text-decoration: line-through;
}

.modal-price-arrow {
    color: #32CD32;
    font-size: 20px;
}

.modal-savings {
    color: #32CD32;
    font-size: 14px;
    margin-top: 8px;
    font-weight: 600;
}

.modal-buy-btn.daily-btn {
    background: linear-gradient(135deg, #ff4757, #ff6b81);
}

.modal-buy-btn.daily-btn:hover {
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.4);
}

/* ============================================
   INSPECT/TRY BUTTON
   ============================================ */
.item-inspect-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    opacity: 0;
}

.shop-item:hover .item-inspect-btn {
    opacity: 1;
}

.item-inspect-btn:hover {
    background: rgba(50, 205, 50, 0.8);
    border-color: #32CD32;
    transform: scale(1.1);
}

.item-inspect-btn svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   TRY MODE BANNER
   ============================================ */
.try-mode-banner {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid #32CD32;
    border-radius: 12px;
    padding: 12px 20px;
    margin: -20px -20px 20px -20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    animation: slideDown 0.3s ease;
    box-shadow: 0 4px 20px rgba(50, 205, 50, 0.3);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.try-mode-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.try-mode-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #32CD32, #228B22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.try-mode-icon svg {
    width: 18px;
    height: 18px;
}

.try-mode-text {
    color: #fff;
    font-size: 14px;
}

.try-mode-text strong {
    color: #32CD32;
}

.try-mode-price {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #FFD700;
    font-weight: bold;
    padding: 4px 12px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 20px;
}

.try-mode-price svg {
    width: 14px;
    height: 14px;
}

.try-mode-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.try-mode-buy {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #32CD32, #228B22);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    transition: all 0.2s ease;
}

.try-mode-buy:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(50, 205, 50, 0.4);
}

.try-mode-buy svg {
    width: 16px;
    height: 16px;
}

.try-mode-cancel {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.try-mode-cancel:hover {
    background: rgba(255, 68, 68, 0.3);
    border-color: #ff4444;
}

.try-mode-cancel svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   SORT & FILTER CONTROLS
   ============================================ */
.shop-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.shop-sort-select,
.shop-filter-select {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 8px 12px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    min-width: 140px;
}

.shop-sort-select:focus,
.shop-filter-select:focus {
    outline: none;
    border-color: #32CD32;
}

.shop-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #aaa;
    font-size: 13px;
    cursor: pointer;
}

.shop-filter-checkbox input {
    accent-color: #32CD32;
}

.shop-filter-checkbox:hover {
    color: #fff;
}

/* ============================================
   PREVIEW MODAL (3D Popup)
   ============================================ */
.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.preview-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.preview-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.preview-modal-content {
    position: relative;
    background: linear-gradient(145deg, #1a2a1a, #0d1a0d);
    border: 2px solid #32CD32;
    border-radius: 20px;
    padding: 24px;
    width: 380px;
    max-width: 95vw;
    box-shadow: 0 20px 60px rgba(50, 205, 50, 0.3),
                0 0 100px rgba(50, 205, 50, 0.1);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.preview-modal.active .preview-modal-content {
    transform: scale(1) translateY(0);
}

.preview-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.preview-modal-close:hover {
    background: rgba(255, 68, 68, 0.3);
    border-color: #ff4444;
}

.preview-modal-close svg {
    width: 18px;
    height: 18px;
}

.preview-modal-header {
    text-align: center;
    margin-bottom: 16px;
}

.preview-modal-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.preview-modal-title {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    margin: 0 0 6px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.preview-modal-desc {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.preview-modal-canvas-container {
    position: relative;
    background: linear-gradient(145deg, #0d1a0d, #1a2a1a);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid rgba(50, 205, 50, 0.3);
}

#shop-preview-canvas {
    display: block;
    width: 100%;
    height: 350px;
    cursor: grab;
}

#shop-preview-canvas:active {
    cursor: grabbing;
}

.preview-modal-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.preview-hint {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 10px;
    border-radius: 10px;
}

.preview-modal-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preview-modal-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.preview-modal-price .price-icon-large {
    color: #FFD700;
}

.preview-modal-price .price-icon-large svg {
    width: 24px;
    height: 24px;
}

.preview-modal-price .price-value-large {
    font-size: 28px;
    font-weight: bold;
    color: #FFD700;
}

.preview-modal-price .price-owned-large {
    font-size: 20px;
    font-weight: bold;
    color: #32CD32;
}

.preview-modal-actions {
    display: flex;
    gap: 10px;
}

.preview-buy-btn,
.preview-equip-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 12px;
    border: none;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preview-buy-btn {
    background: linear-gradient(135deg, #32CD32, #228B22);
    color: #fff;
}

.preview-buy-btn:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(50, 205, 50, 0.4);
}

.preview-buy-btn.disabled {
    background: #444;
    color: #888;
    cursor: not-allowed;
}

.preview-equip-btn {
    background: linear-gradient(135deg, #4169E1, #1E3A8A);
    color: #fff;
}

.preview-equip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(65, 105, 225, 0.4);
}

.preview-buy-btn svg,
.preview-equip-btn svg {
    width: 18px;
    height: 18px;
}

.preview-cancel-btn {
    padding: 14px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #aaa;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preview-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* ============================================
   ACCESSORY & WEAPON PREVIEWS (Emojis)
   ============================================ */
.accessory-preview-emoji {
    font-size: 48px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s ease;
}

.shop-item:hover .accessory-preview-emoji {
    transform: scale(1.15);
}

.effect-preview-emoji {
    font-size: 48px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: effectPulse 2s ease-in-out infinite;
}

@keyframes effectPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.weapon-preview {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.weapon-preview-icon {
    font-size: 36px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.shop-item:hover .weapon-preview {
    transform: scale(1.05);
}

/* Better styling for skin circles */
.skin-preview-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.shop-item:hover .skin-preview-circle {
    transform: scale(1.1);
}

/* Featured items get bigger previews */
.shop-item.featured .accessory-preview-emoji,
.shop-item.featured .effect-preview-emoji {
    font-size: 64px;
}

.shop-item.featured .skin-preview-circle {
    width: 90px;
    height: 90px;
}

.shop-item.featured .weapon-preview {
    width: 100px;
    height: 100px;
}

.shop-item.featured .weapon-preview-icon {
    font-size: 48px;
}

/* ============================================
   WEAPON PREVIEW MODAL
   ============================================ */
.weapon-preview-modal {
    width: 420px;
}

.weapon-canvas {
    background: linear-gradient(145deg, #1a1a2e, #0d0d1a);
}

.weapon-color-preview {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin-bottom: 12px;
}

.weapon-color-swatch {
    width: 80px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.weapon-color-swatch span {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Weapon preview in shop grid - show actual colors */
.shop-item .weapon-preview {
    width: 70px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.shop-item .weapon-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.shop-item:hover .weapon-preview::before {
    left: 100%;
}

.shop-item:hover .weapon-preview {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.shop-item .weapon-preview-icon {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.weapon-svg {
    width: 60px;
    height: 40px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    transition: all 0.3s ease;
}

.shop-item:hover .weapon-svg {
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6));
    transform: scale(1.05);
}

.shop-item.featured .weapon-svg {
    width: 80px;
    height: 55px;
}

/* ============================================
   LOADOUT WEAPON SKINS
   ============================================ */
.weapon-skin-slot {
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.weapon-skin-slot.has-skin {
    background: linear-gradient(145deg, rgba(50, 205, 50, 0.1), rgba(0, 0, 0, 0.3));
}

.weapon-skin-slot.has-skin .skin-name {
    font-weight: bold;
}

.weapon-skin-slot:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
}

.shop-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(50, 205, 50, 0.2), rgba(50, 205, 50, 0.1));
    border: 1px solid rgba(50, 205, 50, 0.3);
    border-radius: 10px;
    color: #32CD32;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.shop-link:hover {
    background: linear-gradient(135deg, rgba(50, 205, 50, 0.3), rgba(50, 205, 50, 0.2));
    border-color: #32CD32;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(50, 205, 50, 0.2);
}

.shop-link svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   COIN STORE — Buy Coins Button + Modal
   ============================================ */

.shop-buy-coins-btn {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    border: 1px solid #fbbf24;
    color: #000;
    width: 24px; height: 24px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; margin-left: 6px;
    transition: all 0.2s; font-size: 14px; padding: 0;
}
.shop-buy-coins-btn svg { width: 14px; height: 14px; }
.shop-buy-coins-btn:hover { transform: scale(1.15); box-shadow: 0 0 12px rgba(251,191,36,0.5); }

/* Modal overlay */
#coin-store-modal {
    position: fixed; inset: 0; z-index: 20000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
#coin-store-modal.active { opacity: 1; pointer-events: all; }
.cs-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.75); backdrop-filter: blur(4px);
}
.cs-container {
    position: relative; z-index: 1;
    background: linear-gradient(145deg, #111820 0%, #0a0e13 100%);
    border: 1px solid rgba(251,191,36,0.3); border-radius: 16px;
    width: 90%; max-width: 560px; padding: 28px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 40px rgba(251,191,36,0.08);
    transform: scale(0.92); transition: transform 0.3s;
}
#coin-store-modal.active .cs-container { transform: scale(1); }

.cs-header {
    text-align: center; margin-bottom: 24px; position: relative;
}
.cs-header h2 {
    font-size: 22px; font-weight: 700; color: #fbbf24;
    font-family: 'Orbitron', 'Space Grotesk', sans-serif;
    margin-bottom: 6px;
}
.cs-balance { font-size: 13px; color: #8899aa; }
.cs-balance strong { color: #fbbf24; }
.cs-close {
    position: absolute; top: -4px; right: 0;
    background: none; border: none; color: #556677;
    font-size: 20px; cursor: pointer; padding: 4px 8px;
}
.cs-close:hover { color: #fff; }

/* Packs grid */
.cs-packs {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    margin-bottom: 20px;
}
.cs-pack {
    background: linear-gradient(145deg, #1a2230, #14191f);
    border: 1px solid #2a3545; border-radius: 12px;
    padding: 16px 12px; text-align: center; cursor: pointer;
    transition: all 0.2s; position: relative; overflow: hidden;
}
.cs-pack:hover {
    border-color: #fbbf24; transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(251,191,36,0.15);
}
.cs-pack:active { transform: translateY(0); }
.cs-pack-emoji { font-size: 28px; margin-bottom: 6px; }
.cs-pack-name { font-size: 11px; font-weight: 700; color: #8899aa; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.cs-pack-coins { display: flex; align-items: center; justify-content: center; gap: 4px; margin-bottom: 10px; }
.cs-coin-icon { font-size: 16px; }
.cs-coin-amount { font-size: 20px; font-weight: 700; color: #fbbf24; }
.cs-bonus {
    font-size: 9px; font-weight: 700; color: #10b981;
    background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.3);
    padding: 1px 6px; border-radius: 10px;
}
.cs-pack-price {
    font-size: 16px; font-weight: 700; color: #e0e8f0;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* Best value highlight on 3rd pack */
.cs-pack:nth-child(3) { border-color: rgba(16,185,129,0.4); }
.cs-pack:nth-child(3)::before {
    content: 'POPULAR'; position: absolute; top: 0; right: 0;
    background: #10b981; color: #000; font-size: 8px; font-weight: 700;
    padding: 2px 8px; border-radius: 0 12px 0 8px; letter-spacing: 0.5px;
}

/* Best value highlight on 4th pack */
.cs-pack:nth-child(4) { border-color: rgba(251,191,36,0.4); }
.cs-pack:nth-child(4)::before {
    content: 'BEST VALUE'; position: absolute; top: 0; right: 0;
    background: #fbbf24; color: #000; font-size: 8px; font-weight: 700;
    padding: 2px 8px; border-radius: 0 12px 0 8px; letter-spacing: 0.5px;
}

.cs-footer { text-align: center; }
.cs-footer p { font-size: 11px; color: #556677; }
.cs-coming-soon {
    margin-top: 6px; font-size: 12px !important; font-weight: 600;
    color: #f59e0b !important; 
}

/* Mobile */
@media (max-width: 500px) {
    .cs-container { padding: 20px 14px; }
    .cs-packs { grid-template-columns: 1fr 1fr; gap: 8px; }
    .cs-coin-amount { font-size: 16px; }
    .cs-pack { padding: 12px 8px; }
}