.premium-search-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.premium-search-card:hover {
    border-color: #cbd5e1;
}

#configSidebar {
    width: 440px !important;
}

.category-scroll {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 12px 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.premium-chip {
    white-space: nowrap;
    padding: 10px 18px;
    border-radius: 100px;
    background: #f1f5f9;
    border: 1px solid transparent;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.premium-chip:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: translateY(-2px);
}

.premium-chip.active {
    background: linear-gradient(135deg, #007AFF, #00C6FF);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.4);
    border-color: transparent;
}

.asset-icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.asset-card {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 6px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.asset-card:hover {
    transform: translateY(-4px);
    border-color: #007aff;
    box-shadow: 0 10px 20px rgba(0, 122, 255, 0.1);
}

.asset-card .preview-box {
    width: 100%;
    aspect-ratio: 1;
    background: #f8fafc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 6px;
    transition: background 0.3s;
}

.asset-card:hover .preview-box {
    background: #f1f7ff;
}

.asset-card img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.asset-card:hover img {
    transform: scale(1.1);
}

.asset-card .asset-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 2px;
}

.skeleton-box {
    pointer-events: none;
    border-color: #f1f5f9 !important;
}

.skeleton {
    width: 100%;
    height: 100%;
    background: #f1f5f9;
    background: linear-gradient(110deg, #f1f5f9 8%, #f8fafc 18%, #f1f5f9 33%);
    background-size: 200% 100%;
    animation: shimmer 1.5s linear infinite;
    border-radius: 10px;
}

@keyframes shimmer {
    to {
        background-position-x: -200%;
    }
}

/* iOS Activity Indicator Styles */
.preview-box {
    position: relative;
    background: #f8fafc;
}

.ios-tick-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    z-index: 1;
    pointer-events: none;
}

.ios-tick-loader svg {
    animation: rotate-ios 1.2s steps(12) infinite;
}

@keyframes rotate-ios {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.asset-card img {
    position: relative;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* Image shown state with fade-in */
.asset-card img.loaded {
    opacity: 1;
}

.asset-card:hover img {
    transform: scale(1.08);
    /* Re-adding scale since user reverted the previous Hover transition */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}