.tab {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.tab button {
    flex: 1 1 auto;
    min-width: 100px;
    max-width: 160px;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    color: #444;
    background: #fff;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.tab button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.2);
    color: #e53935;
}

.tab button.active {
    background: linear-gradient(135deg, #ff3b3b, #e60023);
    color: #fff;
    box-shadow: 0 4px 10px rgba(255, 59, 59, 0.4);
    transform: translateY(-2px);
}

.tab button.active::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 3px;
    background: #ff3b3b;
    border-radius: 2px;
}

/* ✅ Responsive mobile */
@media (max-width: 600px) {
    .tab {
        flex-direction: column;
        align-items: stretch;
        padding: 8px;
    }

    .tab button {
        width: 100%;
        max-width: none;
        font-size: 15px;
        padding: 14px;
    }
}