/**
 * =============================================================================
 * FILE PATH: /assets/css/profile.css
 * =============================================================================
 * 
 * Marketore Profile System Styles
 * UPDATED: Removed gradients and box shadows from backgrounds
 * UPDATED: Unified styling to match custom.css design system
 * UPDATED: Unified responsive tabs (removed separate mobile tabs)
 * UPDATED: Download page improvements with new card layout
 * 
 * @version 1.3.0
 * @author Marketore
 */

/* ============================================ */
/* CSS VARIABLES FOR THEMING                   */
/* ============================================ */

:root {
    --profile-bg-primary: #ffffff;
    --profile-bg-secondary: #f8f9fa;
    --profile-bg-tertiary: #e9ecef;
    --profile-card-bg: #ffffff;
    --profile-border-color: #dee2e6;
    --profile-border-light: #e9ecef;
    --profile-text-primary: #212529;
    --profile-text-secondary: #6c757d;
    --profile-text-muted: #999999;
    --profile-primary-color: #007bff;
    --profile-primary-hover: #0056b3;
    --profile-success-color: #28a745;
    --profile-warning-color: #ffc107;
    --profile-danger-color: #dc3545;
    --profile-border-radius: 30px;
    --profile-border-radius-lg: 0.5rem;
    --profile-border-radius-xl: 25px;
    --profile-transition: all 0.3s ease;
}

/* Dark mode variables */
body.dark-mode {
    --profile-bg-primary: #1a1a1a;
    --profile-bg-secondary: #212529;
    --profile-bg-tertiary: #343a40;
    --profile-card-bg: #131313;
    --profile-border-color: #495057;
    --profile-border-light: #343a40;
    --profile-text-primary: #f8f9fa;
    --profile-text-secondary: #adb5bd;
    --profile-text-muted: #6c757d;
}

/* ============================================ */
/* BASE PROFILE WRAPPER                        */
/* ============================================ */

.profile-wrapper {
    min-height: 100vh;
    padding-bottom: 2rem;
}

/* ============================================ */
/* PROFILE SIDEBAR                             */
/* ============================================ */

.profile-sidebar {
    background: #e9e9ed;
    position: sticky;
    top: 1rem;
    border-radius: var(--profile-border-radius-xl);
    overflow: hidden;
}

/* ============================================ */
/* COVER IMAGE UPLOAD PROMPT (No Cover Set)    */
/* ============================================ */

.cover-image-upload-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: var(--profile-bg-secondary);
    border: 2px dashed var(--profile-border-color);
    border-radius: 12px;
    transition: var(--profile-transition);
}

.cover-image-upload-prompt:hover {
    border-color: var(--profile-primary-color);
    background: rgba(0, 123, 255, 0.02);
}

.btn-add-cover {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--profile-bg-primary);
    border: 1px solid var(--profile-border-color);
    border-radius: 25px;
    color: var(--profile-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--profile-transition);
}

.btn-add-cover:hover {
    background: var(--profile-primary-color);
    border-color: var(--profile-primary-color);
    color: white;
    transform: translateY(-1px);
}

.btn-add-cover i {
    font-size: 1.1rem;
}

/* ============================================ */
/* UNIFIED TAB NAVIGATION (RESPONSIVE)         */
/* ============================================ */

.tabs-wrapper {
    margin-bottom: 1.5rem;
}


.nav-tabs-profile::-webkit-scrollbar {
    display: none;
}

.nav-tabs-profile .nav-item {
    flex-shrink: 0;
}

.nav-tabs-profile .nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    text-decoration: none;
    color: var(--profile-text-secondary);
    border-radius: var(--profile-border-radius);
    transition: var(--profile-transition);
    white-space: nowrap;
    font-weight: 500;
    border: none;
    background: transparent;
    font-size: 0.9rem;
}

.nav-tabs-profile .nav-link i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.nav-tabs-profile .nav-link .tab-text {
    font-weight: 500;
}

.nav-tabs-profile .nav-link.active {
    background: var(--profile-primary-color);
    color: white;
}

.nav-tabs-profile .nav-link:hover:not(.active) {
    background: var(--profile-bg-tertiary);
    transform: translateY(-1px);
}

.nav-tabs-profile .count {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 1.5rem;
    text-align: center;
}

.nav-tabs-profile .nav-link.active .count {
    background: rgba(255, 255, 255, 0.3);
}

/* Filters item alignment */
.nav-tabs-profile .filters-item {
    margin-left: auto;
}

/* Smooth scrolling and snap for horizontal tabs */
.nav-tabs-profile {
    scroll-snap-type: x mandatory;
}

.nav-tabs-profile .nav-item {
    scroll-snap-align: start;
}

/* ============================================ */
/* MOBILE RESPONSIVE TABS (< 768px)            */
/* ============================================ */

@media (max-width: 767.98px) {
    .tabs-wrapper {
        margin-bottom: 1rem;
    }
    
    .nav-tabs-profile {
        padding: 0.375rem;
        gap: 0.25rem;
        justify-content: flex-start;
        background: var(--profile-bg-secondary);
        border-radius: 12px;
    }
    
    .nav-tabs-profile .nav-link {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
        gap: 0.25rem;
        min-width: 70px;
        text-align: center;
    }
    
    .nav-tabs-profile .nav-link i {
        font-size: 1.1rem;
        margin-bottom: 0.125rem;
    }
    
    .nav-tabs-profile .nav-link .tab-text {
        font-size: 0.7rem;
        font-weight: 500;
    }
    
    .nav-tabs-profile .count {
        font-size: 0.65rem;
        padding: 0.1rem 0.35rem;
        min-width: 1.25rem;
    }
    
    /* Hide filters on mobile - show separately if needed */
    .nav-tabs-profile .filters-item {
        display: none !important;
    }
}

/* Extra small screens */
@media (max-width: 575.98px) {
    .nav-tabs-profile {
        padding: 0.25rem;
    }
    
    .nav-tabs-profile .nav-link {
        padding: 0.5rem 0.625rem;
        min-width: 60px;
    }
    
    .nav-tabs-profile .nav-link i {
        font-size: 1rem;
    }
    
    .nav-tabs-profile .nav-link .tab-text {
        font-size: 0.65rem;
    }
    
    .nav-tabs-profile .count {
        font-size: 0.6rem;
        padding: 0.075rem 0.3rem;
    }
}

/* Very small screens */
@media (max-width: 374.98px) {
    .nav-tabs-profile .nav-link {
        padding: 0.4rem 0.5rem;
        min-width: 55px;
    }
    
    .nav-tabs-profile .nav-link .tab-text {
        font-size: 0.6rem;
    }
}

/* ============================================ */
/* TAB CONTENT                                 */
/* ============================================ */

.tab-content-responsive {
    overflow: hidden;
}

/* ============================================ */
/* PRODUCT GRID                                */
/* ============================================ */

.product-grid-responsive {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.product-card-responsive {
    transition: var(--profile-transition);
    border-radius: var(--profile-border-radius-lg);
    overflow: hidden;
}

/* ============================================ */
/* USER GRIDS (Followers/Following)            */
/* ============================================ */

.user-grid-responsive {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.user-card-responsive {
    border-radius: var(--profile-border-radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--profile-transition);
    background: var(--profile-bg-secondary);
}

.user-card-responsive:hover {
    transform: translateY(-2px);
}

.user-link-responsive {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.user-avatar-responsive {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--profile-border-color);
}

.user-info-responsive {
    flex: 1;
    min-width: 0;
}

.user-name-responsive {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--profile-text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1rem;
}

.user-meta-responsive {
    color: var(--profile-text-muted);
    font-size: 0.875rem;
}

.follow-btn-responsive,
.unfollow-btn-responsive {
    flex-shrink: 0;
    border-radius: var(--profile-border-radius);
    font-weight: 600;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border: 1px solid var(--profile-border-color);
    background: var(--profile-bg-primary);
    color: var(--profile-text-primary);
    transition: var(--profile-transition);
}

.follow-btn-responsive:hover {
    background: var(--profile-primary-color);
    color: white;
    border-color: var(--profile-primary-color);
}

.unfollow-btn-responsive:hover {
    background: var(--profile-danger-color);
    color: white;
    border-color: var(--profile-danger-color);
}

/* ============================================ */
/* REVIEWS                                     */
/* ============================================ */

.review-title-responsive {
    margin: 0;
    color: var(--profile-text-primary);
    font-weight: 600;
}

.review-rating-responsive {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-text-responsive {
    color: var(--profile-text-secondary);
    font-weight: 500;
}

.reviews-list-responsive {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.review-item-responsive {
    padding: 1.5rem;
    border-bottom: 1px solid var(--profile-border-light);
    transition: var(--profile-transition);
}

.review-item-responsive:last-child {
    border-bottom: none;
}

.review-item-responsive:hover {
    background: var(--profile-bg-secondary);
}

.review-header-item-responsive {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reviewer-avatar-responsive {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--profile-border-color);
    transition: var(--profile-transition);
}

.reviewer-avatar-responsive:hover {
    border-color: var(--profile-primary-color);
    transform: scale(1.05);
}

.reviewer-info-responsive {
    flex: 1;
    min-width: 0;
}

.reviewer-main-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.reviewer-name-responsive {
    margin: 0;
    font-weight: 600;
    color: var(--profile-text-primary);
    font-size: 1rem;
}

.reviewer-name-responsive a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.reviewer-name-responsive a:hover {
    color: var(--profile-primary-color);
}

.review-rating-stars-responsive {
    display: flex;
    gap: 0.125rem;
}

.review-rating-stars-responsive i {
    font-size: 1rem;
}

.review-date-responsive {
    color: var(--profile-text-muted);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.review-actions {
    flex-shrink: 0;
}

.report-review-btn-responsive {
    border-radius: var(--profile-border-radius);
    transition: var(--profile-transition);
}

.report-review-btn-responsive:hover {
    background: var(--profile-danger-color);
    border-color: var(--profile-danger-color);
    color: white;
}

/* Review Content */
.review-content-responsive {
    margin-left: 66px;
}

.review-product-responsive {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--profile-bg-tertiary);
    border-radius: var(--profile-border-radius);
    border-left: 4px solid var(--profile-primary-color);
}

.product-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.product-label {
    font-weight: 600;
    color: var(--profile-text-secondary);
}

.product-link {
    color: var(--profile-primary-color);
    text-decoration: none;
    font-weight: 500;
    flex: 1;
}

.product-link:hover {
    text-decoration: underline;
}

.review-text-container {
    margin-bottom: 1rem;
}

.review-text-responsive {
    color: var(--profile-text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Review Interactions */
.review-interactions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.like-btn,
.reply-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--profile-border-radius);
    transition: var(--profile-transition);
}

.like-btn:hover {
    background: var(--profile-danger-color);
    border-color: var(--profile-danger-color);
    color: white;
}

.reply-btn:hover {
    background: var(--profile-success-color);
    border-color: var(--profile-success-color);
    color: white;
}

/* ============================================ */
/* DOWNLOADS - NEW DESKTOP OPTIMIZED LAYOUT    */
/* ============================================ */

.downloads-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.download-card {
    display: flex;
    flex-direction: row;
    background: var(--profile-card-bg);
    border: 1px solid var(--profile-border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--profile-transition);
}

.download-card:hover {
    transform: translateY(-2px);
    border-color: var(--profile-primary-color);
}

/* Product Image Section */
.download-card-image {
    position: relative;
    width: 200px;
    min-width: 200px;
    height: 150px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--profile-bg-secondary);
}

.download-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.download-card:hover .download-card-image img {
    transform: scale(1.05);
}

.file-count-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

.file-count-badge i {
    font-size: 0.8rem;
}

/* Content Section */
.download-card-content {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    gap: 1.5rem;
}

.download-card-header {
    flex: 1;
    min-width: 0;
}

.download-card-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.download-card-title a {
    color: var(--profile-text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.download-card-title a:hover {
    color: var(--profile-primary-color);
}

.download-card-seller,
.download-card-date {
    margin: 0;
    font-size: 0.85rem;
    color: var(--profile-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.download-card-seller {
    margin-bottom: 0.25rem;
}

.download-card-seller a {
    color: var(--profile-text-secondary);
    text-decoration: none;
}

.download-card-seller a:hover {
    color: var(--profile-primary-color);
}

.download-card-date {
    font-size: 0.8rem;
    color: var(--profile-text-muted);
}

/* Action Buttons */
.download-card-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-download-main {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #007bff;
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-download-main:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.btn-download-main i {
    font-size: 1.1rem;
}

.btn-download-secondary-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-download-secondary,
.btn-download-rate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: var(--profile-bg-secondary);
    border: 1px solid var(--profile-border-color);
    border-radius: 20px;
    color: var(--profile-text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-download-secondary:hover {
    background: var(--profile-bg-tertiary);
    border-color: var(--profile-primary-color);
    color: var(--profile-primary-color);
}

.btn-download-rate {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
    color: #d4a000;
}

.btn-download-rate:hover {
    background: rgba(255, 193, 7, 0.2);
    border-color: #ffc107;
    color: #b38900;
}

.btn-download-secondary i,
.btn-download-rate i {
    font-size: 0.9rem;
}

/* ============================================ */
/* DOWNLOADS - LEGACY STYLES (kept for compat) */
/* ============================================ */

.downloads-tab-responsive {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.download-item-responsive {
    background: #ffffff;
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
    transition: var(--profile-transition);
    overflow: hidden;
}

.download-item-responsive:hover {
    transform: translateY(-2px);
    border-color: #007bff;
}

/* Mobile Layout (Default - Stacked) */
.download-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Product Image Container */
.download-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
}

.download-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.download-item-responsive:hover .download-image {
    transform: scale(1.05);
}

/* Product Details */
.download-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-title-responsive {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #212529;
}

.product-title-responsive a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title-responsive a:hover {
    color: #007bff;
}

.product-seller {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.product-seller a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-seller a:hover {
    color: #007bff;
}

/* Action Buttons Container */
.download-actions-responsive {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

/* Individual Action Buttons */
.btn-download-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    text-decoration: none;
    transition: var(--profile-transition);
    position: relative;
    overflow: hidden;
    min-height: 44px;
    cursor: pointer;
}

.btn-download-action .btn-text {
    display: inline-block !important;
    opacity: 1 !important;
    font-weight: 600;
}

.btn-download-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.6s ease;
}

.btn-download-action:hover::before {
    left: 100%;
}

/* Primary Download Button */
.btn-download-primary {
    background: #007bff;
    color: white;
}

.btn-download-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    color: white;
}

/* Loading States */
.btn-download-action.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-download-action.loading .btn-text {
    opacity: 0.5;
}

.btn-loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.btn-download-action.loading .btn-loading-spinner {
    display: block;
}

.btn-loading-spinner i {
    animation: profile-spin 1s linear infinite;
}

/* Success State */
.btn-download-action.success {
    background: #28a745 !important;
    color: white !important;
    border-color: #28a745 !important;
}

/* ============================================ */
/* DOWNLOAD MODAL - IMPROVED                   */
/* ============================================ */

.download-modal-container {
    max-width: 650px;
    width: 95%;
}

.download-all-section {
    margin-bottom: 1rem;
}

.download-all-btn-enhanced {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #28a745;
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.download-all-btn-enhanced:hover {
    background: #218838;
    transform: translateY(-2px);
}

.download-all-btn-enhanced i {
    font-size: 1.2rem;
}

.modal-divider {
    display: flex;
    align-items: center;
    margin: 1.25rem 0;
    color: var(--profile-text-muted);
    font-size: 0.8rem;
}

.modal-divider::before,
.modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--profile-border-light);
}

.modal-divider span {
    padding: 0 1rem;
}

/* File List */
.files-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    background: var(--profile-bg-secondary);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.file-item:hover {
    background: var(--profile-bg-tertiary);
}

.file-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--profile-primary-color);
    border-radius: 10px;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* File icon colors by type */
.file-icon.pdf { background: #dc3545; }
.file-icon.doc, .file-icon.docx { background: #2b579a; }
.file-icon.xls, .file-icon.xlsx { background: #217346; }
.file-icon.ppt, .file-icon.pptx { background: #d24726; }
.file-icon.zip, .file-icon.rar, .file-icon.7z { background: #f7b731; }
.file-icon.jpg, .file-icon.jpeg, .file-icon.png, .file-icon.gif, .file-icon.webp { background: #9b59b6; }
.file-icon.mp4, .file-icon.avi, .file-icon.mov { background: #e74c3c; }
.file-icon.mp3, .file-icon.wav, .file-icon.flac { background: #1db954; }
.file-icon.psd, .file-icon.ai, .file-icon.sketch, .file-icon.fig { background: #00c8ff; }

.file-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.file-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--profile-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-meta {
    font-size: 0.75rem;
    color: var(--profile-text-muted);
}

.file-download-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--profile-primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.file-download-btn:hover {
    background: var(--profile-primary-hover);
    transform: scale(1.1);
}

.no-files {
    text-align: center;
    padding: 2rem;
    color: var(--profile-text-muted);
}

.no-files i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* Enhanced file list styling */
.files-list-enhanced {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dee2e6;
    max-height: 400px;
    overflow-y: auto;
}

/* Enhanced file items */
.file-item-enhanced {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
    transition: var(--profile-transition);
    position: relative;
    background: white;
}

.file-item-enhanced:last-child {
    border-bottom: none;
}

.file-icon-enhanced {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.7rem;
    color: white;
    background: #007bff;
    margin-right: 1rem;
}

.file-info-enhanced {
    flex: 1;
    min-width: 0;
}

.file-name-enhanced {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.file-meta-enhanced {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #6c757d;
}

.file-meta-enhanced span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.download-btn-enhanced {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: var(--profile-transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.download-btn-enhanced:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.zip-progress-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

/* ============================================ */
/* EMPTY STATES                                */
/* ============================================ */

.empty-state-responsive {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--profile-text-muted);
}

.empty-state-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 2rem 1rem;
    text-align: center;
}

.empty-state-content {
    max-width: 500px;
    width: 100%;
    animation: profile-fadeInUp 0.6s ease;
}

/* Empty State Icon */
.empty-state-icon {
    margin-bottom: 1.5rem;
}

.empty-state-icon i {
    font-size: 4rem;
    color: var(--profile-text-muted);
    opacity: 0.7;
    transition: var(--profile-transition);
    animation: profile-bounceIn 0.8s ease;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.empty-state-container:hover .empty-state-icon i {
    transform: scale(1.1);
    opacity: 0.9;
}

/* Icon Color Variations */
.empty-state-icon .bi-box-seam {
    color: var(--profile-primary-color);
}

.empty-state-icon .bi-people,
.empty-state-icon .bi-person-plus {
    color: var(--profile-success-color);
}

.empty-state-icon .bi-star {
    color: var(--profile-warning-color);
}

.empty-state-icon .bi-download {
    color: #17a2b8;
}

/* Empty State Title */
.empty-state-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--profile-text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* Empty State Message */
.empty-state-message {
    font-size: 1.1rem;
    color: var(--profile-text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Action Buttons */
.empty-state-actions {
    margin-bottom: 2rem;
}

.btn-empty-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--profile-border-radius);
    transition: var(--profile-transition);
    text-decoration: none;
}

.btn-empty-action:hover {
    transform: translateY(-2px);
}

.btn-empty-action i {
    font-size: 1.1rem;
}

/* ============================================ */
/* PAGINATION                                  */
/* ============================================ */

.pagination-responsive {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
}

.pagination-responsive .pagination {
    margin: 0;
}

.pagination-responsive .page-link {
    border-radius: var(--profile-border-radius);
    margin: 0 0.125rem;
    border: 1px solid var(--profile-border-color);
    color: var(--profile-text-secondary);
    transition: var(--profile-transition);
}

.pagination-responsive .page-link:hover {
    background: var(--profile-primary-color);
    color: white;
    border-color: var(--profile-primary-color);
    transform: translateY(-1px);
}

.pagination-responsive .page-item.active .page-link {
    background: var(--profile-primary-color);
    color: white;
    border-color: var(--profile-primary-color);
}

/* ============================================ */
/* MODAL RESPONSIVE                            */
/* ============================================ */

.modal-responsive {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}


.modal-title-responsive {
    margin: 0;
    color: var(--profile-text-primary);
    font-weight: 600;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-title-responsive i {
    color: #007bff;
}

.close-btn-responsive {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--profile-text-muted);
    cursor: pointer;
    padding: 0;
    transition: var(--profile-transition);
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
}

.close-btn-responsive:hover {
    color: var(--profile-text-primary);
    background: rgba(0, 0, 0, 0.1);
}

.form-group-responsive {
    margin-bottom: 1.5rem;
}

.form-label-responsive {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--profile-text-primary);
    font-weight: 500;
}

.btn-primary-responsive {
    background: var(--profile-primary-color);
    color: white;
    border: 1px solid var(--profile-primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--profile-border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--profile-transition);
}

.btn-primary-responsive:hover {
    background: var(--profile-primary-hover);
    border-color: var(--profile-primary-hover);
    transform: translateY(-1px);
}

.btn-secondary-responsive {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--profile-border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--profile-transition);
}

.btn-secondary-responsive:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-responsive {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--profile-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    min-width: 100px;
    justify-content: center;
    flex: 1;
}

.btn-responsive.btn-primary {
    background: #007bff;
    color: white;
}

.btn-responsive.btn-primary:hover:not(:disabled) {
    background: #0056b3;
    transform: translateY(-1px);
}

.btn-responsive.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-responsive.btn-secondary:hover {
    background: #5a6268;
}

.btn-responsive.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-responsive.btn-danger:hover {
    background: #c82333;
}

.btn-responsive:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================ */
/* PROFILE HEADER                              */
/* ============================================ */

.profile-header-responsive {
    padding: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.profile-header-responsive > * {
    position: relative;
    z-index: 1;
}

/* Profile Image Container */
.profile-image-container-responsive {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.profile-image-wrapper {
    position: relative;
    display: inline-block;
}

.profile-avatar-responsive {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    transition: var(--profile-transition);
}

.profile-avatar-responsive:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

/* Loading state for profile avatar */
.profile-avatar-responsive.loading {
    filter: blur(2px);
    opacity: 0.7;
}

.blue-mark-badge-responsive {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: #007bff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.blue-mark-badge-responsive i {
    color: white;
    font-size: 1.1rem;
}

.online-status-responsive {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.9);
    z-index: 2;
}

.online-status-responsive.online {
    background: var(--profile-success-color);
}

.online-status-responsive.offline {
    display: none;
}

/* Profile Info */
.profile-info-responsive {
    text-align: center;
}

.profile-name-section {
    margin-bottom: 1rem;
}

.profile-name-responsive {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.profile-name-link {
    text-decoration: none;
    transition: var(--profile-transition);
}

.role-badge-responsive {
    display: flex;
    justify-content: center;
}

.badge-admin {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b7a;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.badge-vendor {
    background: rgba(255, 193, 7, 0.2);
    color: #ffd700;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.badge-member {
    background: rgba(108, 117, 125, 0.2);
    color: #c8d0d7;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.profile-about-responsive {
    margin-bottom: 1rem;
}

.about-text {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.9);
    max-width: 100%;
    overflow-wrap: break-word;
}

.profile-contact-responsive {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.contact-link:hover {
    color: white;
    text-decoration: underline;
}

/* Stats Section */
.profile-stats-responsive {
    padding: 1.5rem;
    border-bottom: 1px solid var(--profile-border-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1rem;
    text-align: center;
}

.stat-item {
    padding: 0.75rem;
    border-radius: var(--profile-border-radius);
    transition: var(--profile-transition);
    animation: profile-fadeInUp 0.6s ease;
    animation-delay: var(--delay, 0s);
}

.stat-item:nth-child(1) { --delay: 0.1s; }
.stat-item:nth-child(2) { --delay: 0.2s; }
.stat-item:nth-child(3) { --delay: 0.3s; }
.stat-item:nth-child(4) { --delay: 0.4s; }

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--profile-primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--profile-text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Rating Section */
.profile-rating-responsive {
    padding: 1.5rem;
    background: var(--profile-card-bg);
    border-bottom: 1px solid var(--profile-border-light);
}

.rating-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.rating-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--profile-text-primary);
}

.rating-score {
    font-size: 2rem;
    font-weight: 700;
    color: var(--profile-warning-color);
}

.rating-stars-container {
    text-align: center;
}

.rating-stars-large {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.rating-stars-large i {
    font-size: 1.5rem;
}

.star-filled {
    color: var(--profile-warning-color);
}

.star-half {
    color: var(--profile-warning-color);
}

.star-empty {
    color: var(--profile-text-muted);
}

.rating-text {
    font-size: 0.875rem;
    color: var(--profile-text-secondary);
}

/* Social Media Section */
.profile-social-responsive {
    padding: 1.5rem;
}

.social-title {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--profile-text-primary);
    text-align: center;
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.social-link-responsive {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #6c757d;
    border-radius: var(--profile-border-radius);
    text-decoration: none;
    color: var(--profile-text-secondary);
    transition: var(--profile-transition);
    font-size: 0.875rem;
    font-weight: 500;
}

.social-link-responsive:hover {
    transform: translateY(-2px);
    color: var(--profile-primary-color);
    border-color: var(--profile-primary-color);
}

.social-link-responsive i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.social-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.no-social-links {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: var(--profile-text-muted);
    font-style: italic;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.no-social-links i {
    font-size: 2rem;
    opacity: 0.5;
}

/* Action Buttons */
.profile-actions-responsive {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-button-container {
    width: 100%;
}

.follow-form-responsive {
    width: 100%;
    margin: 0;
}

.btn-action {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.25rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--profile-transition);
    position: relative;
    overflow: hidden;
}

.btn-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.btn-action:hover::before {
    left: 100%;
}

.btn-follow {
    background: var(--profile-primary-color);
    border-color: var(--profile-primary-color);
    color: white;
}

.btn-follow:hover {
    background: var(--profile-primary-hover);
    border-color: var(--profile-primary-hover);
}

.btn-unfollow {
    background: var(--profile-card-bg);
    border-color: var(--profile-text-muted);
    color: var(--profile-text-muted);
}

.btn-unfollow:hover {
    background: var(--profile-danger-color);
    border-color: var(--profile-danger-color);
    color: white;
    transform: translateY(-2px);
}

.btn-report {
    background: var(--profile-danger-color);
    border-color: var(--profile-danger-color);
    color: #fff;
}

.btn-report:hover {
    background: var(--profile-danger-color);
    border-color: var(--profile-danger-color);
    color: white;
    transform: translateY(-2px);
}

.btn-edit {
    background: #fff;
    border-color: #fff;
    color: black !important;
}

.btn-edit:hover {
    transform: translateY(-2px);
}

.btn-action i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.btn-text-short {
    display: none;
}

/* ============================================ */
/* COVER IMAGE                                 */
/* ============================================ */

.cover-image-responsive-container {
    width: 100%;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.cover-image-responsive {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    transition: var(--profile-transition);
}

.cover-image-responsive.no-cover {
    background: var(--profile-primary-color);
}

.cover-overlay-responsive {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 16px;
}


.cover-upload-inline {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-cover-upload,
.btn-cover-remove {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--profile-transition);
    backdrop-filter: blur(10px);
}

.btn-cover-upload {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
}

.btn-cover-upload:hover {
    background: #fff;
    transform: translateY(-2px);
}

.btn-cover-remove {
    background: rgba(220, 53, 69, 0.9);
    color: #fff;
    padding: 8px 10px;
}

.btn-cover-remove:hover {
    background: #dc3545;
    transform: translateY(-2px);
}

.btn-cover-upload.uploading {
    pointer-events: none;
    opacity: 0.7;
}

.cover-upload-progress {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 8px 12px;
    min-width: 150px;
    backdrop-filter: blur(10px);
}

.progress-bar-wrapper {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.progress-bar-fill {
    height: 100%;
    background: var(--profile-primary-color);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 11px;
    color: #666;
}

.cover-upload-error {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    background: rgba(220, 53, 69, 0.95);
    color: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    max-width: 250px;
}

.cover-loading-placeholder {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-skeleton {
    color: #fff;
    font-size: 32px;
}

/* ============================================ */
/* RATE PRODUCT MODAL                          */
/* ============================================ */

.rate-product-modal-container {
    max-width: 480px;
    width: 95%;
}

.rate-product-form {
    display: flex;
    flex-direction: column;
}

.rate-product-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--profile-bg-secondary);
    border-radius: 12px;
    margin-bottom: 20px;
}

.rate-product-info .product-thumbnail {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.rate-product-info .product-details {
    flex: 1;
    min-width: 0;
}

.rate-product-info .product-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--profile-text-primary);
    margin: 0 0 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rate-product-info .product-price {
    font-size: 13px;
    color: var(--profile-text-secondary);
}

.rate-section-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--profile-text-primary);
    margin-bottom: 10px;
}

.rate-star-section {
    margin-bottom: 20px;
}

.star-rating-widget-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.star-rating-widget {
    display: flex;
    gap: 4px;
}

.star-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    font-size: 28px;
    color: #ddd;
    transition: all 0.15s ease;
    line-height: 1;
}

.star-btn:hover {
    transform: scale(1.15);
}

.star-btn i {
    display: block;
}

.star-btn i.bi-star-fill {
    color: #ffc107;
}

.star-btn.active i,
.star-btn:hover i {
    color: #ffc107;
}

.rating-text-display {
    font-size: 14px;
    color: var(--profile-text-secondary);
    font-weight: 500;
}

.rate-review-section {
    margin-bottom: 16px;
}

.rate-review-textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--profile-border-color);
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.rate-review-textarea:focus {
    outline: none;
    border-color: var(--profile-primary-color);
}

.rate-review-textarea::placeholder {
    color: #adb5bd;
}

.textarea-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.char-counter {
    font-size: 12px;
    color: var(--profile-text-muted);
}

.min-chars-hint {
    font-size: 12px;
    color: var(--profile-text-muted);
}

.min-chars-hint.valid {
    color: #28a745;
}

.rate-message-container {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 14px;
}

.rate-message-container.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.rate-message-container.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================ */
/* FILTERS AND SORTING                         */
/* ============================================ */

.desktop-filters-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}

.filter-reset-tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
}

.filter-reset-tag {
    display: inline-flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    transition: var(--profile-transition);
    text-decoration: none;
    color: inherit;
}

.filter-reset-tag:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    text-decoration: none;
    color: inherit;
}

.filter-tag-content {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-right: 0.5rem;
}

.reset-tag-title {
    font-weight: 600;
    color: #495057;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reset-tag-value {
    color: #6c757d;
    font-size: 0.75rem;
}

.filter-tag-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 50%;
    color: #dc3545;
    text-decoration: none;
    font-size: 0.75rem;
    transition: var(--profile-transition);
}

.filter-tag-remove:hover {
    background: rgba(220, 53, 69, 0.2);
    color: #c82333;
    transform: scale(1.1);
}

.link-reset-filters {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    text-decoration: none;
    transition: var(--profile-transition);
}

.link-reset-filters:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white !important;
    transform: translateY(-1px);
}


.sort-select-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sort-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sort-select select {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    background: white;
    transition: var(--profile-transition);
    cursor: pointer;
}

.sort-select select:focus {
    border-color: #007bff;
    outline: none;
}

.sort-select select:hover {
    border-color: #adb5bd;
}

.sort-select select.loading {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23007bff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 1.5a6.5 6.5 0 1 0 6.5 6.5'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
}

/* ============================================ */
/* ANIMATIONS                                  */
/* ============================================ */

@keyframes profile-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes profile-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes profile-bounceIn {
    0%, 20%, 40%, 60%, 80% {
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }
    0% {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }
    20% {
        transform: scale3d(1.1, 1.1, 1.1);
    }
    40% {
        transform: scale3d(0.9, 0.9, 0.9);
    }
    60% {
        opacity: 1;
        transform: scale3d(1.03, 1.03, 1.03);
    }
    80% {
        transform: scale3d(0.97, 0.97, 0.97);
    }
    100% {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

@keyframes profile-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes profile-shimmer {
    0% { background-position: 0 0; }
    100% { background-position: 30px 30px; }
}

@keyframes profile-slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes profile-slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

@keyframes profile-modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes profile-starPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Loading animation for filter removal */
.filter-reset-tag.removing {
    animation: profile-fadeOut 0.3s ease-out forwards;
}

@keyframes profile-fadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

.product-card-responsive,
.user-card-responsive,
.review-item-responsive,
.download-item-responsive {
    animation: profile-fadeInUp 0.3s ease;
}

.profile-details-responsive {
    animation: profile-fadeInUp 0.6s ease;
}

.spin {
    animation: profile-spin 1s linear infinite;
}

/* ============================================ */
/* RESPONSIVE BREAKPOINTS                      */
/* ============================================ */

/* Large tablets and small desktops */
@media (max-width: 1199.98px) {
    .product-grid-responsive {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .user-grid-responsive {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .profile-avatar-responsive {
        width: 100px;
        height: 100px;
    }
    
    .blue-mark-badge-responsive {
        width: 28px;
        height: 28px;
        bottom: 6px;
        right: 6px;
    }
    
    .blue-mark-badge-responsive i {
        font-size: 1rem;
    }
    
    .profile-name-responsive {
        font-size: 1.5rem;
    }
    
    .desktop-filters-container {
        align-items: stretch;
    }
    
    .filter-reset-tag-container {
        justify-content: flex-start;
        margin-bottom: 0.75rem;
    }
    
    .product-sort-by {
        min-width: auto;
        width: 100%;
    }
    
    .sort-select-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }
    
    .sort-label {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .sort-select {
        flex: 1;
    }
}

/* ============================================ */
/* RESPONSIVE - TABLET                         */
/* ============================================ */

@media (max-width: 991.98px) {
    .profile-sidebar {
        position: static;
        margin-bottom: 1.5rem;
    }
    
    .product-grid-responsive {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        padding: 1rem;
    }
    
    .user-grid-responsive {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        padding: 1rem;
    }
    
    .review-content-responsive {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .download-header-responsive {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .profile-details-responsive {
        margin-bottom: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .social-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .profile-actions-responsive {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .action-button-container {
        flex: 1;
    }
    
    .review-header-responsive {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .review-filters {
        display: flex !important;
        justify-content: center;
    }
    
    /* Download card tablet adjustments */
    .download-card-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .download-card-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .btn-download-main {
        flex: 1;
        min-width: 150px;
        justify-content: center;
    }
    
    .btn-download-secondary-group {
        flex: 1;
        justify-content: flex-end;
    }
}

/* ============================================ */
/* RESPONSIVE - MOBILE                         */
/* ============================================ */

@media (max-width: 767.98px) {
    .profile-wrapper {
        padding-bottom: 1rem;
    }
    
    .product-grid-responsive {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .user-grid-responsive {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .user-card-responsive {
        padding: 1rem;
    }
    
    .user-avatar-responsive {
        width: 50px;
        height: 50px;
    }
    
    .review-item-responsive {
        padding: 1rem;
    }
    
    .reviewer-avatar-responsive {
        width: 45px;
        height: 45px;
    }
    
    .download-item-responsive {
        padding: 1rem;
    }
    
    .download-thumb-responsive {
        width: 60px;
        height: 60px;
    }
    
    .download-actions-responsive {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .download-actions-responsive .btn {
        flex: 1;
        min-width: 0;
    }
    
    .btn-download-action {
        width: 100% !important;
        flex: none !important;
        min-width: auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .btn-download-action .btn-text {
        display: inline !important;
        font-weight: 600;
    }
    
    .btn-download-action i {
        margin-right: 0.5rem;
    }
    
    .btn-download-secondary {
        width: 100% !important;
    }
    
    .profile-header-responsive {
        padding: 1.25rem;
    }
    
    .profile-avatar-responsive {
        width: 90px;
        height: 90px;
    }
    
    .profile-name-responsive {
        font-size: 1.4rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    .stat-item {
        padding: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .social-links-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-actions-responsive {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-action {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-text-short {
        display: block;
    }
    
    
    .review-header-responsive {
        padding: 1.25rem;
    }
    
    .review-header-item-responsive {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }
    
    .reviewer-info-responsive {
        text-align: center;
    }
    
    .reviewer-main-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .review-interactions {
        justify-content: center;
    }
    
    .empty-state-container {
        min-height: 300px;
        padding: 1.5rem 1rem;
    }
    
    .empty-state-icon i {
        font-size: 3rem;
    }
    
    .empty-state-title {
        font-size: 1.5rem;
    }
    
    .empty-state-message {
        font-size: 1rem;
    }
    
    .btn-empty-action {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .cover-image-responsive {
        height: 200px;
    }
    
    .btn-cover-upload .btn-label {
        display: none;
    }
    
    .btn-cover-upload {
        padding: 10px;
    }
    
    .cover-overlay-responsive {
        padding: 12px;
    }
    
    /* Cover image upload prompt mobile */
    .cover-image-upload-prompt {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .btn-add-cover {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
    }
    
    /* Stack download card vertically on mobile */
    .download-card {
        flex-direction: column;
    }
    
    .download-card-image {
        width: 100%;
        min-width: auto;
        height: 180px;
    }
    
    .download-card-content {
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
    }
    
    .download-card-title {
        font-size: 1rem;
    }
    
    .download-card-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-download-main {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }
    
    .btn-download-secondary-group {
        width: 100%;
        justify-content: space-between;
    }
    
    .btn-download-secondary,
    .btn-download-rate {
        flex: 1;
        justify-content: center;
        padding: 0.6rem 0.75rem;
    }
    
    .btn-download-secondary .btn-label,
    .btn-download-rate .btn-label {
        display: none;
    }
    
    /* Download modal mobile */
    .download-modal-container {
        width: 100%;
        max-width: none;
        max-height: 90vh;
        border-radius: 16px 16px 0 0;
        margin: auto 0 0 0;
    }
    
    .modal-content-responsive {
        padding: 1rem 1.5rem !important;
    }
    
    .files-list {
        max-height: 300px;
    }
    
    .file-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .file-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    
    .file-name {
        font-size: 0.85rem;
    }
    
    .file-download-btn {
        width: 36px;
        height: 36px;
    }
    
    .file-item-enhanced {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
        text-align: center;
    }
    
    .file-item-enhanced .download-btn-enhanced {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    /* Rate modal mobile */
    .rate-product-modal-container {
        width: 100%;
        max-width: none;
        max-height: 90vh;
        border-radius: 16px 16px 0 0;
        margin: auto 0 0 0;
    }
    
    .rate-product-info {
        padding: 12px;
        gap: 12px;
    }
    
    .rate-product-info .product-thumbnail {
        width: 56px;
        height: 56px;
    }
    
    .star-btn {
        font-size: 32px;
        padding: 6px;
    }
    
    .star-rating-widget-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    
    .btn-secondary-responsive,
    .btn-primary-responsive {
        width: 100%;
        justify-content: center;
    }
}

/* Small phones */
@media (max-width: 575.98px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .product-grid-responsive {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .user-card-responsive {
        padding: 0.75rem;
        flex-direction: column;
        text-align: center;
    }
    
    .user-link-responsive {
        flex-direction: column;
        text-align: center;
    }
    
    .follow-btn-responsive,
    .unfollow-btn-responsive {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .review-header-item-responsive {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }
    
    .reviewer-info-responsive {
        text-align: center;
    }
    
    .download-actions-responsive {
        flex-direction: column;
    }
    
    .profile-header-responsive {
        padding: 1rem;
    }
    
    .profile-avatar-responsive {
        width: 80px;
        height: 80px;
    }
    
    .blue-mark-badge-responsive {
        width: 24px;
        height: 24px;
        bottom: 4px;
        right: 4px;
    }
    
    .blue-mark-badge-responsive i {
        font-size: 0.9rem;
    }
    
    .online-status-responsive {
        width: 16px;
        height: 16px;
        top: 6px;
        right: 6px;
        border-width: 2px;
    }
    
    .profile-name-responsive {
        font-size: 1.25rem;
    }
    
    .profile-stats-responsive,
    .profile-rating-responsive,
    .profile-social-responsive,
    .profile-actions-responsive {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .badge {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .rating-score {
        font-size: 1.5rem;
    }
    
    .rating-stars-large i {
        font-size: 1.25rem;
    }
    
    .btn-action {
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
        gap: 0.5rem;
    }
    
    .btn-action i {
        font-size: 1rem;
    }
    
    .review-header-responsive {
        padding: 1rem;
    }
    
    .reviewer-avatar-responsive {
        width: 45px;
        height: 45px;
    }
    
    .review-title-responsive {
        font-size: 1.1rem;
    }
    
    .like-btn,
    .reply-btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .review-filters .dropdown-toggle {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
    
    .empty-state-container {
        padding: 1rem;
    }
    
    .empty-state-icon i {
        font-size: 2.5rem;
    }
    
    .empty-state-title {
        font-size: 1.3rem;
    }
    
    .empty-state-message {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-empty-action {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        width: 100%;
        max-width: 280px;
    }
    
    .cover-image-responsive {
        height: 150px;
    }
}

/* Extra small phones */
@media (max-width: 374.98px) {
    .product-grid-responsive {
        grid-template-columns: 1fr;
        padding: 0.5rem;
    }
    
    .user-avatar-responsive {
        width: 40px;
        height: 40px;
    }
    
    .reviewer-avatar-responsive {
        width: 40px;
        height: 40px;
    }
    
    .download-thumb-responsive {
        width: 50px;
        height: 50px;
    }
    
    .profile-avatar-responsive {
        width: 70px;
        height: 70px;
    }
    
    .profile-name-responsive {
        font-size: 1.1rem;
    }
    
    .stats-grid {
        gap: 0.25rem;
    }
    
    .stat-item {
        padding: 0.375rem;
    }
    
    .stat-number {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .contact-item {
        font-size: 0.8rem;
    }
    
    .about-text {
        font-size: 0.875rem;
    }
}

/* ============================================ */
/* DARK MODE OVERRIDES                         */
/* ============================================ */

body.dark-mode .user-name-responsive,
body.dark-mode .reviewer-name-responsive,
body.dark-mode .download-title-responsive,
body.dark-mode .review-title-responsive {
    color: var(--profile-text-primary);
}

body.dark-mode .user-name-responsive a,
body.dark-mode .reviewer-name-responsive a,
body.dark-mode .download-title-responsive a {
    color: var(--profile-text-primary);
}

body.dark-mode .user-name-responsive a:hover,
body.dark-mode .reviewer-name-responsive a:hover,
body.dark-mode .download-title-responsive a:hover {
    color: #66b3ff;
}

body.dark-mode .review-text-responsive {
    color: var(--profile-text-secondary);
}

body.dark-mode .badge-admin {
    background: rgba(220, 53, 69, 0.3);
    color: #ff8a95;
}

body.dark-mode .badge-vendor {
    background: rgba(255, 193, 7, 0.3);
    color: #ffed4e;
}

body.dark-mode .badge-member {
    background: rgba(108, 117, 125, 0.3);
    color: #dee2e6;
}

body.dark-mode .btn-follow:hover,
body.dark-mode .btn-message:hover,
body.dark-mode .btn-report:hover,
body.dark-mode .btn-edit:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

body.dark-mode .download-item-responsive {
    background: #1a1a1a;
    border-color: #333;
    color: #e9ecef;
}

body.dark-mode .download-image-container {
    background: #2a2a2a;
}

body.dark-mode .product-title-responsive {
    color: #ffffff;
}

body.dark-mode .product-seller {
    color: #adb5bd;
}

/* Dark mode - Download card */
body.dark-mode .download-card {
    background: var(--profile-card-bg);
    border-color: var(--profile-border-color);
}

body.dark-mode .download-card:hover {
    border-color: #66b3ff;
}

body.dark-mode .download-card-image {
    background: var(--profile-bg-tertiary);
}

body.dark-mode .download-card-title a {
    color: var(--profile-text-primary);
}

body.dark-mode .download-card-title a:hover {
    color: #66b3ff;
}

body.dark-mode .btn-download-secondary {
    background: var(--profile-bg-tertiary);
    border-color: var(--profile-border-color);
    color: var(--profile-text-secondary);
}

body.dark-mode .btn-download-secondary:hover {
    border-color: #66b3ff;
    color: #66b3ff;
}

body.dark-mode .file-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .file-name {
    color: var(--profile-text-primary);
}

/* Dark mode - Cover image upload prompt */
body.dark-mode .cover-image-upload-prompt {
    background: var(--profile-bg-tertiary);
    border-color: var(--profile-border-color);
}

body.dark-mode .cover-image-upload-prompt:hover {
    border-color: #66b3ff;
}

body.dark-mode .btn-add-cover {
    background: var(--profile-bg-primary);
    border-color: var(--profile-border-color);
    color: var(--profile-text-secondary);
}

body.dark-mode .btn-add-cover:hover {
    background: #66b3ff;
    border-color: #66b3ff;
    color: white;
}

body.dark-mode .review-header-responsive {
    background: var(--profile-bg-tertiary);
}

body.dark-mode .review-product-responsive {
    background: var(--profile-bg-secondary);
    border-left-color: #66b3ff;
}

body.dark-mode .reviewer-avatar-responsive {
    border-color: var(--profile-border-color);
}

body.dark-mode .reviewer-avatar-responsive:hover {
    border-color: #66b3ff;
}

body.dark-mode .filter-reset-tag {
    background: #343a40;
    border-color: #495057;
    color: #e9ecef;
}

body.dark-mode .filter-reset-tag:hover {
    background: #495057;
    border-color: #6c757d;
}

body.dark-mode .reset-tag-title {
    color: #adb5bd;
}

body.dark-mode .reset-tag-value {
    color: #6c757d;
}

body.dark-mode .filter-tag-remove {
    background: rgba(220, 53, 69, 0.2);
    color: #f5c6cb;
}

body.dark-mode .filter-tag-remove:hover {
    background: rgba(220, 53, 69, 0.3);
    color: #f8d7da;
}

body.dark-mode .sort-label {
    color: #adb5bd;
}

body.dark-mode .sort-select select {
    background: #343a40;
    border-color: #495057;
    color: #e9ecef;
}

body.dark-mode .sort-select select:focus {
    background: #343a40;
    border-color: #66b3ff;
    color: #e9ecef;
    box-shadow: 0 0 0 0.2rem rgba(102, 179, 255, 0.25);
}

body.dark-mode .sort-select select:hover {
    border-color: #6c757d;
}

body.dark-mode .sort-select select option {
    background: #343a40;
    color: #e9ecef;
}


body.dark-mode .modal-title-responsive {
    color: #f8f9fa;
}

body.dark-mode .modal-close-btn {
    color: #adb5bd;
}

body.dark-mode .modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f8f9fa;
}


body.dark-mode .files-list-enhanced {
    background: #1a1a1a;
    border-color: #444;
}

body.dark-mode .file-item-enhanced {
    background: #1a1a1a;
    border-bottom-color: #444;
}

body.dark-mode .file-item-enhanced:hover {
    background: #2a2a2a;
}

body.dark-mode .file-name-enhanced {
    color: #e9ecef;
}

body.dark-mode .file-meta-enhanced {
    color: #adb5bd;
}

body.dark-mode .zip-progress-container {
    background: #2a2a2a;
}

body.dark-mode .rate-product-info {
    background: #2d3748;
}

body.dark-mode .rate-product-info .product-title {
    color: #fff;
}

body.dark-mode .rate-section-label {
    color: #e2e8f0;
}

body.dark-mode .star-btn {
    color: #4a5568;
}

body.dark-mode .rate-review-textarea {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

body.dark-mode .rate-review-textarea:focus {
    border-color: var(--profile-primary-color);
}

body.dark-mode .btn-secondary-responsive {
    background: #4a5568;
    color: #e2e8f0;
}

body.dark-mode .btn-secondary-responsive:hover {
    background: #5a6578;
}

body.dark-mode .btn-cover-upload {
    background: rgba(50, 50, 50, 0.95);
    color: #fff;
}

body.dark-mode .btn-cover-upload:hover {
    background: rgba(70, 70, 70, 1);
}

body.dark-mode .cover-upload-progress {
    background: rgba(50, 50, 50, 0.95);
}

body.dark-mode .progress-text {
    color: #ccc;
}

body.dark-mode .suggestion-card {
    background: var(--profile-bg-tertiary);
    border-color: var(--profile-border-color);
}

body.dark-mode .suggestion-card:hover {
    background: #66b3ff;
    border-color: #66b3ff;
}

body.dark-mode .empty-state-secondary {
    border-color: var(--profile-border-color);
}

/* ============================================ */
/* ACCESSIBILITY IMPROVEMENTS                  */
/* ============================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
    
    .profile-details-responsive,
    .stat-item,
    .btn-action,
    .product-card-responsive,
    .user-card-responsive,
    .review-item-responsive,
    .download-item-responsive,
    .download-image,
    .btn-download-action,
    .btn-download-action::before,
    .empty-state-content,
    .empty-state-icon i,
    .suggestion-card,
    .tip-step,
    .tips-list li {
        animation: none;
        transition: none;
    }
    
    .profile-avatar-responsive:hover,
    .stat-item:hover,
    .btn-action:hover,
    .btn-empty-action:hover,
    .suggestion-card:hover,
    .download-item-responsive:hover,
    .download-item-responsive:hover .download-image {
        transform: none;
    }
}

/* Focus styles for keyboard navigation */
.nav-tabs-profile .nav-link:focus,
.follow-btn-responsive:focus,
.unfollow-btn-responsive:focus,
.btn-primary-responsive:focus,
.btn-action:focus,
.social-link-responsive:focus,
.profile-name-link:focus,
.contact-link:focus,
.btn-empty-action:focus,
.btn-download-action:focus {
    outline: 3px solid var(--profile-primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --profile-border-color: #000000;
        --profile-border-light: #666666;
        --profile-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.5);
        --profile-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
        --profile-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.5);
    }
    
    .profile-header-responsive {
        background: #000000;
    }
    
    .btn-action {
        border-width: 3px;
    }
    
    .profile-avatar-responsive {
        border-width: 6px;
        border-color: #ffffff;
    }
    
    .empty-state-icon i {
        opacity: 1;
    }
    
    .suggestion-card {
        border-width: 2px;
    }
    
    .btn-empty-action {
        border-width: 3px;
    }
    
    .download-item-responsive {
        border-width: 2px;
        border-color: #000;
    }
    
    .btn-download-action {
        border: 2px solid currentColor;
    }
    
    .btn-responsive {
        border: 2px solid currentColor;
    }
    
    .modal-content {
        border: 2px solid #000;
    }
}

/* ============================================ */
/* PRINT STYLES                                */
/* ============================================ */

@media print {
    .profile-wrapper {
        background: white;
    }
    
    .nav-tabs-profile,
    .follow-btn-responsive,
    .unfollow-btn-responsive,
    .download-actions-responsive,
    .pagination-responsive,
    .profile-actions-responsive,
    .btn-empty-action,
    .suggestion-cards {
        display: none;
    }
    
    .profile-header-responsive {
        background: #f8f9fa !important;
        color: #000000 !important;
    }
    
    .profile-details-responsive {
        box-shadow: none;
        border: 2px solid #000000;
    }
    
    .download-item-responsive {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
        margin-bottom: 1rem;
    }
    
    .empty-state-container {
        background: white;
        color: black;
    }
}
/* ============================================ */
/* NEW: Full Download Button Style             */
/* Add this to your profile.css file           */
/* ============================================ */

/* Full Download Button (replaces icon-only button) */
.file-download-btn-full {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--profile-primary-color, #007bff);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    min-width: 110px;
}

.file-download-btn-full:hover {
    background: var(--profile-primary-hover, #0056b3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.file-download-btn-full:active {
    transform: translateY(0);
}

.file-download-btn-full i {
    font-size: 1rem;
}

.file-download-btn-full span {
    white-space: nowrap;
}

/* Loading state for full download button */
.file-download-btn-full.loading {
    pointer-events: none;
    opacity: 0.7;
}

.file-download-btn-full.loading i {
    animation: profile-spin 1s linear infinite;
}

/* Success state */
.file-download-btn-full.success {
    background: #28a745;
}

/* Dark mode support */
body.dark-mode .file-download-btn-full {
    background: #0d6efd;
}

body.dark-mode .file-download-btn-full:hover {
    background: #0b5ed7;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

/* Mobile responsiveness */
@media (max-width: 767.98px) {
    .file-download-btn-full {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        min-width: 100px;
    }
}

@media (max-width: 575.98px) {
    .file-download-btn-full {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
        min-width: 90px;
        gap: 0.375rem;
    }
    
    .file-download-btn-full i {
        font-size: 0.9rem;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .file-download-btn-full {
        border: 2px solid currentColor;
    }
}