.tab-bar {
    width: 100%;
    display: flex;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}
.tab-btn {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    transition:
        color 0.24s ease,
        background 0.24s ease;
}
.tab-btn.active {
    color: #4a90e2;
}
.tab-btn[hidden] {
    display: none;
}

.tab-btn .bi {
    font-size: 1rem;
    line-height: 1;
    color: currentColor;
}

.tab-indicator {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 2px;
    border-radius: 999px 999px 0 0;
    background: #4a90e2;
    transform: translateX(0);
    transition:
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .tab-indicator,
    .tab-btn {
        transition-duration: 0.01ms;
    }
}
