/* ============================================
   HIDDEN CATALOG - CLEAN STYLES
   ============================================ */

/* Search Type Buttons */
.search-type-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #9ca3af;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.search-type-btn i {
    font-size: 14px;
    transition: all 0.25s ease;
}

.search-type-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: #e5e7eb;
    transform: translateY(-2px);
}

.search-type-btn.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(168, 85, 247, 0.15));
    border-color: rgba(139, 92, 246, 0.6);
    color: #e9d5ff;
    box-shadow: 0 4px 20px -5px rgba(139, 92, 246, 0.4);
}

.search-type-btn.active i {
    color: #c4b5fd;
}

/* Creator Status Buttons */
.status-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.status-btn i {
    font-size: 12px;
}

.status-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: #e5e7eb;
}

.status-btn.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    border-color: rgba(16, 185, 129, 0.5);
    color: #10b981;
}

.status-btn[data-status="deleted"].active {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

.status-btn[data-status="disabled"].active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    border-color: rgba(245, 158, 11, 0.5);
    color: #f59e0b;
}

.status-btn[data-status="retired"].active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1));
    border-color: rgba(139, 92, 246, 0.5);
    color: #a78bfa;
}

.status-btn[data-status="normal"].active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    border-color: rgba(16, 185, 129, 0.5);
    color: #10b981;
}

/* Creator Status Badge on Product Cards */
.product-badge-status {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
}

.creator-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.creator-status-badge.status-deleted {
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
}

.creator-status-badge.status-disabled {
    background: rgba(245, 158, 11, 0.9);
    color: #fff;
}

.creator-status-badge.status-retired {
    background: rgba(139, 92, 246, 0.9);
    color: #fff;
}

.creator-status-badge i {
    font-size: 9px;
}

/* Creator Name on Product Card */
.product-creator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #9ca3af;
    margin: 4px 0 8px 0;
    padding: 0;
    word-break: break-all;
    line-height: 1.3;
}

.product-creator i {
    color: #6b7280;
    font-size: 10px;
    flex-shrink: 0;
}

/* Filter Inputs */
.filter-select,
.filter-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-size: 14px;
    transition: all 0.2s;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.filter-select option {
    background: #1a1d23;
    color: #fff;
}

/* Stat Cards - FIXED GRID */
#statsSection > div {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px !important;
}

@media (max-width: 640px) {
    #statsSection > div {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.2s;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

.stat-card i {
    font-size: 22px;
    margin-bottom: 10px;
    display: block;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.2;
}

.stat-label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

/* Product Card */
.product-card {
    background: linear-gradient(145deg, rgba(30, 33, 42, 0.8), rgba(20, 23, 30, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 20px 40px -15px rgba(139, 92, 246, 0.25);
}

.product-image-wrapper {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #12151a 0%, #1a1d23 100%);
    overflow: hidden;
}

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

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    font-size: 48px;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.product-info {
    padding: 16px;
}

.product-name {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
}

.product-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: #9ca3af;
}

.product-category {
    margin-top: 10px;
    font-size: 11px;
    color: #6b7280;
    line-height: 1.4;
}

/* Pagination */
.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(139, 92, 246, 0.3);
    color: #e5e7eb;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-color: transparent;
    color: #fff;
}

.pagination-ellipsis {
    color: #6b7280;
    padding: 0 8px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 11, 13, 0.9);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(139, 92, 246, 0.2);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

.loading-text {
    color: #9ca3af;
    font-size: 14px;
}

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

/* Modal - FIXED */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
    z-index: 10000;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: linear-gradient(145deg, #1e2128, #14171e);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    margin-bottom: 40px;
    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-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 10px;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.modal-body {
    padding: 24px;
}

.modal-image {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    background: #0a0b0d;
    border-radius: 12px;
    margin-bottom: 20px;
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    color: #8b5cf6;
    font-size: 13px;
    font-weight: 600;
}

.detail-value {
    flex: 1;
    color: #d1d5db;
    font-size: 14px;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.category-tag {
    padding: 4px 12px;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 6px;
    color: #a78bfa;
    font-size: 12px;
}

.imvu-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.imvu-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    color: #fff;
}

/* Premium Preview */
.preview-banner {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.15));
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 48px 32px;
    text-align: center;
}

.preview-crown {
    font-size: 64px;
    color: #ffd700;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.4));
    animation: crownFloat 3s ease-in-out infinite;
}

@keyframes crownFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.preview-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 20px 0 12px;
}

.preview-count {
    font-size: 48px;
    font-weight: 800;
    color: #ffd700;
}

.preview-text {
    color: #9ca3af;
    font-size: 16px;
    margin-bottom: 24px;
}

.preview-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 500px;
    margin: 0 auto 28px;
    text-align: left;
}

@media (max-width: 640px) {
    .preview-features {
        grid-template-columns: 1fr;
    }
}

.preview-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.preview-feature i {
    color: #10b981;
    font-size: 16px;
}

.preview-feature span {
    color: #d1d5db;
    font-size: 14px;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}
