/* Переключатель периода - iOS стиль */
.period-switcher {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 2px;
    gap: 0;
    overflow: hidden;
}

/* Слайдер — стеклянный, с градиентом, бликом и glow */
.period-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(33.333% - 2px);
    height: calc(100% - 4px);
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--accent, #6366f1) 22%, transparent) 0%,
        color-mix(in srgb, var(--accent, #6366f1) 14%, transparent) 100%);
    border: 1px solid color-mix(in srgb, var(--accent, #6366f1) 40%, transparent);
    border-radius: 10px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15),
        0 2px 8px color-mix(in srgb, var(--accent, #6366f1) 25%, transparent),
        0 4px 16px color-mix(in srgb, var(--accent, #6366f1) 15%, transparent);
    transition: transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
    z-index: 0;
}

.period-slider.pos-0 { transform: translateX(0); }
.period-slider.pos-1 { transform: translateX(100%); }
.period-slider.pos-2 { transform: translateX(200%); }

.period-pill {
    position: relative;
    z-index: 1;
    flex: 1;
    text-align: center;
    padding: 8px 0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #a1a1aa;
    cursor: pointer;
    transition: color 0.35s ease, text-shadow 0.35s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.period-pill:hover { color: #e5e5e5; }

/* Активный период — белый текст + лёгкий glow */
.period-pill.active {
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 0 8px color-mix(in srgb, var(--accent, #6366f1) 60%, transparent);
}

.period-switcher {
    min-height: 38px;
}

.period-slider {
    height: auto;
    top: 2px;
    bottom: 2px;
}