.visitor-stat-module,
.visitor-stat-module *,
.visitor-stat-module *::before,
.visitor-stat-module *::after {
    box-sizing: border-box;
}

.visitor-stat-module {
    --vs-shell-bg:
        radial-gradient(circle at top right, rgba(214, 174, 84, 0.14), transparent 36%),
        linear-gradient(145deg, #fffdfa 0%, #fff8ee 100%);
    --vs-shell-border: rgba(138, 87, 36, 0.12);
    --vs-shell-shadow: 0 16px 36px rgba(72, 34, 17, 0.08);
    --vs-accent: linear-gradient(90deg, #8f1d0b 0%, #d5a74e 65%, #2b8f72 100%);
    --vs-title: #8d2f17;
    --vs-subtitle: #70655e;
    --vs-item-bg: rgba(255, 255, 255, 0.82);
    --vs-item-border: rgba(138, 87, 36, 0.08);
    --vs-item-shadow: 0 8px 18px rgba(72, 34, 17, 0.04);
    --vs-item-shadow-hover: 0 14px 26px rgba(72, 34, 17, 0.08);
    --vs-label: #4d5b66;
    --vs-value: #2b2826;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 18px;
    background: var(--vs-shell-bg);
    border: 1px solid var(--vs-shell-border);
    box-shadow: var(--vs-shell-shadow);
}

.visitor-stat-module::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.visitor-stat-header,
.visitor-stat-list {
    position: relative;
    z-index: 1;
}

.visitor-stat-header {
    margin-bottom: 14px;
}

.visitor-stat-title-wrap {
    position: relative;
    padding-top: 16px;
}

.visitor-stat-title-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 72px;
    height: 4px;
    border-radius: 999px;
    background: var(--vs-accent);
    box-shadow: 0 8px 14px rgba(165, 90, 34, 0.10);
}

.visitor-stat-header h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.24;
    font-weight: 800;
    color: var(--vs-title);
}

.visitor-stat-header p {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--vs-subtitle);
}

.visitor-stat-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.visitor-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--vs-item-bg);
    border: 1px solid var(--vs-item-border);
    box-shadow: var(--vs-item-shadow);
    transition:
        transform 0.22s ease,
        background 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.visitor-stat-item:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(165, 90, 34, 0.14);
    box-shadow: var(--vs-item-shadow-hover);
}

.visitor-stat-label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--vs-label);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
}

.visitor-stat-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 999px;
}

.visitor-stat-item strong {
    min-width: 28px;
    text-align: right;
    color: var(--vs-value);
    font-size: 18px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.visitor-stat-item.today .visitor-stat-dot {
    background: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.visitor-stat-item.yesterday .visitor-stat-dot {
    background: #6b7280;
    box-shadow: 0 0 0 4px rgba(107, 114, 128, 0.12);
}

.visitor-stat-item.month .visitor-stat-dot {
    background: #eab308;
    box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.15);
}

.visitor-stat-item.total {
    background: linear-gradient(135deg, #fff6ee 0%, #ffe7d3 100%);
    border-color: rgba(214, 136, 67, 0.28);
}

.visitor-stat-item.total .visitor-stat-dot {
    background: #9a2109;
    box-shadow: 0 0 0 4px rgba(154, 33, 9, 0.12);
}

.visitor-stat-item.total strong {
    color: #9a2109;
}

.visitor-stat-item.online {
    background: linear-gradient(135deg, #effbf5 0%, #d8f4e7 100%);
    border-color: rgba(69, 167, 126, 0.24);
}

.visitor-stat-item.online .visitor-stat-dot {
    background: #047857;
    box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.13);
}

.visitor-stat-item.online strong {
    color: #047857;
}

.visitor-stat-item.online strong::after {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 7px;
    border-radius: 999px;
    background: #10b981;
    vertical-align: middle;
    animation: visitorOnlinePulse 1.3s infinite ease-in-out;
}

@keyframes visitorOnlinePulse {
    0%, 100% {
        opacity: 0.35;
        transform: scale(0.85);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

.visitor-stat-pearl-gold {
    --vs-shell-bg:
        radial-gradient(circle at top right, rgba(229, 193, 114, 0.12), transparent 34%),
        linear-gradient(145deg, #fffefb 0%, #fff9f0 56%, #fdf3e3 100%);
    --vs-shell-border: rgba(198, 154, 74, 0.16);
    --vs-shell-shadow: 0 16px 36px rgba(99, 60, 24, 0.08);
    --vs-accent: linear-gradient(90deg, #b97a24 0%, #ead7a0 65%, #3b9376 100%);
    --vs-title: #8f3719;
    --vs-subtitle: #7b6b61;
    --vs-item-bg: rgba(255, 255, 255, 0.88);
    --vs-item-border: rgba(198, 154, 74, 0.08);
    --vs-item-shadow: 0 8px 18px rgba(99, 60, 24, 0.04);
    --vs-item-shadow-hover: 0 14px 26px rgba(99, 60, 24, 0.08);
    --vs-label: #585f62;
    --vs-value: #362d29;
}

.visitor-stat-graphite-gold {
    --vs-shell-bg:
        radial-gradient(circle at top right, rgba(214, 173, 84, 0.16), transparent 32%),
        linear-gradient(145deg, #1f252d 0%, #171c22 55%, #11161b 100%);
    --vs-shell-border: rgba(210, 173, 92, 0.14);
    --vs-shell-shadow: 0 18px 40px rgba(7, 10, 14, 0.28);
    --vs-accent: linear-gradient(90deg, rgba(214, 173, 84, 0.98), rgba(250, 241, 230, 0.72), rgba(74, 180, 145, 0.85));
    --vs-title: #f7f1e7;
    --vs-subtitle: #c7bcaf;
    --vs-item-bg: rgba(255, 255, 255, 0.05);
    --vs-item-border: rgba(220, 188, 116, 0.08);
    --vs-item-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
    --vs-item-shadow-hover: 0 16px 28px rgba(0, 0, 0, 0.20);
    --vs-label: #d2c8bb;
    --vs-value: #f4ede2;
}

.visitor-stat-graphite-gold .visitor-stat-item.today {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.16) 0%, rgba(37, 99, 235, 0.08) 100%);
    border-color: rgba(96, 165, 250, 0.18);
}

.visitor-stat-graphite-gold .visitor-stat-item.yesterday {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.16) 0%, rgba(107, 114, 128, 0.08) 100%);
    border-color: rgba(156, 163, 175, 0.16);
}

.visitor-stat-graphite-gold .visitor-stat-item.month {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.16) 0%, rgba(234, 179, 8, 0.08) 100%);
    border-color: rgba(250, 204, 21, 0.16);
}

.visitor-stat-graphite-gold .visitor-stat-item.total {
    background: linear-gradient(135deg, rgba(154, 33, 9, 0.20) 0%, rgba(214, 136, 67, 0.14) 100%);
    border-color: rgba(214, 136, 67, 0.24);
}

.visitor-stat-graphite-gold .visitor-stat-item.total strong {
    color: #ffd7c8;
}

.visitor-stat-graphite-gold .visitor-stat-item.online {
    background: linear-gradient(135deg, rgba(4, 120, 87, 0.20) 0%, rgba(16, 185, 129, 0.10) 100%);
    border-color: rgba(74, 222, 128, 0.18);
}

.visitor-stat-graphite-gold .visitor-stat-item.online strong {
    color: #b9f7dd;
}

.visitor-stat-royal-maroon {
    --vs-shell-bg:
        radial-gradient(circle at top right, rgba(223, 177, 83, 0.12), transparent 32%),
        linear-gradient(145deg, #fdf7f3 0%, #fbede6 48%, #f7e1d6 100%);
    --vs-shell-border: rgba(142, 49, 25, 0.14);
    --vs-shell-shadow: 0 18px 38px rgba(88, 26, 16, 0.10);
    --vs-accent: linear-gradient(90deg, #7f170d 0%, #d6a046 65%, #2b8f72 100%);
    --vs-title: #77190f;
    --vs-subtitle: #7f625b;
    --vs-item-bg: rgba(255, 252, 249, 0.88);
    --vs-item-border: rgba(143, 49, 25, 0.08);
    --vs-item-shadow: 0 8px 18px rgba(88, 26, 16, 0.04);
    --vs-item-shadow-hover: 0 14px 26px rgba(88, 26, 16, 0.08);
    --vs-label: #5e4f4a;
    --vs-value: #352320;
}

@media (max-width: 480px) {
    .visitor-stat-module {
        padding: 16px;
        border-radius: 16px;
    }

    .visitor-stat-header h3 {
        font-size: 17px;
    }

    .visitor-stat-header p {
        font-size: 12px;
    }

    .visitor-stat-item {
        padding: 11px 13px;
    }

    .visitor-stat-item strong {
        font-size: 17px;
    }
}
