/* ============================================
   CONTRIBUTORS LEADERBOARD — contributors.css
   Futuristic · Dark · Glassmorphism · Neon
   ============================================ */

/* ---- Tokens ---- */
:root {
    --clb-bg: #0a0e1a;
    --clb-surface: rgba(15, 23, 42, 0.7);
    --clb-surface-solid: #0f172a;
    --clb-border: rgba(255, 255, 255, 0.06);
    --clb-border-hover: rgba(255, 255, 255, 0.12);
    --clb-text: #f1f5f9;
    --clb-text-dim: #94a3b8;
    --clb-text-muted: #64748b;
    --clb-neon-green: #4ade80;
    --clb-neon-cyan: #22d3ee;
    --clb-neon-gold: #facc15;
    --clb-neon-saffron: #ff9933;
    --clb-neon-purple: #a78bfa;
    --clb-radius: 20px;
    --clb-radius-sm: 12px;
    --clb-font: 'Inter', 'Poppins', sans-serif;
    --clb-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.clb-page {
    font-family: var(--clb-font);
    background: var(--clb-bg);
    color: var(--clb-text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.clb-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hidden {
    display: none !important;
}

/* ---- Scroll Reveal ---- */
.clb-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.clb-reveal.clb-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Stagger animation for children ---- */
.clb-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    animation: clb-fade-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.clb-stagger > *:nth-child(1) {
    animation-delay: 0.05s;
}
.clb-stagger > *:nth-child(2) {
    animation-delay: 0.1s;
}
.clb-stagger > *:nth-child(3) {
    animation-delay: 0.15s;
}
.clb-stagger > *:nth-child(4) {
    animation-delay: 0.2s;
}
.clb-stagger > *:nth-child(5) {
    animation-delay: 0.25s;
}
.clb-stagger > *:nth-child(6) {
    animation-delay: 0.3s;
}
.clb-stagger > *:nth-child(7) {
    animation-delay: 0.35s;
}
.clb-stagger > *:nth-child(8) {
    animation-delay: 0.4s;
}

@keyframes clb-fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Utility ---- */
.clb-gradient-text {
    background: linear-gradient(135deg, var(--clb-neon-saffron), var(--clb-neon-gold), var(--clb-neon-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.clb-badge-glow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 153, 51, 0.1);
    border: 1px solid rgba(255, 153, 51, 0.2);
    color: var(--clb-neon-saffron);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: clb-pulse-border 3s ease-in-out infinite;
}

@keyframes clb-pulse-border {
    0%,
    100% {
        border-color: rgba(255, 153, 51, 0.2);
    }
    50% {
        border-color: rgba(255, 153, 51, 0.45);
    }
}

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

.clb-section-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    margin-top: 14px;
    letter-spacing: -0.02em;
}

/* ============================================
   NAVBAR
   ============================================ */
.clb-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--clb-border);
    animation: clb-nav-slide 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes clb-nav-slide {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.clb-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.clb-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--clb-text);
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
}

.clb-logo-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--clb-neon-saffron), var(--clb-neon-gold));
    color: #fff;
    font-size: 0.9rem;
}

.clb-saffron {
    color: var(--clb-neon-saffron);
}
.clb-gold {
    color: var(--clb-neon-gold);
}
.clb-green {
    color: var(--clb-neon-green);
}

.clb-nav-links {
    display: flex;
    gap: 4px;
}

.clb-nav-link {
    padding: 8px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--clb-text-dim);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--clb-transition);
}

.clb-nav-link:hover,
.clb-nav-link.active {
    color: var(--clb-text);
    background: rgba(255, 255, 255, 0.06);
}

.clb-nav-link.active {
    color: var(--clb-neon-saffron);
    background: rgba(255, 153, 51, 0.1);
}

.clb-nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.clb-icon-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--clb-border);
    border-radius: 10px;
    background: transparent;
    color: var(--clb-text-dim);
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: var(--clb-transition);
}

.clb-icon-btn:hover {
    color: var(--clb-text);
    border-color: var(--clb-border-hover);
    background: rgba(255, 255, 255, 0.04);
}

.clb-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--clb-border);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
}

.clb-menu-toggle span {
    width: 18px;
    height: 2px;
    background: var(--clb-text-dim);
    border-radius: 2px;
    transition: var(--clb-transition);
}

/* ============================================
   HERO
   ============================================ */
.clb-hero {
    position: relative;
    padding: 140px 24px 80px;
    text-align: center;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clb-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 153, 51, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(74, 222, 128, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(34, 211, 238, 0.06) 0%, transparent 50%);
    animation: clb-hero-glow 8s ease-in-out infinite alternate;
}

@keyframes clb-hero-glow {
    0% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
    }
}

.clb-hero-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 30px 30px;
}

.clb-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: clb-hero-enter 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

@keyframes clb-hero-enter {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.clb-hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
    animation: clb-title-reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

@keyframes clb-title-reveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.clb-hero-sub {
    font-size: 1.05rem;
    color: var(--clb-text-dim);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
    animation: clb-title-reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.clb-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 700px;
    margin: 0 auto;
}

.clb-hero-stat-card {
    padding: 20px 12px;
    border-radius: 16px;
    background: var(--clb-surface);
    border: 1px solid var(--clb-border);
    backdrop-filter: blur(12px);
    transition: var(--clb-transition);
    animation: clb-card-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.clb-hero-stat-card:nth-child(1) {
    animation-delay: 0.6s;
}
.clb-hero-stat-card:nth-child(2) {
    animation-delay: 0.7s;
}
.clb-hero-stat-card:nth-child(3) {
    animation-delay: 0.8s;
}
.clb-hero-stat-card:nth-child(4) {
    animation-delay: 0.9s;
}

@keyframes clb-card-rise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.clb-hero-stat-card:hover {
    border-color: var(--clb-neon-saffron);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(255, 153, 51, 0.1);
}

.clb-hero-stat-icon {
    font-size: 1.1rem;
    color: var(--clb-neon-saffron);
    margin-bottom: 10px;
}

.clb-hero-stat-val {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--clb-text);
}

.clb-hero-stat-label {
    font-size: 0.72rem;
    color: var(--clb-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
}

/* ============================================
   SEARCH & FILTERS
   ============================================ */
.clb-filters {
    padding: 40px 0;
    position: sticky;
    top: 64px;
    z-index: 100;
    background: rgba(10, 14, 26, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--clb-border);
}

.clb-filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.clb-search-box {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: var(--clb-radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--clb-border);
    transition: var(--clb-transition);
}

.clb-search-box:focus-within {
    border-color: var(--clb-neon-saffron);
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.1);
}

.clb-search-box i {
    color: var(--clb-text-muted);
    font-size: 0.85rem;
}

.clb-search-box input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--clb-text);
    font-family: var(--clb-font);
    font-size: 0.88rem;
}

.clb-search-box input::placeholder {
    color: var(--clb-text-muted);
}

.clb-filter-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.clb-select {
    padding: 10px 14px;
    border-radius: var(--clb-radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--clb-border);
    color: var(--clb-text);
    font-family: var(--clb-font);
    font-size: 0.82rem;
    cursor: pointer;
    outline: none;
    transition: var(--clb-transition);
}

.clb-select:focus {
    border-color: var(--clb-neon-saffron);
}

.clb-select option {
    background: var(--clb-surface-solid);
    color: var(--clb-text);
}

.clb-badge-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.clb-badge-btn {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--clb-border);
    background: transparent;
    color: var(--clb-text-dim);
    font-family: var(--clb-font);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--clb-transition);
    white-space: nowrap;
}

.clb-badge-btn:hover {
    border-color: var(--clb-border-hover);
    color: var(--clb-text);
}

.clb-badge-btn.active {
    background: var(--clb-neon-saffron);
    border-color: var(--clb-neon-saffron);
    color: #fff;
    box-shadow: 0 2px 12px rgba(255, 153, 51, 0.3);
}

.clb-reset-btn {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--clb-border);
    background: transparent;
    color: var(--clb-text-muted);
    font-family: var(--clb-font);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--clb-transition);
}

.clb-reset-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
}

/* ============================================
   TOP 3 PODIUM
   ============================================ */
.clb-podium-section {
    padding: 80px 0 60px;
}

.clb-podium {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 28px;
    align-items: end;
    max-width: 1060px;
    margin: 0 auto;
}

.clb-podium-card {
    padding: 36px 28px 32px;
    border-radius: 24px;
    background: var(--clb-surface);
    border: 1px solid var(--clb-border);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    animation: clb-podium-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.clb-podium-card.clb-gold {
    animation-delay: 0.2s;
}
.clb-podium-card.clb-silver {
    animation-delay: 0.05s;
}
.clb-podium-card.clb-bronze {
    animation-delay: 0.35s;
}

@keyframes clb-podium-enter {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.clb-podium-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.clb-podium-card:hover {
    transform: translateY(-12px) scale(1.02);
}

.clb-podium-card.clb-gold {
    padding: 44px 32px 36px;
    border-color: rgba(250, 204, 21, 0.25);
    background: linear-gradient(
        180deg,
        rgba(250, 204, 21, 0.1) 0%,
        rgba(250, 204, 21, 0.02) 50%,
        var(--clb-surface-solid) 100%
    );
    box-shadow:
        0 0 50px rgba(250, 204, 21, 0.08),
        0 20px 60px rgba(0, 0, 0, 0.2);
}

.clb-podium-card.clb-gold::after {
    background: radial-gradient(circle at 50% 15%, rgba(250, 204, 21, 0.15), transparent 65%);
}

.clb-podium-card.clb-gold:hover {
    animation: clb-podium-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    box-shadow:
        0 0 80px rgba(250, 204, 21, 0.25),
        0 0 120px rgba(250, 204, 21, 0.1),
        0 24px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(250, 204, 21, 0.3);
    border-color: rgba(250, 204, 21, 0.55);
}

.clb-podium-card.clb-gold:hover::after {
    opacity: 1;
}

.clb-podium-card.clb-silver {
    border-color: rgba(34, 211, 238, 0.18);
    background: linear-gradient(180deg, rgba(34, 211, 238, 0.06) 0%, var(--clb-surface-solid) 100%);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
    animation:
        clb-podium-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards,
        clb-silver-breathe 5s ease-in-out infinite 1s;
}

@keyframes clb-silver-breathe {
    0%,
    100% {
        box-shadow:
            0 0 20px rgba(34, 211, 238, 0.06),
            0 16px 48px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow:
            0 0 40px rgba(34, 211, 238, 0.12),
            0 16px 48px rgba(0, 0, 0, 0.15);
    }
}

.clb-podium-card.clb-silver:hover {
    box-shadow:
        0 0 60px rgba(34, 211, 238, 0.2),
        0 0 90px rgba(34, 211, 238, 0.08),
        0 20px 50px rgba(0, 0, 0, 0.2);
    border-color: rgba(34, 211, 238, 0.45);
}

.clb-podium-card.clb-bronze {
    border-color: rgba(74, 222, 128, 0.18);
    background: linear-gradient(180deg, rgba(74, 222, 128, 0.06) 0%, var(--clb-surface-solid) 100%);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
    animation:
        clb-podium-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards,
        clb-bronze-breathe 5s ease-in-out infinite 1.2s;
}

@keyframes clb-bronze-breathe {
    0%,
    100% {
        box-shadow:
            0 0 20px rgba(74, 222, 128, 0.06),
            0 16px 48px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow:
            0 0 40px rgba(74, 222, 128, 0.12),
            0 16px 48px rgba(0, 0, 0, 0.15);
    }
}

.clb-podium-card.clb-bronze:hover {
    box-shadow:
        0 0 60px rgba(74, 222, 128, 0.2),
        0 0 90px rgba(74, 222, 128, 0.08),
        0 20px 50px rgba(0, 0, 0, 0.2);
    border-color: rgba(74, 222, 128, 0.45);
}

.clb-podium-trophy {
    font-size: 2.8rem;
    color: var(--clb-neon-gold);
    margin-bottom: 14px;
    animation:
        clb-trophy-float 3s ease-in-out infinite,
        clb-trophy-glow 2s ease-in-out infinite;
    filter: drop-shadow(0 0 18px rgba(250, 204, 21, 0.4));
    position: relative;
    z-index: 1;
}

@keyframes clb-trophy-float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-10px) rotate(-5deg) scale(1.05);
    }
    50% {
        transform: translateY(-18px) rotate(0deg) scale(1.1);
    }
    75% {
        transform: translateY(-10px) rotate(5deg) scale(1.05);
    }
}

@keyframes clb-trophy-glow {
    0%,
    100% {
        filter: drop-shadow(0 0 18px rgba(250, 204, 21, 0.4));
        color: var(--clb-neon-gold);
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(250, 204, 21, 0.7)) drop-shadow(0 0 60px rgba(255, 153, 51, 0.3));
        color: #ffe066;
    }
}

.clb-podium-rank {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
    color: var(--clb-text-dim);
    transition: var(--clb-transition);
}

.clb-gold .clb-podium-rank {
    color: var(--clb-neon-gold);
    font-size: 0.9rem;
    text-shadow: 0 0 24px rgba(250, 204, 21, 0.35);
}
.clb-silver .clb-podium-rank {
    color: var(--clb-neon-cyan);
}
.clb-bronze .clb-podium-rank {
    color: var(--clb-neon-green);
}

.clb-podium-avatar-wrap {
    width: 100px;
    height: 100px;
    margin: 0 auto 18px;
    border-radius: 50%;
    overflow: visible;
    position: relative;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.clb-podium-avatar-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    border: 3px solid var(--clb-border);
}

.clb-podium-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.5s ease;
}

.clb-gold .clb-podium-avatar-wrap {
    width: 140px;
    height: 140px;
}

.clb-gold .clb-podium-avatar-wrap img {
    border-color: var(--clb-neon-gold);
    border-width: 4px;
}

.clb-gold .clb-podium-ring {
    border-color: rgba(250, 204, 21, 0.4);
    animation:
        clb-ring-spin 3s linear infinite,
        clb-ring-pulse-gold 2s ease-in-out infinite;
    border-width: 3px;
}

@keyframes clb-ring-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes clb-ring-pulse-gold {
    0%,
    100% {
        border-color: rgba(250, 204, 21, 0.3);
        box-shadow: 0 0 10px rgba(250, 204, 21, 0.1);
    }
    50% {
        border-color: rgba(250, 204, 21, 0.6);
        box-shadow: 0 0 25px rgba(250, 204, 21, 0.25);
    }
}

.clb-silver .clb-podium-avatar-wrap {
    width: 115px;
    height: 115px;
}

.clb-silver .clb-podium-avatar-wrap img {
    border-color: var(--clb-neon-cyan);
}

.clb-silver .clb-podium-ring {
    border-color: rgba(34, 211, 238, 0.3);
    border-style: dashed;
    border-width: 2px;
    animation:
        clb-ring-spin 5s linear infinite reverse,
        clb-ring-pulse-cyan 3s ease-in-out infinite;
}

@keyframes clb-ring-pulse-cyan {
    0%,
    100% {
        border-color: rgba(34, 211, 238, 0.2);
        box-shadow: 0 0 8px rgba(34, 211, 238, 0.08);
    }
    50% {
        border-color: rgba(34, 211, 238, 0.45);
        box-shadow: 0 0 20px rgba(34, 211, 238, 0.18);
    }
}

.clb-bronze .clb-podium-avatar-wrap {
    width: 110px;
    height: 110px;
}

.clb-bronze .clb-podium-avatar-wrap img {
    border-color: var(--clb-neon-green);
}

.clb-bronze .clb-podium-ring {
    border-color: rgba(74, 222, 128, 0.3);
    border-style: dotted;
    border-width: 2px;
    animation:
        clb-ring-spin 7s linear infinite,
        clb-ring-pulse-green 3s ease-in-out infinite;
}

@keyframes clb-ring-pulse-green {
    0%,
    100% {
        border-color: rgba(74, 222, 128, 0.2);
        box-shadow: 0 0 8px rgba(74, 222, 128, 0.08);
    }
    50% {
        border-color: rgba(74, 222, 128, 0.45);
        box-shadow: 0 0 20px rgba(74, 222, 128, 0.18);
    }
}

.clb-podium-card:hover .clb-podium-avatar-wrap {
    transform: scale(1.08);
}

.clb-gold:hover .clb-podium-avatar-wrap {
    filter: drop-shadow(0 0 24px rgba(250, 204, 21, 0.35));
}
.clb-silver:hover .clb-podium-avatar-wrap {
    filter: drop-shadow(0 0 20px rgba(34, 211, 238, 0.3));
}
.clb-bronze:hover .clb-podium-avatar-wrap {
    filter: drop-shadow(0 0 20px rgba(74, 222, 128, 0.3));
}

.clb-podium-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 4px;
    color: var(--clb-text);
    transition: var(--clb-transition);
}

.clb-gold .clb-podium-name {
    font-size: 1.3rem;
}

.clb-podium-user {
    font-size: 0.82rem;
    color: var(--clb-text-muted);
    margin-bottom: 16px;
}

.clb-podium-contribs {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--clb-text);
    margin-bottom: 8px;
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(255, 153, 51, 0.08);
    border: 1px solid rgba(255, 153, 51, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--clb-transition);
}

.clb-gold .clb-podium-contribs {
    background: rgba(250, 204, 21, 0.1);
    border-color: rgba(250, 204, 21, 0.2);
    font-size: 1.05rem;
    padding: 10px 20px;
}

.clb-silver .clb-podium-contribs {
    background: rgba(34, 211, 238, 0.08);
    border-color: rgba(34, 211, 238, 0.15);
}

.clb-bronze .clb-podium-contribs {
    background: rgba(74, 222, 128, 0.08);
    border-color: rgba(74, 222, 128, 0.15);
}

.clb-podium-card:hover .clb-podium-contribs {
    transform: scale(1.04);
}

.clb-podium-contribs i {
    color: var(--clb-neon-saffron);
    margin-right: 2px;
}

.clb-gold .clb-podium-contribs i {
    color: var(--clb-neon-gold);
}
.clb-silver .clb-podium-contribs i {
    color: var(--clb-neon-cyan);
}
.clb-bronze .clb-podium-contribs i {
    color: var(--clb-neon-green);
}

.clb-podium-prs {
    font-size: 0.8rem;
    color: var(--clb-text-dim);
    margin-top: 8px;
}

.clb-podium-prs i {
    color: var(--clb-neon-cyan);
    margin-right: 4px;
}

.clb-podium-badges {
    margin-top: 14px;
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   CONTRIBUTORS TABLE
   ============================================ */
.clb-table-section {
    padding: 60px 0;
}

/* Loading skeleton */
.clb-loading {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.clb-skeleton-row {
    height: 56px;
    border-radius: var(--clb-radius-sm);
    background: linear-gradient(90deg, var(--clb-surface) 25%, rgba(255, 255, 255, 0.04) 50%, var(--clb-surface) 75%);
    background-size: 400% 100%;
    animation: clb-skeleton 1.5s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.1s);
}

@keyframes clb-skeleton {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Error / Empty */
.clb-state-box {
    text-align: center;
    padding: 60px 24px;
    border-radius: var(--clb-radius);
    background: var(--clb-surface);
    border: 1px solid var(--clb-border);
}

.clb-state-box i {
    font-size: 2.5rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.clb-state-box h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.clb-state-box p {
    color: var(--clb-text-dim);
    margin-bottom: 20px;
}

.clb-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--clb-radius-sm);
    background: var(--clb-neon-saffron);
    color: #fff;
    font-family: var(--clb-font);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.clb-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 153, 51, 0.35);
}

.clb-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--clb-radius-sm);
    background: rgba(74, 222, 128, 0.1);
    color: var(--clb-neon-green);
    border: 1px solid rgba(74, 222, 128, 0.2);
    font-family: var(--clb-font);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.clb-btn-secondary:hover {
    background: rgba(74, 222, 128, 0.18);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(74, 222, 128, 0.15);
}

.clb-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--clb-radius-sm);
    background: transparent;
    color: var(--clb-text-dim);
    border: 1px solid var(--clb-border);
    font-family: var(--clb-font);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.clb-btn-outline:hover {
    border-color: var(--clb-border-hover);
    color: var(--clb-text);
    transform: translateY(-3px);
}

/* Table */
.clb-table-wrap {
    border-radius: var(--clb-radius);
    background: var(--clb-surface);
    border: 1px solid var(--clb-border);
    overflow: hidden;
}

.clb-table-scroll {
    overflow-x: auto;
}

.clb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.clb-table thead {
    background: rgba(255, 255, 255, 0.03);
}

.clb-table th {
    padding: 14px 18px;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--clb-text-muted);
    border-bottom: 1px solid var(--clb-border);
    white-space: nowrap;
}

.clb-table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
}

.clb-table tbody tr {
    transition: background 0.25s ease;
    animation: clb-row-enter 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes clb-row-enter {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.clb-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.clb-table tbody tr:last-child td {
    border-bottom: none;
}

.clb-td-rank {
    font-weight: 700;
    color: var(--clb-text-muted);
    width: 50px;
}

.clb-td-rank.clb-rank-top {
    color: var(--clb-neon-gold);
    text-shadow: 0 0 12px rgba(250, 204, 21, 0.3);
}

.clb-td-contributor {
    display: flex;
    align-items: center;
    gap: 12px;
}

.clb-td-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--clb-border);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.clb-table tbody tr:hover .clb-td-avatar {
    border-color: var(--clb-neon-saffron);
    box-shadow: 0 0 12px rgba(255, 153, 51, 0.2);
}

.clb-td-info {
    min-width: 0;
}

.clb-td-name {
    font-weight: 600;
    color: var(--clb-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.clb-td-user {
    font-size: 0.78rem;
    color: var(--clb-text-muted);
}

.clb-td-contribs {
    font-weight: 700;
    color: var(--clb-neon-saffron);
}

.clb-td-prs,
.clb-td-issues {
    color: var(--clb-text-dim);
}

.clb-td-badges {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.clb-mini-badge {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: var(--clb-transition);
}

.clb-mini-badge.maintainer {
    background: rgba(250, 204, 21, 0.12);
    color: var(--clb-neon-gold);
    border: 1px solid rgba(250, 204, 21, 0.2);
}

.clb-mini-badge.ecsoc {
    background: rgba(167, 139, 250, 0.12);
    color: var(--clb-neon-purple);
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.clb-mini-badge.top {
    background: rgba(74, 222, 128, 0.12);
    color: var(--clb-neon-green);
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.clb-td-action a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--clb-border);
    color: var(--clb-text-dim);
    text-decoration: none;
    transition: all 0.3s ease;
}

.clb-td-action a:hover {
    color: var(--clb-neon-saffron);
    border-color: var(--clb-neon-saffron);
    background: rgba(255, 153, 51, 0.08);
    box-shadow: 0 0 16px rgba(255, 153, 51, 0.15);
}

/* Pagination */
.clb-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 18px;
    border-top: 1px solid var(--clb-border);
}

.clb-page-btn {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--clb-border);
    background: transparent;
    color: var(--clb-text-dim);
    font-family: var(--clb-font);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.clb-page-btn:hover {
    border-color: var(--clb-neon-saffron);
    color: var(--clb-neon-saffron);
    transform: translateY(-1px);
}

.clb-page-btn.active {
    background: var(--clb-neon-saffron);
    border-color: var(--clb-neon-saffron);
    color: #fff;
    box-shadow: 0 2px 12px rgba(255, 153, 51, 0.3);
}

.clb-page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.clb-page-ellipsis {
    color: var(--clb-text-muted);
    padding: 0 4px;
}

.clb-table-info {
    padding: 12px 18px;
    font-size: 0.78rem;
    color: var(--clb-text-muted);
    text-align: center;
    border-top: 1px solid var(--clb-border);
}

/* ============================================
   HALL OF FAME
   ============================================ */
.clb-hall-section {
    padding: 60px 0;
}

.clb-hall-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    max-width: 720px;
    margin: 0 auto;
}

.clb-hall-card {
    padding: 32px 28px;
    border-radius: var(--clb-radius);
    background: var(--clb-surface);
    border: 1px solid var(--clb-border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    flex: 0 1 320px;
    max-width: 360px;
}

.clb-hall-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--clb-neon-purple), var(--clb-neon-cyan));
    opacity: 0.8;
}

.clb-hall-card:hover {
    transform: translateY(-6px);
    border-color: rgba(167, 139, 250, 0.25);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(167, 139, 250, 0.06);
}

.clb-hall-logo-wrap {
    margin-bottom: 16px;
}

.clb-hall-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid rgba(167, 139, 250, 0.3);
    box-shadow: 0 4px 16px rgba(167, 139, 250, 0.15);
}

.clb-hall-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.clb-hall-card p {
    font-size: 0.82rem;
    color: var(--clb-text-dim);
    margin-bottom: 16px;
    line-height: 1.6;
}

.clb-hall-participants {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.clb-hall-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--clb-border);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.clb-hall-avatar:hover {
    border-color: var(--clb-neon-purple);
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.25);
}

/* ============================================
   MAINTAINERS
   ============================================ */
.clb-maintainers-section {
    padding: 60px 0;
}

.clb-maintainers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 720px;
    margin: 0 auto;
}

.clb-maintainer-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    border-radius: var(--clb-radius);
    background: var(--clb-surface);
    border: 1px solid var(--clb-border);
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    flex: 0 1 340px;
    max-width: 400px;
}

.clb-maintainer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--clb-neon-gold), var(--clb-neon-saffron));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.clb-maintainer-card:hover {
    transform: translateY(-6px);
    border-color: rgba(250, 204, 21, 0.25);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.2),
        0 0 24px rgba(250, 204, 21, 0.06);
}

.clb-maintainer-card:hover::before {
    opacity: 1;
}

.clb-maintainer-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--clb-neon-gold);
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.clb-maintainer-card:hover .clb-maintainer-avatar {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.25);
}

.clb-maintainer-info {
    min-width: 0;
}

.clb-maintainer-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2px;
}

.clb-maintainer-role {
    font-size: 0.75rem;
    color: var(--clb-neon-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.clb-maintainer-bio {
    font-size: 0.8rem;
    color: var(--clb-text-dim);
    margin-top: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clb-maintainer-contribs {
    font-size: 0.78rem;
    color: var(--clb-neon-saffron);
    margin-top: 6px;
    font-weight: 600;
}

/* ============================================
   RECENT CONTRIBUTORS
   ============================================ */
.clb-recent-section {
    padding: 60px 0;
}

.clb-recent-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--clb-border) transparent;
}

.clb-recent-scroll::-webkit-scrollbar {
    height: 6px;
}

.clb-recent-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.clb-recent-scroll::-webkit-scrollbar-thumb {
    background: var(--clb-border);
    border-radius: 3px;
}

.clb-recent-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
    padding: 24px 18px;
    border-radius: var(--clb-radius);
    background: var(--clb-surface);
    border: 1px solid var(--clb-border);
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.clb-recent-card:hover {
    transform: translateY(-6px);
    border-color: rgba(74, 222, 128, 0.25);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.15),
        0 0 20px rgba(74, 222, 128, 0.08);
}

.clb-recent-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--clb-neon-green);
    margin-bottom: 12px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.clb-recent-card:hover .clb-recent-avatar {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.2);
}

.clb-recent-name {
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clb-recent-contribs {
    font-size: 0.75rem;
    color: var(--clb-neon-green);
    font-weight: 600;
}

/* ============================================
   COMMUNITY STATS
   ============================================ */
.clb-stats-section {
    padding: 60px 0;
}

.clb-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.clb-stat-card {
    padding: 24px 16px;
    border-radius: var(--clb-radius);
    background: var(--clb-surface);
    border: 1px solid var(--clb-border);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.clb-stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--clb-neon-saffron);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.15),
        0 0 20px rgba(255, 153, 51, 0.06);
}

.clb-stat-card i {
    font-size: 1.3rem;
    color: var(--clb-neon-saffron);
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.clb-stat-card:hover i {
    transform: scale(1.15);
}

.clb-stat-val {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--clb-text);
}

.clb-stat-label {
    font-size: 0.72rem;
    color: var(--clb-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
}

/* ============================================
   CTA
   ============================================ */
.clb-cta-section {
    padding: 80px 0;
}

.clb-cta-card {
    position: relative;
    padding: 60px 48px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.08), rgba(74, 222, 128, 0.05), rgba(34, 211, 238, 0.05));
    border: 1px solid rgba(255, 153, 51, 0.15);
    text-align: center;
    overflow: hidden;
}

.clb-cta-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 153, 51, 0.1), transparent 70%);
    pointer-events: none;
    animation: clb-cta-pulse 6s ease-in-out infinite;
}

@keyframes clb-cta-pulse {
    0%,
    100% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.1);
    }
}

.clb-cta-card h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    margin: 16px 0 12px;
    position: relative;
    z-index: 1;
}

.clb-cta-card p {
    color: var(--clb-text-dim);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.clb-cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* ============================================
   FOOTER
   ============================================ */
.clb-footer {
    padding: 40px 0;
    border-top: 1px solid var(--clb-border);
}

.clb-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.clb-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.9rem;
}

.clb-footer-links {
    display: flex;
    gap: 20px;
}

.clb-footer-links a {
    color: var(--clb-text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--clb-transition);
}

.clb-footer-links a:hover {
    color: var(--clb-neon-saffron);
}

.clb-footer-copy {
    font-size: 0.82rem;
    color: var(--clb-text-muted);
}

/* ============================================
   SCROLL TOP
   ============================================ */
.clb-scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--clb-neon-saffron);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 500;
    box-shadow: 0 4px 20px rgba(255, 153, 51, 0.3);
}

.clb-scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.clb-scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 28px rgba(255, 153, 51, 0.4);
}

/* ============================================
   LIGHT THEME
   ============================================ */
body.clb-page.light-theme {
    background: #f8fafc;
    color: #1e293b;
}

body.clb-page.light-theme .clb-navbar {
    background: rgba(248, 250, 252, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
}

body.clb-page.light-theme .clb-hero-dots {
    background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

body.clb-page.light-theme .clb-filters {
    background: rgba(248, 250, 252, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
}

body.clb-page.light-theme .clb-search-box,
body.clb-page.light-theme .clb-select,
body.clb-page.light-theme .clb-badge-btn,
body.clb-page.light-theme .clb-icon-btn,
body.clb-page.light-theme .clb-reset-btn {
    border-color: rgba(0, 0, 0, 0.1);
    color: #475569;
}

body.clb-page.light-theme .clb-podium-card,
body.clb-page.light-theme .clb-table-wrap,
body.clb-page.light-theme .clb-hall-card,
body.clb-page.light-theme .clb-maintainer-card,
body.clb-page.light-theme .clb-recent-card,
body.clb-page.light-theme .clb-stat-card,
body.clb-page.light-theme .clb-state-box {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

body.clb-page.light-theme .clb-td-name,
body.clb-page.light-theme .clb-podium-name,
body.clb-page.light-theme .clb-maintainer-name,
body.clb-page.light-theme .clb-recent-name {
    color: #0f172a;
}

body.clb-page.light-theme .clb-table thead {
    background: #f8fafc;
}

body.clb-page.light-theme .clb-table th {
    color: #64748b;
}

body.clb-page.light-theme .clb-select option {
    background: #ffffff;
    color: #1e293b;
}

body.clb-page.light-theme .clb-scroll-top {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body.clb-page.light-theme .clb-cta-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .clb-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .clb-nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--clb-border);
    }

    .clb-nav-links.open {
        display: flex;
    }

    .clb-menu-toggle {
        display: flex;
    }

    .clb-hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .clb-podium {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 400px;
    }

    .clb-podium-card.clb-gold {
        order: -1;
    }

    .clb-gold .clb-podium-avatar-wrap {
        width: 120px;
        height: 120px;
    }

    .clb-silver .clb-podium-avatar-wrap,
    .clb-bronze .clb-podium-avatar-wrap {
        width: 100px;
        height: 100px;
    }

    .clb-filters-bar {
        flex-direction: column;
    }

    .clb-filter-controls {
        width: 100%;
    }

    .clb-badge-filters {
        width: 100%;
        overflow-x: auto;
    }

    .clb-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .clb-hall-grid,
    .clb-maintainers-grid {
        max-width: 100%;
    }

    .clb-footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .clb-hero {
        padding: 120px 16px 60px;
    }

    .clb-hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .clb-container {
        padding: 0 16px;
    }

    .clb-cta-card {
        padding: 40px 24px;
    }

    .clb-podium-card {
        padding: 24px 18px;
    }

    .clb-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   MAX ANIMATION OVERLAYS
   ============================================ */

/* Floating particles container */
.clb-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.clb-particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: clb-float-up linear forwards;
}

@keyframes clb-float-up {
    0% {
        opacity: 0;
        transform: translateY(100%) scale(0);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-120vh) scale(1);
    }
}

/* Gold card sparkle particles (CSS-only) */
.clb-gold-sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.clb-gold-sparkles span {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--clb-neon-gold);
    opacity: 0;
    animation: clb-sparkle 3s ease-in-out infinite;
}

.clb-gold-sparkles span:nth-child(1) {
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}
.clb-gold-sparkles span:nth-child(2) {
    top: 20%;
    right: 10%;
    animation-delay: 0.5s;
}
.clb-gold-sparkles span:nth-child(3) {
    top: 5%;
    left: 50%;
    animation-delay: 1s;
}
.clb-gold-sparkles span:nth-child(4) {
    top: 30%;
    left: 5%;
    animation-delay: 1.5s;
}
.clb-gold-sparkles span:nth-child(5) {
    top: 15%;
    right: 20%;
    animation-delay: 2s;
}
.clb-gold-sparkles span:nth-child(6) {
    top: 8%;
    left: 35%;
    animation-delay: 0.3s;
}
.clb-gold-sparkles span:nth-child(7) {
    top: 25%;
    right: 35%;
    animation-delay: 1.2s;
}
.clb-gold-sparkles span:nth-child(8) {
    top: 3%;
    left: 70%;
    animation-delay: 0.8s;
}

@keyframes clb-sparkle {
    0%,
    100% {
        opacity: 0;
        transform: scale(0) translateY(0);
    }
    20% {
        opacity: 1;
        transform: scale(1.5) translateY(-5px);
    }
    40% {
        opacity: 0.6;
        transform: scale(0.8) translateY(-12px);
    }
    60% {
        opacity: 1;
        transform: scale(1.2) translateY(-8px);
    }
    80% {
        opacity: 0.3;
        transform: scale(0.5) translateY(-20px);
    }
}

/* Stat cards gentle continuous float */
.clb-hero-stat-card {
    animation:
        clb-card-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both,
        clb-stat-float 6s ease-in-out infinite;
}

.clb-hero-stat-card:nth-child(1) {
    animation-delay: 0.6s, 0.6s;
}
.clb-hero-stat-card:nth-child(2) {
    animation-delay: 0.7s, 1.2s;
}
.clb-hero-stat-card:nth-child(3) {
    animation-delay: 0.8s, 1.8s;
}
.clb-hero-stat-card:nth-child(4) {
    animation-delay: 0.9s, 2.4s;
}

@keyframes clb-stat-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* Hero background animated aurora */
.clb-hero-bg {
    animation:
        clb-hero-glow 8s ease-in-out infinite alternate,
        clb-aurora-shift 12s ease-in-out infinite;
}

@keyframes clb-aurora-shift {
    0% {
        background:
            radial-gradient(ellipse at 50% 0%, rgba(255, 153, 51, 0.12) 0%, transparent 60%),
            radial-gradient(ellipse at 80% 80%, rgba(74, 222, 128, 0.06) 0%, transparent 50%),
            radial-gradient(ellipse at 20% 80%, rgba(34, 211, 238, 0.06) 0%, transparent 50%);
    }
    33% {
        background:
            radial-gradient(ellipse at 30% 20%, rgba(167, 139, 250, 0.1) 0%, transparent 60%),
            radial-gradient(ellipse at 70% 70%, rgba(255, 153, 51, 0.08) 0%, transparent 50%),
            radial-gradient(ellipse at 10% 60%, rgba(74, 222, 128, 0.05) 0%, transparent 50%);
    }
    66% {
        background:
            radial-gradient(ellipse at 60% 10%, rgba(34, 211, 238, 0.1) 0%, transparent 60%),
            radial-gradient(ellipse at 20% 60%, rgba(250, 204, 21, 0.06) 0%, transparent 50%),
            radial-gradient(ellipse at 80% 30%, rgba(167, 139, 250, 0.05) 0%, transparent 50%);
    }
    100% {
        background:
            radial-gradient(ellipse at 50% 0%, rgba(255, 153, 51, 0.12) 0%, transparent 60%),
            radial-gradient(ellipse at 80% 80%, rgba(74, 222, 128, 0.06) 0%, transparent 50%),
            radial-gradient(ellipse at 20% 80%, rgba(34, 211, 238, 0.06) 0%, transparent 50%);
    }
}

/* Hero title gradient text animation */
.clb-hero-title .clb-gradient-text {
    background-size: 200% 200%;
    animation: clb-gradient-shift 4s ease-in-out infinite;
}

@keyframes clb-gradient-shift {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Hero badge floating */
.clb-hero-badge {
    animation:
        clb-badge-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s both,
        clb-badge-float 4s ease-in-out infinite 1.2s;
}

@keyframes clb-badge-float {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-3px) scale(1.02);
    }
}

/* Section header h2 glowing text */
.clb-section-header h2 {
    animation: clb-text-glow 4s ease-in-out infinite;
}

@keyframes clb-text-glow {
    0%,
    100% {
        text-shadow: none;
    }
    50% {
        text-shadow:
            0 0 20px rgba(255, 153, 51, 0.15),
            0 0 40px rgba(255, 153, 51, 0.05);
    }
}

/* Podium contribution pill pulse */
.clb-podium-contribs {
    animation: clb-contribs-pulse 3s ease-in-out infinite;
}

@keyframes clb-contribs-pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Table row stagger animation delay */
.clb-table tbody tr:nth-child(1) {
    animation-delay: 0.05s;
}
.clb-table tbody tr:nth-child(2) {
    animation-delay: 0.1s;
}
.clb-table tbody tr:nth-child(3) {
    animation-delay: 0.15s;
}
.clb-table tbody tr:nth-child(4) {
    animation-delay: 0.2s;
}
.clb-table tbody tr:nth-child(5) {
    animation-delay: 0.25s;
}
.clb-table tbody tr:nth-child(6) {
    animation-delay: 0.3s;
}
.clb-table tbody tr:nth-child(7) {
    animation-delay: 0.35s;
}
.clb-table tbody tr:nth-child(8) {
    animation-delay: 0.4s;
}
.clb-table tbody tr:nth-child(9) {
    animation-delay: 0.45s;
}
.clb-table tbody tr:nth-child(10) {
    animation-delay: 0.5s;
}
.clb-table tbody tr:nth-child(11) {
    animation-delay: 0.55s;
}
.clb-table tbody tr:nth-child(12) {
    animation-delay: 0.6s;
}
.clb-table tbody tr:nth-child(13) {
    animation-delay: 0.65s;
}
.clb-table tbody tr:nth-child(14) {
    animation-delay: 0.7s;
}
.clb-table tbody tr:nth-child(15) {
    animation-delay: 0.75s;
}

/* Stat card icon spin on hover */
.clb-stat-card:hover i {
    animation: clb-icon-spin 0.5s ease;
}

@keyframes clb-icon-spin {
    0% {
        transform: scale(1.15) rotate(0deg);
    }
    50% {
        transform: scale(1.3) rotate(15deg);
    }
    100% {
        transform: scale(1.15) rotate(0deg);
    }
}

/* CTA button glow pulse */
.clb-btn-primary {
    position: relative;
    overflow: hidden;
}

.clb-btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition:
        width 0.5s ease,
        height 0.5s ease;
}

.clb-btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

/* Hall card avatar bob */
.clb-hall-avatar {
    animation: clb-avatar-bob 4s ease-in-out infinite;
}

.clb-hall-avatar:nth-child(odd) {
    animation-delay: 0.5s;
}

@keyframes clb-avatar-bob {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Maintainer card glow line animation */
.clb-maintainer-card::before {
    animation: clb-maintainer-line 3s ease-in-out infinite;
}

@keyframes clb-maintainer-line {
    0%,
    100% {
        opacity: 0;
        width: 0;
    }
    50% {
        opacity: 0.8;
        width: 100%;
    }
}

/* Scroll top button pulse */
.clb-scroll-top.visible {
    animation: clb-scroll-pulse 2s ease-in-out infinite;
}

@keyframes clb-scroll-pulse {
    0%,
    100% {
        box-shadow: 0 4px 20px rgba(255, 153, 51, 0.3);
    }
    50% {
        box-shadow:
            0 4px 30px rgba(255, 153, 51, 0.5),
            0 0 40px rgba(255, 153, 51, 0.15);
    }
}

/* Gold card content z-index fix */
.clb-gold .clb-podium-trophy,
.clb-gold .clb-podium-rank,
.clb-gold .clb-podium-avatar-wrap,
.clb-gold .clb-podium-name,
.clb-gold .clb-podium-user,
.clb-gold .clb-podium-contribs,
.clb-gold .clb-podium-prs,
.clb-gold .clb-podium-badges {
    position: relative;
    z-index: 1;
}

/* Animated gradient border for gold card — uses box-shadow to avoid overflow:clip issue */
.clb-podium-card.clb-gold {
    animation:
        clb-podium-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards,
        clb-gold-breathe 4s ease-in-out infinite 1s;
}

@keyframes clb-gold-breathe {
    0%,
    100% {
        box-shadow:
            0 0 30px rgba(250, 204, 21, 0.08),
            0 0 60px rgba(250, 204, 21, 0.04),
            0 20px 60px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(250, 204, 21, 0.15);
        border-color: rgba(250, 204, 21, 0.25);
    }
    25% {
        box-shadow:
            0 0 40px rgba(255, 153, 51, 0.12),
            0 0 80px rgba(255, 153, 51, 0.06),
            0 20px 60px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 153, 51, 0.2);
        border-color: rgba(255, 153, 51, 0.35);
    }
    50% {
        box-shadow:
            0 0 50px rgba(250, 204, 21, 0.15),
            0 0 100px rgba(250, 204, 21, 0.08),
            0 20px 60px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(250, 204, 21, 0.25);
        border-color: rgba(250, 204, 21, 0.45);
    }
    75% {
        box-shadow:
            0 0 40px rgba(74, 222, 128, 0.1),
            0 0 80px rgba(74, 222, 128, 0.05),
            0 20px 60px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(74, 222, 128, 0.15);
        border-color: rgba(74, 222, 128, 0.3);
    }
}

/* Gold card inner glow shimmer */
.clb-podium-card.clb-gold::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: radial-gradient(ellipse at 50% 0%, rgba(250, 204, 21, 0.12) 0%, transparent 60%);
    z-index: 0;
    animation: clb-gold-glow-shift 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes clb-gold-glow-shift {
    0%,
    100% {
        opacity: 0.6;
        background: radial-gradient(ellipse at 50% 0%, rgba(250, 204, 21, 0.12) 0%, transparent 60%);
    }
    33% {
        opacity: 1;
        background: radial-gradient(ellipse at 30% 20%, rgba(255, 153, 51, 0.15) 0%, transparent 60%);
    }
    66% {
        opacity: 0.8;
        background: radial-gradient(ellipse at 70% 10%, rgba(250, 204, 21, 0.18) 0%, transparent 60%);
    }
}

@keyframes clb-border-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Shimmer on section headers */
.clb-section-header h2 {
    position: relative;
    display: inline-block;
}

.clb-section-header h2::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 153, 51, 0.15), transparent);
    animation: clb-shimmer 3s ease-in-out infinite;
}

@keyframes clb-shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

/* Stat card number pulse on hover */
.clb-hero-stat-card:hover .clb-hero-stat-val,
.clb-stat-card:hover .clb-stat-val {
    animation: clb-num-pulse 0.4s ease;
}

@keyframes clb-num-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

/* Table row glow sweep */
.clb-table tbody tr::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 153, 51, 0.04) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.clb-table tbody {
    position: relative;
}

.clb-table tbody tr {
    position: relative;
}

.clb-table tbody tr:hover::after {
    opacity: 1;
    animation: clb-glow-sweep 0.8s ease forwards;
}

@keyframes clb-glow-sweep {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Mini badge pop on hover */
.clb-mini-badge {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.clb-mini-badge:hover {
    transform: scale(1.12);
    box-shadow: 0 0 12px currentColor;
}

/* CTA card animated border — stays inside to avoid overflow:clip */
.clb-cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: conic-gradient(
        from 0deg,
        rgba(255, 153, 51, 0.2),
        rgba(74, 222, 128, 0.2),
        rgba(34, 211, 238, 0.2),
        rgba(167, 139, 250, 0.2),
        rgba(255, 153, 51, 0.2)
    );
    z-index: 0;
    animation: clb-border-rotate 6s linear infinite;
    opacity: 0.4;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.clb-cta-card:hover::before {
    opacity: 0.8;
    animation-duration: 3s;
}

/* Footer link animated underline */
.clb-footer-links a {
    position: relative;
}

.clb-footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--clb-neon-saffron);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.clb-footer-links a:hover::after {
    width: 100%;
}

/* Badge button ripple */
.clb-badge-btn {
    position: relative;
    overflow: hidden;
}

.clb-badge-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.4s ease;
    pointer-events: none;
}

.clb-badge-btn:active::after {
    transform: scale(2);
}

/* Hero stat card gradient sweep on hover */
.clb-hero-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 153, 51, 0.06), transparent);
    transition: none;
    pointer-events: none;
    z-index: 0;
}

.clb-hero-stat-card {
    position: relative;
    overflow: hidden;
}

.clb-hero-stat-card:hover::before {
    animation: clb-card-sweep 0.6s ease forwards;
}

@keyframes clb-card-sweep {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Page load progress indicator */
.clb-progress-bar {
    position: fixed;
    top: 64px;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--clb-neon-saffron), var(--clb-neon-gold), var(--clb-neon-green));
    z-index: 1001;
    border-radius: 0 2px 2px 0;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 153, 51, 0.5);
}

/* Scroll progress line */
.clb-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--clb-neon-saffron), var(--clb-neon-gold));
    z-index: 1001;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(255, 153, 51, 0.4);
}
