:root {
    /* Light theme colors */
    --primary-color: var(--theme-color);
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    
    /* Background colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-dark: #212529;
    
    /* Text colors */
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-light: #ffffff;
    
    /* Border colors */
    --border-color: #dee2e6;
    --border-dark: #495057;
    
    /* Shadow */
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Dark theme */
[data-theme="dark"] {
    --bg-primary: #212529;
    --bg-secondary: #343a40;
    --text-primary: #ffffff;
    --text-secondary: #adb5bd;
    --border-color: #495057;
}

/* Global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

/* Age Verification Styles */
.age-verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.age-verification-modal {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--box-shadow-lg);
    max-width: 500px;
    width: 90%;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header styles */
.main-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

/* Theme toggle button */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    transform: rotate(180deg);
}

/* Card styles */
.card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

/* Button styles */
.btn-primary {
    background-color: #495057;
    border-color: #343a40;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Form styles */
.form-control, .form-select {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.form-control:focus, .form-select:focus {
    background-color: var(--bg-primary);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Dark theme form controls */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background-color: var(--bg-secondary);
    border-color: var(--primary-color);
}

/* Product card styles */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-image {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--danger-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Dashboard styles */
.dashboard-stat-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
    border: none;
}

.dashboard-stat-card .card-body {
    padding: 1.5rem;
}

.stat-icon {
    font-size: 2rem;
    opacity: 0.8;
}

/* Sidebar styles */
.sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    min-height: calc(100vh - 76px);
}

.sidebar .nav-link {
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin: 0.25rem 0;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: var(--primary-color);
    color: white;
}

/* Table styles */
.table {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.table th {
    border-top: none;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
}

.table td {
    border-top: 1px solid var(--border-color);
}

/* Modal styles */
.modal-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

/* Alert styles */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Shopping cart styles */
.cart-item {
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.cart-summary {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9998;
}

/* Responsive styles */
@media (max-width: 768px) {
    .age-verification-modal {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .sidebar {
        position: fixed;
        left: -250px;
        width: 250px;
        height: 100vh;
        top: 0;
        z-index: 1050;
        transition: left 0.3s ease;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        display: none;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .product-image {
        height: 150px;
    }
}

/* Animation utilities */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.slide-up {
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Marketplace specific styles */
.seller-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    transition: all 0.3s ease;
    background: var(--bg-primary);
}

.seller-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.seller-card .card-header {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(25, 135, 84, 0.1) 100%);
    border-bottom: 1px solid var(--border-color);
}

.seller-rating-stars {
    color: #ffc107;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.seller-stats {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 1rem;
}

.seller-stat-item {
    text-align: center;
    padding: 0.5rem;
}

.seller-stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.seller-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 500;
}

/* Seller profile specific styles */
.seller-profile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    position: relative;
    overflow: hidden;
}

.seller-profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff" opacity="0.1"><polygon points="1000,100 1000,0 0,100"/></svg>');
    background-size: cover;
}

.seller-avatar {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
}

.seller-badge {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rating-breakdown {
    background: var(--bg-primary);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
}

.rating-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    margin: 0.25rem 0;
}

.rating-progress {
    height: 100%;
    background: linear-gradient(90deg, #ffc107 0%, #ff8c00 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.payment-method-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.payment-method-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.payment-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 1rem;
}

/* Product grid improvements */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.product-card-enhanced {
    background: var(--bg-primary);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    position: relative;
}

.product-card-enhanced:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: var(--bg-secondary);
}

.product-image-enhanced {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card-enhanced:hover .product-image-enhanced {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card-enhanced:hover .product-overlay {
    opacity: 1;
}

.quick-view-btn {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.quick-view-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.product-price-enhanced {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.product-rating .stars {
    color: #ffc107;
    margin-right: 0.5rem;
}

.seller-info-mini {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.seller-mini-avatar {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    margin-right: 0.75rem;
}

/* Review card styles */
.review-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.review-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 1rem;
}

.review-rating {
    color: #ffc107;
    margin-bottom: 0.5rem;
}

.review-text {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Tab improvements */
.nav-tabs {
    border-bottom: 2px solid var(--border-color);
}

.nav-tabs .nav-link {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    background: none;
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

/* Statistics cards */
.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scale(1.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* Filter section */
.filter-section {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
    box-shadow: var(--box-shadow);
}

.filter-card {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

/* Breadcrumb improvements */
.breadcrumb {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--text-secondary);
    font-weight: bold;
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Dark theme adjustments for marketplace */
[data-theme="dark"] .seller-card {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .seller-card .card-header {
    background: rgba(255,255,255,0.05);
}

[data-theme="dark"] .payment-method-card {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .review-card {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .main-header,
    .sidebar {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
}

/* Enhanced Seller Cards for Homepage */
.seller-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.seller-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.seller-avatar-container {
    position: relative;
    display: inline-block;
}

.seller-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.3);
    transition: transform 0.3s ease;
}

.seller-card:hover .seller-avatar {
    transform: scale(1.1);
}

.seller-card .stat-item {
    padding: 0.5rem 0;
}

.seller-card .stat-item i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    display: block;
}

.seller-card .stat-number {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--bs-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.seller-card .rating-stars {
    margin-bottom: 0.25rem;
}

.seller-card .rating-stars i {
    font-size: 0.9rem;
    margin: 0 1px;
}

/* Border colors for seller cards */
.seller-card.border-primary .stat-number {
    color: var(--primary-color);
}

.seller-card.border-success .stat-number {
    color: var(--success-color);
}

/* Responsive adjustments for seller cards */
@media (max-width: 768px) {
    .seller-card .seller-avatar {
        width: 50px;
        height: 50px;
    }
    
    .seller-card .stat-number {
        font-size: 1.2rem;
    }
    
    .seller-card .stat-item i {
        font-size: 1rem;
    }
}

/* Customer Index Page Specific Styles */
/* Navbar Styles */
.main-header {
    box-shadow: 0 2px 10px var(--header-shadow);
    height: 64px;
    z-index: 1030;
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    padding: 0;
    transition: all 0.3s ease;
}

.main-header .container-fluid {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

@media (min-width: 992px) {
    .main-header .container-fluid {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.main-header .navbar-brand {
    color: white !important;
    font-size: 1.25rem;
    padding: 0;
    margin-right: 2rem;
    height: 36px;
    display: flex;
    align-items: center;
}

.main-header .navbar-brand img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.main-header .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    border-radius: 8px;
}

.main-header .nav-item {
    display: flex;
    align-items: center;
}

.main-header .nav-link:hover,
.main-header .nav-link:focus {
    color: rgba(255, 255, 255, 0.7) !important;
}

.main-header .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.main-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-brand {
    font-weight: 600;
}

/* Navbar Icons and Dropdowns */
.nav-item .nav-link {
    position: relative;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-item .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cart-count {
    font-size: 0.65rem;
    padding: 0.25rem 0.45rem;
    border: 2px solid white;
}

.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.avatar-circle {
    width: 48px;
    height: 48px;
    background: rgba(var(--theme-color-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-item {
    border-radius: 8px;
    margin: 2px 6px;
    padding: 8px 12px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(var(--theme-color-rgb), 0.1);
    transform: translateX(5px);
}

.dropdown-item i {
    transition: transform 0.2s ease;
}

.dropdown-item:hover i {
    transform: scale(1.1);
}

.cart-preview {
    min-height: 200px;
}

.search-input {
    border: 1px solid rgba(0,0,0,0.1);
    padding-right: 40px;
    transition: all 0.3s ease;
}

.search-input:focus {
    box-shadow: 0 0 0 0.25rem var(--theme-shadow);
    border-color: var(--theme-color);
}

.search-results {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-top: 5px;
    padding: 10px 0;
}

.search-result-item {
    padding: 8px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.search-result-item:hover {
    background-color: rgba(0,0,0,0.05);
}

.search-result-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
}

.search-result-item .product-info {
    flex: 1;
}

.search-result-item .product-name {
    font-weight: 500;
    margin-bottom: 2px;
}

.search-result-item .product-price {
    font-size: 0.85rem;
    color: var(--theme-color);
}

/* Mobile Navigation Styles */
@media (max-width: 991.98px) {
    /* Enhanced Navbar Toggler */
    .navbar-toggler {
        border: none !important;
        padding: 8px 12px;
        border-radius: 8px;
        background: rgba(255,255,255,0.1);
        transition: all 0.3s ease;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(255,255,255,0.2) !important;
    }

    .navbar-toggler i {
        font-size: 1.2rem;
        color: white;
        transition: all 0.3s ease;
    }

    .navbar-toggler:hover {
        background: rgba(255,255,255,0.2);
        transform: scale(1.05);
    }

    /* Mobile Menu Overlay */
    .navbar-collapse.show {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(51, 51, 51, 0.98) 0%, rgba(51, 51, 51, 0.95) 100%);
        z-index: 1050;
        overflow-y: auto;
        padding: 1rem;
        margin: 0;
        border-radius: 0;
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        animation: slideInMenu 0.3s ease-out;
    }

    @keyframes slideInMenu {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .navbar-collapse {
        background: linear-gradient(135deg, rgb(51, 51, 51) 0%, rgba(51, 51, 51, 0.95) 100%);
        padding: 1.5rem;
        border-radius: 20px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.2);
        margin-top: 15px;
        border: 1px solid rgba(255,255,255,0.1);
        backdrop-filter: blur(10px);
        animation: mobileMenuSlide 0.3s ease-out;
    }

    @keyframes mobileMenuSlide {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Mobile Search Bar */
    .navbar-collapse .mobile-search {
        width: 100%;
        margin-bottom: 1.5rem;
        position: relative;
    }

    .mobile-search .search-input {
        background: rgba(255,255,255,0.95);
        border: 2px solid transparent;
        border-radius: 25px;
        padding: 12px 50px 12px 20px;
        font-size: 1rem;
        width: 100%;
        color: #333;
        transition: all 0.3s ease;
    }

    .mobile-search .search-input:focus {
        background: #ffffff;
        border-color: var(--theme-color);
        box-shadow: 0 0 0 3px rgba(var(--theme-color-rgb), 0.2);
        transform: scale(1.02);
    }

    .mobile-search.search-focused {
        transform: scale(1.02);
    }

    .mobile-search .search-btn {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        background: var(--theme-color);
        border: none;
        border-radius: 50%;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        transition: all 0.3s ease;
    }

    .mobile-search .search-btn:hover {
        background: var(--theme-color-hover);
        transform: translateY(-50%) scale(1.1);
    }

    /* Mobile Navigation Items */
    .main-header .navbar-nav {
        gap: 0;
        margin-top: 0;
        flex-direction: column;
        width: 100%;
    }
    
    .navbar-nav .nav-item {
        margin: 0 0 8px 0;
        width: 100%;
    }

    .navbar-nav .nav-link {
        background: rgba(255,255,255,0.1);
        border-radius: 12px;
        padding: 12px 16px !important;
        margin: 2px 0;
        display: flex;
        align-items: center;
        color: rgba(255,255,255,0.9) !important;
        transition: all 0.3s ease;
        border: 1px solid transparent;
    }

    .navbar-nav .nav-link:hover {
        background: rgba(255,255,255,0.2);
        color: #ffffff !important;
        transform: translateX(5px);
        border-color: rgba(255,255,255,0.3);
    }

    .navbar-nav .nav-link i {
        margin-right: 12px;
        width: 20px;
        text-align: center;
        font-size: 1.1rem;
    }

    /* Mobile User Dropdown */
    .mobile-user-info {
        background: rgba(255,255,255,0.15);
        border-radius: 15px;
        padding: 1rem;
        margin-top: 1rem;
        border: 1px solid rgba(255,255,255,0.2);
    }

    .mobile-user-header {
        display: flex;
        align-items: center;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .mobile-user-avatar {
        width: 50px;
        height: 50px;
        background: var(--theme-color);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 15px;
        border: 2px solid rgba(255,255,255,0.3);
    }

    .mobile-user-avatar i {
        color: white;
        font-size: 1.5rem;
    }

    .mobile-user-details h6 {
        color: white;
        margin-bottom: 5px;
        font-weight: 600;
    }

    .mobile-user-details small {
        color: rgba(255,255,255,0.7);
        font-size: 0.85rem;
    }

    .mobile-user-stats {
        display: flex;
        justify-content: space-around;
        margin-bottom: 1rem;
    }

    .mobile-stat {
        text-align: center;
        color: white;
    }

    .mobile-stat h6 {
        margin-bottom: 2px;
        font-size: 1.1rem;
        font-weight: bold;
    }

    .mobile-stat small {
        color: rgba(255,255,255,0.7);
        font-size: 0.75rem;
    }

    /* Mobile Menu Items */
    .mobile-menu-items {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .mobile-menu-item {
        background: rgba(255,255,255,0.1);
        border-radius: 10px;
        padding: 12px;
        text-align: center;
        color: white;
        text-decoration: none;
        transition: all 0.3s ease;
        border: 1px solid rgba(255,255,255,0.1);
    }

    .mobile-menu-item:hover {
        background: rgba(255,255,255,0.2);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

    .mobile-menu-item i {
        font-size: 1.2rem;
        margin-bottom: 5px;
        display: block;
    }

    .mobile-menu-item span {
        font-size: 0.85rem;
        font-weight: 500;
    }

    /* Mobile Navigation Menu */
    .mobile-nav-menu {
        margin: 1rem 0;
    }

    .mobile-nav-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .mobile-nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15px 10px;
        background: rgba(255,255,255,0.1);
        border-radius: 12px;
        color: white;
        text-decoration: none;
        transition: all 0.3s ease;
        border: 1px solid rgba(255,255,255,0.1);
    }

    .mobile-nav-link:hover {
        background: rgba(255,255,255,0.2);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

    .mobile-nav-link i {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .mobile-nav-link span {
        font-size: 0.9rem;
        font-weight: 500;
    }

    .mobile-logout .btn {
        width: 100%;
        background: linear-gradient(135deg, #dc3545, #c82333);
        border: none;
        border-radius: 12px;
        padding: 12px;
        color: white;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .mobile-logout .btn:hover {
        background: linear-gradient(135deg, #c82333, #bd2130);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    }
}

@media (min-width: 992px) {
    .navbar-nav .nav-item {
        margin-left: 10px;
    }
    
    .nav-link {
        padding: 8px 12px !important;
    }
}

/* Level Badge Enhanced Styles */
.level-badge {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.level-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.level-badge:hover::before {
    left: 100%;
}

/* Bronze Level Styles */
.level-bronze {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1), rgba(160, 82, 45, 0.1)) !important;
    border: 1px solid rgba(139, 69, 19, 0.3) !important;
}

.level-bronze:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3) !important;
    border-color: #8B4513 !important;
}

/* Silver Level Styles */
.level-silver {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), rgba(169, 169, 169, 0.1)) !important;
    border: 1px solid rgba(192, 192, 192, 0.3) !important;
}

.level-silver:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(192, 192, 192, 0.4) !important;
    border-color: #C0C0C0 !important;
}

/* Gold Level Styles */
.level-gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 223, 0, 0.15)) !important;
    border: 1px solid rgba(255, 215, 0, 0.4) !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2) !important;
}

.level-gold:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5) !important;
    border-color: #FFD700 !important;
}

/* Platinum Level Styles */
.level-platinum {
    background: linear-gradient(135deg, rgba(113, 121, 126, 0.1), rgba(128, 138, 145, 0.15)) !important;
    border: 1px solid rgba(113, 121, 126, 0.4) !important;
    box-shadow: 0 0 15px rgba(113, 121, 126, 0.2) !important;
}

.level-platinum:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(113, 121, 126, 0.5) !important;
    border-color: #71797E !important;
}

/* Level Icon Animation */
.level-icon {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.level-badge:hover .level-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Level Text Shadow */
.level-text {
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.level-badge:hover .level-text {
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Points Badge Enhanced */
.points-badge {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(192, 57, 43, 0.1)) !important;
    border: 1px solid rgba(231, 76, 60, 0.3) !important;
    transition: all 0.3s ease !important;
}

.points-badge:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3) !important;
    border-color: #e74c3c !important;
}

/* Modern Custom Tabs - Inspired by mobile app design */
.custom-tabs {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.75rem;
    list-style: none;
    margin: 0 auto 1.5rem;
    max-width: 700px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.custom-tabs::-webkit-scrollbar {
    display: none;
}

.custom-tab-item {
    flex: 1;
    min-width: 75px;
    max-width: 110px;
    display: flex;
}

.custom-tab-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 12px;
    text-decoration: none;
    color: #64748b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: 100%;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.custom-tab-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-tab-link:hover::before {
    opacity: 1;
}

.custom-tab-link:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.custom-tab-link.active {
    background: linear-gradient(135deg, var(--theme-color, #3b82f6) 0%, rgba(59, 130, 246, 0.8) 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.custom-tab-link.active::before {
    opacity: 0.2;
}

.custom-tab-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    position: relative;
}

.custom-tab-link:hover .custom-tab-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(59, 130, 246, 0.15);
}

.custom-tab-link.active .custom-tab-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.custom-tab-text {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.custom-tab-link:hover .custom-tab-text {
    transform: translateY(-1px);
}

.custom-tab-link.active .custom-tab-text {
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Mobile responsive design */
@media (max-width: 768px) {
    .custom-tabs {
        gap: 0.5rem;
        padding: 0.75rem;
        border-radius: 16px;
        margin-bottom: 1.5rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }
    
    .custom-tab-item {
        min-width: 75px;
        max-width: 100px;
    }
    
    .custom-tab-link {
        padding: 0.75rem 0.5rem;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    .custom-tab-icon {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
        margin-bottom: 0.35rem;
        border-radius: 8px;
    }
    
    .custom-tab-text {
        font-size: 0.75rem;
        font-weight: 500;
    }
    
    .custom-tab-link.active .custom-tab-text {
        font-weight: 600;
    }
}

@media (max-width: 480px) {
    .custom-tabs {
        gap: 0.35rem;
        padding: 0.5rem;
        margin-bottom: 1rem;
        overflow-x: scroll;
        justify-content: flex-start;
    }
    
    .custom-tab-item {
        flex: 0 0 auto;
        min-width: 70px;
        max-width: 85px;
    }
    
    .custom-tab-link {
        padding: 0.6rem 0.4rem;
    }
    
    .custom-tab-icon {
        width: 28px;
        height: 28px;
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .custom-tab-text {
        font-size: 0.7rem;
        line-height: 1.1;
    }
}

/* Dark theme support */
[data-bs-theme="dark"] .custom-tabs {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .custom-tab-link {
    background: rgba(51, 65, 85, 0.9);
    color: #cbd5e1;
}

[data-bs-theme="dark"] .custom-tab-link:hover {
    background: rgba(71, 85, 105, 0.9);
}

[data-bs-theme="dark"] .custom-tab-link.active {
    background: linear-gradient(135deg, var(--theme-color, #3b82f6) 0%, rgba(59, 130, 246, 0.9) 100%);
    color: white;
}

[data-bs-theme="dark"] .custom-tab-icon {
    background: rgba(59, 130, 246, 0.15);
}

[data-bs-theme="dark"] .custom-tab-link:hover .custom-tab-icon {
    background: rgba(59, 130, 246, 0.2);
}

[data-bs-theme="dark"] .custom-tab-link.active .custom-tab-icon {
    background: rgba(255, 255, 255, 0.15);
}

/* Animation for tab switching */
@keyframes tabSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-pane.show {
    animation: tabSlideIn 0.3s ease-out;
}

/* Utility classes for better mobile experience */
.custom-tabs-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.custom-tabs-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.05), transparent);
    border-radius: 25px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-tabs-wrapper:hover::before {
    opacity: 1;
}

/* Enhanced accessibility */
.custom-tab-link:focus {
    outline: 2px solid var(--theme-color, #3b82f6);
    outline-offset: 2px;
}

.custom-tab-link:focus-visible {
    outline: 2px solid var(--theme-color, #3b82f6);
    outline-offset: 2px;
}

/* Loading state for tabs */
.custom-tab-link.loading {
    opacity: 0.7;
    pointer-events: none;
}

.custom-tab-link.loading .custom-tab-icon {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Better scroll behavior for mobile */
@media (max-width: 480px) {
    .custom-tabs {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    .custom-tabs::after {
        content: '';
        flex: 0 0 1px;
        height: 1px;
    }
}

/* Improved contrast for better readability */
@media (prefers-contrast: high) {
    .custom-tab-link {
        border: 2px solid currentColor;
    }
    
    .custom-tab-link.active {
        background: var(--theme-color, #3b82f6) !important;
        color: white !important;
    }
}

/* Product Card Enhanced Styles */
.product-card-enhanced {
    background: var(--bg-card);
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.product-card-enhanced:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image-enhanced {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card-enhanced:hover .product-image-enhanced {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card-enhanced:hover .product-overlay {
    opacity: 1;
}

.quick-view-btn {
    color: white;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.quick-view-btn:hover {
    background: rgba(255,255,255,0.3);
    color: white;
}

.product-price-enhanced {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theme-color);
    margin: 8px 0;
}

.seller-info-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-top: 1px solid var(--border-color);
    background: rgba(0,0,0,0.02);
}

.seller-mini-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--theme-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-sm {
    font-size: 0.7rem;
    padding: 0.2em 0.6em;
}

.animate-fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card styles */
.hover-lift {
    transform: translateY(0);
    transition: all 0.3s ease !important;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
}

.row.g-3 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
    margin-right: calc(var(--bs-gutter-x) * -.5);
    margin-left: calc(var(--bs-gutter-x) * -.5);
}

.row.g-3 > * {
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-bottom: var(--bs-gutter-y);
}

/* Seller Card Layout Improvements */
.seller-avatar-container {
    flex-shrink: 0 !important;
    min-width: 60px !important;
}

.min-width-0 {
    min-width: 0 !important;
}

.text-truncate {
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
}

.card-header .d-flex {
    gap: 1rem !important;
}

.seller-card .flex-grow-1 {
    min-width: 0 !important;
    flex-basis: 0 !important;
}

.seller-card .badge {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

@media (max-width: 576px) {
    .seller-card .card-header .d-flex {
        gap: 0.75rem !important;
    }
    
    .seller-card .seller-avatar-container {
        min-width: 50px !important;
    }
    
    .seller-card .seller-avatar {
        width: 50px !important;
        height: 50px !important;
    }
}

.card-header {
    border: none !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 1.25rem !important;
    text-align: center !important;
    position: relative !important;
    height: 160px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

.card-header .seller-avatar-container {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto 0.75rem !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

.card-header .seller-avatar {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    border: 3px solid #ffffff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.card-header h6 {
    color: #ffffff !important;
    margin: 0 0 0.25rem 0 !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.card-header .badge {
    position: absolute !important;
    top: 0.75rem !important;
    right: 0.75rem !important;
    font-size: 0.75rem !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 20px !important;
    background-color: #212529 !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

@media (max-width: 768px) {
    .card-header {
        height: 140px !important;
        padding: 1rem !important;
    }
    .card-header .seller-avatar-container {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 0.5rem !important;
    }
    .card-header h6 {
        font-size: 1rem !important;
        line-height: 1.3 !important;
    }
    .card-header .badge {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.7rem !important;
    }
    
    .seller-card .card-header .d-flex {
        padding: 0.75rem !important;
    }
    
    .seller-card .card-header h6 {
        font-size: 0.95rem !important;
    }
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem !important;
}

/* Ensure seller cards have equal height and button alignment */
.seller-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.seller-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.seller-card .card-body .mt-auto {
    margin-top: auto !important;
}

.seller-card .card-body .text-muted {
    word-break: break-word !important;
    hyphens: auto !important;
    line-height: 1.4 !important;
}

.card-footer {
    background: none;
    border-top: 1px solid var(--border-color);
    padding: 0.75rem;
}

@media (max-width: 768px) {
    .card-header {
        padding: 0.75rem;
    }
    .card-header .avatar {
        width: 48px;
        height: 48px;
    }
    .card-header h5 {
        font-size: 0.9rem;
    }
}

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
}

/* Seller cards */
.seller-card {
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--theme-shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.seller-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px var(--theme-shadow);
}

/* Rating stars */
.rating-stars {
    color: #ffc107;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.rating-stars .fas.fa-star {
    font-size: 0.875rem;
}

.rating-count {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Best Seller Animations */
.best-seller-card {
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.best-seller-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.3), transparent);
    animation: shimmer 2s infinite;
    z-index: 1;
    pointer-events: none;
}

.best-seller-badge {
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.product-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.best-seller-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.2);
}

/* Stats */
.stats-container {
    display: flex;
    justify-content: space-around;
    margin: 0.75rem 0;
    text-align: center;
}

.stat-item {
    flex: 1;
}

.stat-item .fas {
    color: var(--theme-color);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary) !important;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary) !important;
}

.stat-number {
    color: var(--text-primary) !important;
    font-weight: 600;
}

/* Rating stars */
.rating-stars .fas.fa-star {
    color: var(--text-muted) !important;
}

.rating-stars .fas.fa-star.text-warning {
    color: #ffc107 !important;
}

/* Links */
a {
    color: var(--theme-color);
    text-decoration: none;
}

a:hover {
    color: var(--theme-color);
    text-decoration: underline;
}

/* Buttons */
.btn-outline-primary {
    color: var(--theme-color);
    border-color: var(--theme-color);
}

.btn-outline-primary:hover {
    background-color: var(--theme-color);
    border-color: var(--theme-color);
    color: #ffffff;
}

/* Event cards */
.event-card {
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--theme-shadow);
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px var(--theme-shadow);
}

/* Tab pane content */
.tab-pane {
    padding: 0.5rem;
}

.tab-content {
    max-width: 1200px;
    margin: 0 auto;
}

.tab-pane .row {
    margin: -0.5rem;
}

.tab-pane .col-md-3,
.tab-pane .col-lg-3,
.tab-pane .col-sm-6,
.tab-pane .col-6 {
    padding: 0.5rem;
}

.tab-pane .card {
    margin-bottom: 0;
}

.tab-pane h4,
.tab-pane h5 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.tab-pane .card-body {
    padding: 0.75rem;
}

.tab-pane .card-text {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.tab-pane .card-footer {
    padding: 0.5rem 0.75rem;
}

.tab-pane .btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .tab-pane {
        padding: 0.35rem;
    }
    .tab-pane .row {
        margin: -0.35rem;
    }
    .tab-pane .col-md-3,
    .tab-pane .col-lg-3,
    .tab-pane .col-sm-6,
    .tab-pane .col-6 {
        padding: 0.35rem;
    }
    .tab-pane h4,
    .tab-pane h5 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    .tab-pane .card-body {
        padding: 0.5rem;
    }
    .tab-pane .card-text {
        font-size: 0.8rem;
    }
    .tab-pane .btn {
        padding: 0.2rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* Sales Analytics Styles */
.bg-gradient-primary {
    background: linear-gradient(45deg, var(--theme-color), #667eea) !important;
}

.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
}

.chart-color-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.analytics-card {
    transition: all 0.3s ease;
    border-radius: 16px !important;
}

.analytics-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

@media print {
    .btn, .no-print {
        display: none !important;
    }
    
    .analytics-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .chart-container {
        height: 300px !important;
    }
    
    body {
        font-size: 12px;
    }
    
    .card-header {
        background: #f8f9fa !important;
        color: #000 !important;
    }
}

@media (max-width: 768px) {
    .chart-container {
        height: 300px !important;
    }
    
    .analytics-card .card-body {
        padding: 1rem !important;
    }
    
    .analytics-card .card-header {
        padding: 1rem !important;
    }
    
    .analytics-card .card-header h5 {
        font-size: 1rem !important;
    }
    
    .analytics-card .card-header .btn {
        font-size: 0.8rem !important;
        padding: 0.25rem 0.5rem !important;
    }
}

/* List group improvements */
.list-group-item {
    border: none;
    padding: 0.75rem 0;
}

.list-group-item:not(:last-child) {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* Summary stats styling */
.analytics-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1rem;
}

.stat-card {
    text-align: center;
    padding: 0.5rem;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--theme-color);
}

.stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

/* Chart toggle button */
.chart-toggle-btn {
    transition: all 0.3s ease;
}

.chart-toggle-btn:hover {
    transform: scale(1.05);
}

/* =================================
   SMOOTH TRANSITIONS & ANIMATIONS
   ================================= */

/* Smooth transitions for all tab content changes */
.tab-content {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-pane {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    opacity: 1;
}

.tab-pane:not(.show) {
    opacity: 0;
    transform: translateY(10px);
}

.tab-pane.fade:not(.show) {
    opacity: 0;
    transform: translateY(10px);
}

.tab-pane.fade.show {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth transitions for mobile sidebar */
#mobileSidebar {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-backdrop {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth card hover transitions */
.product-card,
.seller-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover,
.seller-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Smooth menu animations for navbar */
.navbar-toggler {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-collapse {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-nav .nav-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* Smooth button animations */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Custom smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Smooth loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth responsive breakpoint transitions */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =================================
   ENHANCED PROFILE BUTTON STYLES
   ================================= */

/* Base Profile Button Styles */
.profile-btn {
    position: relative;
    overflow: hidden;
    border-radius: 12px !important;
    padding: 0.65rem 1.25rem !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.3px;
    text-transform: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none !important;
}

.profile-btn:hover,
.profile-btn:focus,
.profile-btn:active {
    text-decoration: none !important;
}

.profile-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.profile-btn:hover::before {
    left: 100%;
}

.profile-btn i {
    transition: transform 0.3s ease;
    font-size: 0.95rem;
}

.profile-btn:hover i {
    transform: scale(1.15) rotate(5deg);
}

/* Primary Profile Button (HOP) */
.profile-btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.profile-btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.profile-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

/* Success Profile Button (Store) */
.profile-btn-success {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

.profile-btn-success:hover {
    background: linear-gradient(135deg, #146c43 0%, #0f5132 100%) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 135, 84, 0.4);
}

.profile-btn-success:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(25, 135, 84, 0.3);
}

/* Warning Profile Button (Events) */
.profile-btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%) !important;
    color: #212529 !important;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    font-weight: 600 !important;
}

.profile-btn-warning:hover {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.profile-btn-warning:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

/* Outline Profile Button */
.profile-btn-outline {
    background: transparent !important;
    border: 2px solid #0d6efd !important;
    color: #0d6efd !important;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.15);
}

.profile-btn-outline:hover {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%) !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.profile-btn-outline:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

/* Focus States for Accessibility */
.profile-btn:focus {
    outline: 2px solid rgba(13, 110, 253, 0.5);
    outline-offset: 2px;
}

.profile-btn-primary:focus {
    outline-color: rgba(13, 110, 253, 0.5);
}

.profile-btn-success:focus {
    outline-color: rgba(25, 135, 84, 0.5);
}

.profile-btn-warning:focus {
    outline-color: rgba(255, 193, 7, 0.5);
}

.profile-btn-outline:focus {
    outline-color: rgba(13, 110, 253, 0.5);
}

/* Active State Animation */
.profile-btn:active {
    transition: all 0.1s ease;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .profile-btn {
        padding: 0.6rem 1rem !important;
        font-size: 0.85rem !important;
        border-radius: 10px !important;
    }
    
    .profile-btn i {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .profile-btn {
        padding: 0.55rem 0.9rem !important;
        font-size: 0.8rem !important;
        letter-spacing: 0.2px;
    }
    
    .profile-btn i {
        font-size: 0.85rem;
        margin-right: 0.35rem !important;
    }
}

/* Dark Theme Support */
[data-theme="dark"] .profile-btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%) !important;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

[data-theme="dark"] .profile-btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%) !important;
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.5);
}

[data-theme="dark"] .profile-btn-success {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%) !important;
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.4);
}

[data-theme="dark"] .profile-btn-success:hover {
    background: linear-gradient(135deg, #146c43 0%, #0f5132 100%) !important;
    box-shadow: 0 6px 20px rgba(25, 135, 84, 0.5);
}

[data-theme="dark"] .profile-btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%) !important;
    color: #212529 !important;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

[data-theme="dark"] .profile-btn-warning:hover {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
}

[data-theme="dark"] .profile-btn-outline {
    border-color: #0d6efd !important;
    color: #0d6efd !important;
}

[data-theme="dark"] .profile-btn-outline:hover {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.5);
}

/* Loading State */
.profile-btn.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.profile-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =================================
   PAGINATION LINK STYLES
   ================================= */

/* Page Link Styling - Follow Theme Color from Database */
.page-link,
.page-link:link,
.page-link:visited {
    color: #000000 !important;
    background-color: #ffffff;
    border-color: var(--theme-color, #0d6efd);
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-link:hover,
.page-link:focus {
    color: #ffffff !important;
    background-color: var(--theme-color, #0d6efd);
    border-color: var(--theme-color, #0d6efd);
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.page-link:active {
    color: #ffffff !important;
    background-color: var(--theme-color, #0d6efd);
    border-color: var(--theme-color, #0d6efd);
    text-decoration: none !important;
}

.page-item.active .page-link {
    color: #ffffff !important;
    background-color: var(--theme-color, #0d6efd) !important;
    border-color: var(--theme-color, #0d6efd) !important;
    text-decoration: none !important;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-item.disabled .page-link {
    color: #6c757d !important;
    background-color: #ffffff;
    border-color: #dee2e6;
    text-decoration: none !important;
    cursor: not-allowed;
    opacity: 0.6;
}

.page-item.disabled .page-link:hover {
    color: #6c757d !important;
    background-color: #ffffff;
    border-color: #dee2e6;
    transform: none;
    box-shadow: none;
}