/* =================== PIXEL COUNTER COMPONENT =================== */
:root {
    --bg: #171616;
    --panel: rgba(31, 30, 30, 0.75);
    --primary: #ffcc00;
    --primary-soft: rgba(255, 204, 0, 0.5);
    --text: #ffffff;
    --muted: #bdbdbd;
}

.index-pixel-counter {
    font-family: 'Roboto', system-ui, Segoe UI, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--panel);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 16px 20px;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.35), 0 0 24px rgba(255, 204, 0, 0.15) inset;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: none;
    transition: box-shadow 0.3s ease;
}

.index-pixel-counter:hover {
    box-shadow: 0 0 28px rgba(255, 204, 0, 0.18) inset, 0 0 24px rgba(255, 204, 0, 0.18);
}

/* ROW */
.pc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

/* LABELS */
.pc-label {
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

/* NUMBERS */
.pc-number {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    font-size: 22px;
    text-shadow: 0 0 18px var(--primary-soft);
}

/* RIGHT SIDE */
.pc-right {
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.pc-goal {
    font-size: 12px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 12px;
    border-radius: 12px;
}

.pc-percent {
    font-weight: 700;
    font-size: 20px;
    color: var(--primary);
    background: rgba(255, 204, 0, 0.12);
    border: 1px solid rgba(255, 204, 0, 0.35);
    padding: 8px 12px;
    border-radius: 12px;
    box-shadow: 0 0 14px rgba(255, 204, 0, 0.25) inset, 0 0 12px rgba(255, 204, 0, 0.25);
}

/* BAR */
.pc-bar-wrap {
    position: relative;
    width: 100%;
    height: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    margin-top: 14px;
    overflow: hidden;
}

.pc-bar {
    position: relative;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ffcc00, #ffd84d);
    border-right: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 12px rgba(255, 204, 0, 0.6), 0 0 24px rgba(255, 204, 0, 0.35);
    border-radius: 999px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* SHIMMER EFFECT */
.pc-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
    animation: shine 2.2s linear infinite;
}

@keyframes shine {
    to {
        left: 110%;
    }
}

/* GLOW */
.pc-glow {
    position: absolute;
    inset: -18px -24px;
    background: radial-gradient(closest-side, rgba(255, 204, 0, 0.45), transparent 70%);
    filter: blur(10px);
    pointer-events: none;
}

/* FOOTER TEXT */
.pc-foot {
    margin-top: 10px;
    font-size: clamp(14px, 1.2vw, 16px);
    color: var(--muted);
}

/* =================== RESPONSIVE =================== */
@media (max-width:1600px) {
    .index-pixel-counter {
        max-width: 90%;
    }

    .pc-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .pc-right {
        align-self: stretch;
        justify-content: space-between;
        gap: 8px;
    }

    .pc-number {
        font-size: 28px;
    }

    .pc-percent {
        font-size: 20px;
        padding: 6px 10px;
    }

    .pc-goal {
        font-size: 16px;
        padding: 6px 10px;
    }
}

@media (max-width:600px) {
    .index-pixel-counter {
        max-width: 100%;
        padding: 12px 16px;
        display: block;
    }

    .pc-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .pc-number {
        font-size: 24px;
    }

    .pc-percent {
        font-size: 18px;
        padding: 4px 8px;
    }

    .pc-goal {
        font-size: 14px;
        padding: 4px 8px;
    }
}