.visitor-counter {
    margin: 1.5rem auto;
    text-align: center;
    font-family: "Courier New", monospace;
    max-width: 300px;
}

.visitor-counter-label {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.visitor-counter-display {
    background: #000;
    border: 2px solid #333;
    border-radius: 4px;
    box-shadow: 0 0 0 2px #000, 2px 2px 5px rgba(0, 0, 0, 0.5);
    display: inline-flex;
    padding: 2px;
    position: relative;
}

.visitor-counter-display::before {
    content: "";
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 1px solid #444;
    border-radius: 6px;
    z-index: -1;
}

.counter-digit {
    display: inline-block;
    width: 1.2em;
    height: 1.8em;
    line-height: 1.8em;
    text-align: center;
    margin: 0 1px;
    background: linear-gradient(to bottom, #003300 0%, #006600 40%, #00ff00 50%, #006600 60%, #003300 100%);
    color: #000;
    font-weight: bold;
    font-size: 1.3rem;
    border: 1px solid #004400;
    border-radius: 2px;
    text-shadow: 0 0 2px rgba(0, 255, 0, 0.8);
    box-shadow: inset 0 0 3px rgba(0, 255, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.counter-digit::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    pointer-events: none;
}

@keyframes counterLoad {
    0% { opacity: 0; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

.counter-loading {
    animation: counterLoad 1.5s ease-out;
}

.visitor-counter-credit {
    font-size: 0.7rem;
    margin-top: 0.5rem;
    color: #666;
    font-style: italic;
}