.marketplace-hero-compact {
    padding: 40px 0 10px;
    background: linear-gradient(135deg, var(--jungle-dark) 0%, var(--jungle-medium) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.marketplace-hero-compact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(168, 255, 62, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(130, 240, 41, 0.15) 0%, transparent 50%);
    background-size: auto, auto;
    opacity: 0.4;
    z-index: 1;
}

.marketplace-hero-compact::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="%23a8ff3e" stroke-width="1.5" stroke-dasharray="5,5"/></svg>');
    background-size: 150px;
    opacity: 0.3;
    z-index: 1;
}

.marketplace-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.marketplace-hero-compact h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: var(--white);
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.marketplace-subtitle {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--primary-lime);
    font-weight: 500;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.marketplace-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--bright-lime);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--light-green);
    font-weight: 500;
    opacity: 0.9;
}

/* Species Categories Grid */
.species-categories {
    padding: 20px 0;
    background: var(--white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
}

.category-card {
    background: linear-gradient(145deg, #ffffff, #f8fdf8);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #a8ff3e, #2e7d32, #82f029);
    z-index: 2;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(46, 125, 50, 0.25);
    border-color: #a8ff3e;
}

.category-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.category-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover .category-image::after {
    opacity: 1;
}

.category-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.15);
}

.no-species-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #a8ff3e, #2e7d32);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

.category-content {
    padding: 20px 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.category-content h3 {
    font-size: 1.2rem;
    color: #0d1f0d;
    margin-bottom: 8px;
    line-height: 1.3;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(46, 125, 50, 0.3);
}

.category-content p {
    color: #2e7d32;
    margin-bottom: 15px;
    line-height: 1.4;
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
}

.view-species {
    color: white;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #82f029, #2e7d32);
    padding: 10px 15px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(130, 240, 41, 0.4);
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.view-species::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;
}

.category-card:hover .view-species::before {
    left: 100%;
}

.category-card:hover .view-species {
    background: linear-gradient(135deg, #a8ff3e, #4caf50);
    box-shadow: 0 6px 18px rgba(168, 255, 62, 0.5);
    gap: 12px;
}

/* Species-specific color accents */
.category-card:nth-child(1) .view-species {
    background: linear-gradient(135deg, #82f029, #1b5e20);
}
.category-card:nth-child(2) .view-species {
    background: linear-gradient(135deg, #a8ff3e, #2e7d32);
}
.category-card:nth-child(3) .view-species {
    background: linear-gradient(135deg, #4caf50, #1b5e20);
}
.category-card:nth-child(4) .view-species {
    background: linear-gradient(135deg, #82f029, #4caf50);
}
.category-card:nth-child(5) .view-species {
    background: linear-gradient(135deg, #a8ff3e, #1b5e20);
}
.category-card:nth-child(6) .view-species {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
}

/* Featured Sections */
.featured-reptiles {
    padding: 60px 0;
    background: var(--light-gray);
}

.featured-sellers {
    padding: 60px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--dark-green);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    max-width: 500px;
    margin: 0 auto;
}

/* Featured Grids - Consistent 6 column layout */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
    align-items: stretch;
}

.sellers-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
    margin-top: 30px;
}

/* Seller Card Styles */
.seller-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.seller-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.seller-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-green);
}

.seller-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller-username {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 10px;
}

.seller-stats {
    margin-bottom: 15px;
}

.seller-stat, .seller-location {
    font-size: 0.85rem;
    color: var(--dark-gray);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.seller-stat i, .seller-location i {
    color: var(--primary-green);
    font-size: 0.8rem;
}

.seller-meta {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

.seller-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.stars {
    color: #FFD700;
    font-size: 0.9rem;
}

.rating-text {
    font-size: 0.8rem;
    color: var(--dark-gray);
    font-weight: 500;
}

.member-since {
    font-size: 0.75rem;
    color: #888;
    font-style: italic;
}

/* No sellers state */
.no-sellers, .error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 12px;
    border: 2px dashed #ddd;
}

.no-sellers i, .error-message i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 15px;
    display: block;
}

.no-sellers p, .error-message p {
    color: var(--dark-gray);
    font-size: 1.1rem;
}

.error-message i {
    color: #ff6b6b;
}

/* Benefits Section */
.marketplace-benefits {
    padding: 60px 0;
    background: var(--light-gray);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-item {
    text-align: center;
    padding: 25px 15px;
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: var(--light-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--primary-green);
    font-size: 1.8rem;
    transition: all 0.3s;
}

.benefit-item:hover .benefit-icon {
    background: var(--primary-green);
    color: var(--white);
    transform: scale(1.1);
}

.benefit-item h3 {
    font-size: 1.2rem;
    color: var(--dark-green);
    margin-bottom: 12px;
}

.benefit-item p {
    color: var(--dark-gray);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* No species state */
.no-species {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--dark-gray);
}

.no-species i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
    display: block;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--dark-gray);
}

.no-results i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
    display: block;
}

.loading-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--dark-gray);
    font-style: italic;
}

/* Marketplace content container */
.marketplace-content-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* Ensure no underlining on marketplace stats */
.marketplace-stats,
.marketplace-stats .stat-item,
.marketplace-stats .stat-number,
.marketplace-stats .stat-label {
    text-decoration: none !important;
}

/* Additional protection against any inherited link styles */
.marketplace-hero-compact a,
.marketplace-hero-compact span,
.marketplace-hero-compact div {
    text-decoration: none;
}

/* Specifically target the stat elements */
.stat-item,
.stat-number, 
.stat-label {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Gentle SLOW pulse animation for marketplace stats - ALL TOGETHER */
@keyframes gentle-slow-pulse-glow {
    0%, 100% {
        text-shadow: 0 0 0 rgba(168, 255, 62, 0);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 20px rgba(168, 255, 62, 0.7), 
                     0 0 35px rgba(168, 255, 62, 0.5),
                     0 0 50px rgba(168, 255, 62, 0.3);
        transform: scale(1.08);
    }
}

/* Apply SLOW pulse animation to ALL stat numbers simultaneously */
.stat-number {
    animation: gentle-slow-pulse-glow 8s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

/* Add a subtle background gradient behind numbers for better glow visibility */
.stat-item {
    position: relative;
}

.stat-number::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(168, 255, 62, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-number:hover::before {
    opacity: 1;
}

/* Enhanced hover effect */
.stat-number:hover {
    animation-duration: 4s;
    text-shadow: 0 0 25px rgba(168, 255, 62, 0.9), 
                 0 0 40px rgba(168, 255, 62, 0.7),
                 0 0 60px rgba(168, 255, 62, 0.5);
}

/* Add a subtle pulse animation to cards */
@keyframes subtle-pulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.category-card {
    animation: subtle-pulse 6s ease-in-out infinite;
}

.category-card:nth-child(2) {
    animation-delay: 1s;
}

.category-card:nth-child(3) {
    animation-delay: 2s;
}

.category-card:nth-child(4) {
    animation-delay: 3s;
}

.category-card:nth-child(5) {
    animation-delay: 4s;
}

.category-card:nth-child(6) {
    animation-delay: 5s;
}

.category-card:hover {
    animation: none;
}

/* Add a decorative element to cards */
.category-card::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23a8ff3e"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>');
    background-size: contain;
    opacity: 0.7;
    z-index: 1;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .categories-grid,
    .featured-grid,
    .sellers-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .marketplace-hero-compact {
        padding: 30px 0 20px;
    }
    
    .marketplace-hero-compact h1 {
        font-size: 2.2rem;
    }
    
    .marketplace-subtitle {
        font-size: 1.1rem;
    }
    
    .marketplace-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .categories-grid,
    .featured-grid,
    .sellers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .featured-sellers {
        padding: 40px 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .seller-card {
        padding: 15px;
    }
    
    .seller-image {
        width: 70px;
        height: 70px;
    }
    
    .marketplace-content-container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .marketplace-hero-compact h1 {
        font-size: 1.8rem;
    }
    
    .marketplace-subtitle {
        font-size: 1rem;
    }
    
    .marketplace-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-item {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .categories-grid,
    .featured-grid,
    .sellers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .category-content {
        padding: 15px 10px;
    }
    
    .category-content h3 {
        font-size: 1.1rem;
    }
    
    .view-species {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .marketplace-content-container {
        padding: 0 15px;
    }
    
    .stat-number {
        animation: gentle-slow-pulse-glow 10s ease-in-out infinite;
    }
    
    @keyframes gentle-slow-pulse-glow {
        0%, 100% {
            text-shadow: 0 0 0 rgba(168, 255, 62, 0);
            transform: scale(1);
        }
        50% {
            text-shadow: 0 0 15px rgba(168, 255, 62, 0.7), 
                         0 0 25px rgba(168, 255, 62, 0.5);
            transform: scale(1.05);
        }
    }
}

/* Alternative subtle pulse for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .stat-number {
        animation: none;
        text-shadow: 0 0 15px rgba(168, 255, 62, 0.4);
    }
    
    .category-card {
        animation: none;
    }
}