* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.marketing-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.marketing-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(139, 92, 246, 0.1) 50%, transparent 70%);
    pointer-events: none;
}

.banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.banner-text {
    flex: 1;
}

.banner-badge {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.banner-text h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.banner-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
}

.banner-cta {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    font-size: 0.9rem;
}

.banner-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, #9333EA, #8B5CF6);
}

.banner-cta i {
    transition: transform 0.3s ease;
}

.banner-cta:hover i {
    transform: translateX(4px);
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.title i {
    margin-right: 0.5rem;
    color: #8B5CF6;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

.install-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.install-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.install-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1F2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.install-card h2 i {
    color: #8B5CF6;
}

.toggle-btn {
    background: none;
    border: none;
    color: #8B5CF6;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    transform: scale(1.1);
}

.install-card > p {
    color: #6B7280;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.install-steps {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 0.75rem;
}

.code-block {
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}

.code-block code {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #374151;
    flex: 1;
    overflow-x: auto;
}

.copy-btn {
    background: #8B5CF6;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: #7C3AED;
    transform: translateY(-1px);
}

.copy-btn i {
    font-size: 0.9rem;
}

.note {
    color: #6B7280;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.4;
}

.note i {
    color: #8B5CF6;
    flex-shrink: 0;
}

.filters-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.filter-select,
.filter-input {
    padding: 0.75rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: white;
    min-width: 150px;
}

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

.custom-date {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
}

.custom-date label {
    white-space: nowrap;
}

.refresh-btn {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-icon {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: #6B7280;
    font-size: 0.9rem;
    font-weight: 500;
}

.leaderboard-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.leaderboard-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1F2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.leaderboard-header h2 i {
    color: #F59E0B;
}

.sort-options {
    display: flex;
    gap: 0.5rem;
}

.sort-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #E5E7EB;
    background: white;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6B7280;
}

.sort-btn.active,
.sort-btn:hover {
    background: #8B5CF6;
    border-color: #8B5CF6;
    color: white;
}

.leaderboard {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: #6B7280;
    font-size: 1.1rem;
}

.loading i {
    margin-right: 0.5rem;
}

.error {
    text-align: center;
    padding: 3rem;
    color: #DC2626;
    font-size: 1.1rem;
}

.empty {
    text-align: center;
    padding: 3rem;
    color: #6B7280;
    font-size: 1.1rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: #F9FAFB;
    border-radius: 12px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.leaderboard-item:hover {
    background: #F3F4F6;
    border-color: #E5E7EB;
}

.leaderboard-item.top-3 {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border-color: #F59E0B;
}

.rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6B7280;
    margin-right: 1.5rem;
    min-width: 40px;
    text-align: center;
}

.leaderboard-item.top-3 .rank {
    color: #D97706;
}

.rank.first {
    color: #F59E0B !important;
}

.rank.second {
    color: #6B7280 !important;
}

.rank.third {
    color: #CD7C2F !important;
}

.user-info {
    flex: 1;
}

.username {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 0.25rem;
}

.user-email {
    font-size: 0.9rem;
    color: #6B7280;
}

.user-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.stat-item {
    text-align: center;
    min-width: 80px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1F2937;
}

.stat-label {
    font-size: 0.8rem;
    color: #6B7280;
    margin-top: 0.25rem;
}

.model-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.model-badge {
    background: #E5E7EB;
    color: #374151;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
}

.pagination-btn {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover:not(:disabled) {
    background: #F3F4F6;
    border-color: #8B5CF6;
    color: #8B5CF6;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #F9FAFB;
}

.page-info {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    color: #374151;
    border: 2px solid #E5E7EB;
    min-width: 120px;
    text-align: center;
}

.search-results-header {
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.search-results-header p {
    margin: 0;
    color: #6B7280;
    font-size: 0.9rem;
}

.search-results-header i {
    color: #8B5CF6;
    margin-right: 0.5rem;
}

.footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: white;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo {
    width: 24px;
    height: 24px;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.footer-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: opacity 0.2s ease;
}

.footer-link:hover {
    opacity: 0.8;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .marketing-banner {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .banner-text h3 {
        font-size: 1.2rem;
    }
    
    .banner-text p {
        font-size: 0.9rem;
    }
    
    .banner-cta {
        align-self: center;
        width: fit-content;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .install-section {
        padding: 1.5rem;
    }
    
    .step {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .step-number {
        align-self: flex-start;
    }
    
    .code-block {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .copy-btn {
        align-self: flex-end;
        width: fit-content;
    }
    
    .filters-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .custom-date {
        flex-direction: column;
        align-items: stretch;
    }
    
    .leaderboard-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sort-options {
        justify-content: center;
    }
    
    .leaderboard-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .user-stats {
        justify-content: space-around;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .user-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .sort-options {
        flex-direction: column;
    }
    
    .stats-overview {
        grid-template-columns: 1fr;
    }
}